arm:add AM335X serial
Change-Id: I728622ddd4f59529d15e8ac2499c41fa815eee3b
This commit is contained in:
parent
69dc6a4f15
commit
c40df92bf2
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue