Hello,
here a patch to add early console support for au1x00.
I also attach a patch who fixes au1x00 serial address space by using
only physical addresses. Please, note that this change allow to simply
file "drivers/serial/8250.c" since functions
__raw_readl()/__raw_writel() can be replaced by functions
readl()/writel().
At boot time I get:
Starting kernel .Linux version 2.6.17-rc4-gde4a1dae-dirty (giometti@zaigor)
(gcc version 3.4.3) #83 Mon May 22 22:34:47 CEST 2006
CPU revision is: 02030204
Board WWPC1000 version 1.0
WWPC-setup: uC=off
(PRId 02030204) @ 396MHZ
BCLK switching enabled!
Early serial console at AU 0x11100000 (options '115200')
...
Serial: 8250/16550 driver $Revision: 1.90 $ 3 ports, IRQ sharing disabled
serial8250.8: ttyS0 at MMIO 0x11100000 (irq = 0) is a 16550A
serial8250.8: ttyS1 at MMIO 0x11200000 (irq = 1) is a 16550A
serial8250.8: ttyS2 at MMIO 0x11400000 (irq = 3) is a 16550A
...
Adding console on ttyS0 at AU 0x11100000 (options '115200')
...
and at system running time I get:
hostname:~# cat /proc/iomem
10100000-101fffff : au1xxx-ohci.0
10100000-101fffff : ohci_hcd
10500000-1050ffff : eth-base
10520000-10520003 : eth-mac
11100000-111fffff : serial
11200000-112fffff : serial
11400000-114fffff : serial
which is coherent with other system devices.
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti@xxxxxxxxxxxx
Linux Device Driver giometti@xxxxxxxxx
Embedded Systems giometti@xxxxxxxx
UNIX programming phone: +39 349 2432127
patch-au1x00-early-console
Description: Text document
patch-au1x00-serial-phys-addr
Description: Text document
signature.asc
Description: Digital signature
|