Change-Id: I728622ddd4f59529d15e8ac2499c41fa815eee3b
*/
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);
}
#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 */