linux-mips
[Top] [All Lists]

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

To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Subject: [PATCH] 8250_early console support for au1x00 (again)
From: Rodolfo Giometti <giometti@linux.it>
Date: Mon, 22 May 2006 22:50:36 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <20060504163301.GH19913@gundam.enneenne.com>
Organization: GNU/Linux Device Drivers, Embedded Systems and Courses
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060504134509.GE19913@gundam.enneenne.com> <445A114B.4040404@ru.mvista.com> <20060504152048.GG19913@gundam.enneenne.com> <445A225F.7090300@ru.mvista.com> <20060504163301.GH19913@gundam.enneenne.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060403
Hello.

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

The first patch:

   
http://ftp.enneenne.com/pub/misc/au1100-patches/linux/patch-au1x00-early-console

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

The second patch:

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

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

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

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>