diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-18 15:22:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-19 21:52:36 +0100 |
commit | 5a12f45aa013cab54129c1dbfc3d89d7731fcfb1 (patch) | |
tree | cbbe8e6beb9d65b112904d98de8d4085f28777e7 /arch/arm/boards/omap343xdsp | |
parent | bc872dbe79d839ff34544b378bd14c14184e5bd5 (diff) | |
download | barebox-5a12f45aa013cab54129c1dbfc3d89d7731fcfb1.tar.gz barebox-5a12f45aa013cab54129c1dbfc3d89d7731fcfb1.tar.xz |
ARM omap3: Use device register functions in boards
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/omap343xdsp')
-rw-r--r-- | arch/arm/boards/omap343xdsp/board.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/boards/omap343xdsp/board.c b/arch/arm/boards/omap343xdsp/board.c index fc50eb1115..6de86f4326 100644 --- a/arch/arm/boards/omap343xdsp/board.c +++ b/arch/arm/boards/omap343xdsp/board.c @@ -49,6 +49,7 @@ #include <ns16550.h> #include <asm/armlinux.h> #include <mach/omap3-silicon.h> +#include <mach/omap3-devices.h> #include <mach/sdrc.h> #include <mach/sys_info.h> #include <mach/syslib.h> @@ -602,12 +603,6 @@ static void mux_config(void) /*-----------------------CONSOLE Devices -----------------------------------*/ #ifdef CONFIG_DRIVER_SERIAL_NS16550 - -static struct NS16550_plat serial_plat = { - .clock = 48000000, /* 48MHz (APLL96/2) */ - .shift = 2, -}; - /** * @brief UART serial port initialization - remember to enable COM clocks in arch * @@ -615,9 +610,7 @@ static struct NS16550_plat serial_plat = { */ static int sdp3430_console_init(void) { - /* Register the serial port */ - add_ns16550_device(DEVICE_ID_DYNAMIC, OMAP_UART3_BASE, 1024, IORESOURCE_MEM_8BIT, - &serial_plat); + omap3_add_uart3(); return 0; } |