[ARM] OpenRD: Enable SD/UART selection for serial port 1
authorTanmay Upadhyay <tanmay.upadhyay@einfochips.com>
Thu, 26 Aug 2010 05:41:58 +0000 (11:11 +0530)
committerNicolas Pitre <nico@fluxnic.net>
Mon, 20 Sep 2010 02:43:43 +0000 (22:43 -0400)
commitfd2ce9c59a63d1daec8d76d272eca5149fb8706a
treec8fc8ffc61873bde098ac6a9e43f70f44dcf3383
parentf539dfedbd169e5ed47912bb517c75976ab556f3
[ARM] OpenRD: Enable SD/UART selection for serial port 1

This patch enables users to choose either the SDIO interface or UART1
(RS232/RS485). The selection can be done through kernel parameter.

By default the port would be used for SDIO interface. Passing the string
"kw_openrd_init_uart1=232" or "kw_openrd_init_uart1=485" enables either
the RS-232 or RS-485 port respectively; disabling the SDIO interface.
Anything else selects the default SDIO interface.

"kw_openrd_init_uart1=485" is ignored on OpenRD-Base as it doesn't
have RS485 port.

Signed-off-by: Tanmay Upadhyay <tanmay.upadhyay@einfochips.com>
Acked-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/mach-kirkwood/openrd-setup.c