linux-mips
[Top] [All Lists]

[PATCH] Physical addresses fix for au1x00 serial driver

To: linux-mips@linux-mips.org
Subject: [PATCH] Physical addresses fix for au1x00 serial driver
From: Rodolfo Giometti <giometti@linux.it>
Date: Thu, 4 May 2006 12:11:12 +0200
Organization: GNU/Linux Device Drivers, Embedded Systems and Courses
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.5.1+cvs20040105i
Hello,

here:

   
http://ftp.enneenne.com/pub/misc/au1100-patches/linux/patch-au1x00-serial-phys-addr

a little patch (against «linux-2.6.16-stable» branch and tested on
au1100 based board) to fix the addresses specification for the serial
driver. With this patch at boot time we get:

   Serial: 8250/16550 driver $Revision: 1.90 $ 3 ports, IRQ sharing disabled    
   
   serial8250.7: ttyS0 at MMIO 0x11100000 (irq = 0) is a 16550A                 
   
   serial8250.7: ttyS1 at MMIO 0x11200000 (irq = 1) is a 16550A                 
   
   serial8250.7: ttyS2 at MMIO 0x11400000 (irq = 3) is a 16550A                 
   

and into procfs we read:

   wwpc:~# cat /proc/iomem                                                      
   
   10100000-10200000 : au1xxx-ohci.0                                            
   
   10500000-1050ffff : eth-base                                                 
   
   10520000-10520003 : eth-mac                                                  
   
   11100000-1110001f : serial                                                   
   
   11200000-1120001f : serial                                                   
   
   11400000-1140001f : serial                                                   
   
   wwpc:~# cat /proc/tty/driver/serial                                          
   
   serinfo:1.0 driver revision:                                                 
   
   0: uart:16550A port:11100000 irq:0 tx:3905 rx:39 RTS|CTS|DTR|DSR|CD|RI       
   
   1: uart:16550A port:11200000 irq:1 tx:0 rx:0 CTS|DSR|CD|RI                   
   
   2: uart:16550A port:11400000 irq:3 tx:0 rx:0 CTS|DSR|CD|RI                   
   

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti@enneenne.com
Linux Device Driver                             giometti@gnudd.com
Embedded Systems                                giometti@linux.it
UNIX programming                     phone:     +39 349 2432127

<Prev in Thread] Current Thread [Next in Thread>