]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:add AM335X serial 83/583/3
authorKees Jongenburger <kees.jongenburger@gmail.com>
Thu, 23 May 2013 11:16:24 +0000 (13:16 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 09:17:52 +0000 (11:17 +0200)
Change-Id: I728622ddd4f59529d15e8ac2499c41fa815eee3b

kernel/arch/earm/omap_serial.c
kernel/arch/earm/omap_serial.h

index 4f628b7a9d8d8083301505a01c78f689185d3d0e..9113edb2a2bba92d6162a894aa7782ded2bf27b6 100644 (file)
@@ -32,8 +32,10 @@ static struct omap_serial omap_serial = {
  */
 void omap3_ser_init(){
 #ifdef DM37XX
-       omap_serial.base = OMAP3_DEBUG_UART_BASE;
-       //map(OMAP3_DEBUG_UART_BASE,&callback);
+       omap_serial.base = OMAP3_DM37XX_DEBUG_UART_BASE;
+#endif
+#ifdef AM335X
+       omap_serial.base = OMAP3_AM335X_DEBUG_UART_BASE;
 #endif
     assert(omap_serial.base);
 }
index 9d3b4bb744d2defb9d18e33267d5dfee576d4f3b..84272a2fa22b248ce632bf399d9f27e0ace3eb85 100644 (file)
@@ -2,7 +2,8 @@
 #define _OMAP_SERIAL_H
 
 /* UART register map */
-#define OMAP3_DEBUG_UART_BASE 0x49020000 /* UART3 physical address */
+#define OMAP3_DM37XX_DEBUG_UART_BASE 0x49020000 /* UART3 physical address */
+#define OMAP3_AM335X_DEBUG_UART_BASE 0x44E09000 /* UART0? physical address */
 
 /* UART registers */
 #define OMAP3_THR 0x000 /* Transmit holding register */