From: Kees Jongenburger Date: Fri, 24 May 2013 08:25:30 +0000 (+0200) Subject: arm:adapt tty driver for AM335X. X-Git-Tag: v3.3.0~962 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=742cf53aa9800bb598b4358bea1cfceeab52ce26;p=minix.git arm:adapt tty driver for AM335X. Change-Id: Ic861d68d0576c2abcdcb265a450c013ea2b28499 --- diff --git a/drivers/tty/arch/earm/rs232.c b/drivers/tty/arch/earm/rs232.c index fc3a9734c..fe294e7ab 100644 --- a/drivers/tty/arch/earm/rs232.c +++ b/drivers/tty/arch/earm/rs232.c @@ -121,6 +121,7 @@ typedef struct uart_port { int irq; } uart_port_t; +#ifdef DM37XX /* OMAP3 UART base addresses. */ static uart_port_t omap3[] = { { OMAP3_UART1_BASE, 72}, /* UART1 */ @@ -128,6 +129,17 @@ static uart_port_t omap3[] = { { OMAP3_UART3_BASE, 74}, /* UART3 */ { 0, 0 } }; +#endif + +#ifdef AM335X +static uart_port_t omap3[] = { + { 0x44E09000 , 72 }, /* UART0 */ + { 0, 0 }, + { 0, 0 }, + { 0, 0 } +}; +#endif + static int rs_write(tty_t *tp, int try); static void rs_echo(tty_t *tp, int c);