[Top] [All Lists]

[PATCH] 8250_early console support for au1x00 (again)

To: Sergei Shtylyov <>
Subject: [PATCH] 8250_early console support for au1x00 (again)
From: Rodolfo Giometti <>
Date: Mon, 22 May 2006 22:50:36 +0200
In-reply-to: <>
Organization: GNU/Linux Device Drivers, Embedded Systems and Courses
Original-recipient: rfc822;
References: <> <> <> <> <>
User-agent: Mutt/1.5.11+cvs20060403

Here, attached and published on my site, my two new proposal for
serial line and early console for au1x00.

The first patch:

adds early console support for au1x00. In this version I decided to
add the "AU" serial type in all kernel messages.

The second patch:

fixes 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. :)




GNU/Linux Solutions                  e-mail:
Linux Device Driver                   
Embedded Systems                      
UNIX programming                     phone:     +39 349 2432127

Attachment: patch-au1x00-early-console
Description: Text document

Attachment: patch-au1x00-serial-phys-addr
Description: Text document

Attachment: signature.asc
Description: Digital signature

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