arm:add AM335X serial

Change-Id: I728622ddd4f59529d15e8ac2499c41fa815eee3b
This commit is contained in:
Kees Jongenburger 2013-05-23 13:16:24 +02:00
parent 69dc6a4f15
commit c40df92bf2
2 changed files with 6 additions and 3 deletions

View 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);
}

View 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 */