From: Kees Jongenburger Date: Thu, 23 May 2013 11:16:24 +0000 (+0200) Subject: arm:add AM335X serial X-Git-Tag: v3.3.0~967 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F583%2F3;p=minix.git arm:add AM335X serial Change-Id: I728622ddd4f59529d15e8ac2499c41fa815eee3b --- diff --git a/kernel/arch/earm/omap_serial.c b/kernel/arch/earm/omap_serial.c index 4f628b7a9..9113edb2a 100644 --- a/kernel/arch/earm/omap_serial.c +++ b/kernel/arch/earm/omap_serial.c @@ -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); } diff --git a/kernel/arch/earm/omap_serial.h b/kernel/arch/earm/omap_serial.h index 9d3b4bb74..84272a2fa 100644 --- a/kernel/arch/earm/omap_serial.h +++ b/kernel/arch/earm/omap_serial.h @@ -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 */