]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:adapt tty driver for AM335X. 91/591/2
authorKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 08:25:30 +0000 (10:25 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 12:03:14 +0000 (14:03 +0200)
Change-Id: Ic861d68d0576c2abcdcb265a450c013ea2b28499

drivers/tty/arch/earm/rs232.c

index fc3a9734c86aba6b1519b854916cb947807bf982..fe294e7ab02e36cb21b66b82fc2f5c0a7167881f 100644 (file)
@@ -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);