summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx3/mx31lite.c
diff options
context:
space:
mode:
authorMagnus Lilja <lilja.magnus@gmail.com>2009-04-15 00:00:03 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-05-07 18:18:08 +0400
commita854b8ab987b29fd3b1ae286f41f04973f9edbac (patch)
treeeb8f7440def9037575182fdd7d1ef522d3b3f0a5 /arch/arm/mach-mx3/mx31lite.c
parent45b131a78ceeb3bc776db08c8eaa67d4676b6cd7 (diff)
downloadlinux-a854b8ab987b29fd3b1ae286f41f04973f9edbac.tar.xz
i.MX31: Add UART1 device to Litekit board.
Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31lite.c')
-rw-r--r--arch/arm/mach-mx3/mx31lite.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mx31lite.c b/arch/arm/mach-mx3/mx31lite.c
index 76b36da92237..abe6ca39853a 100644
--- a/arch/arm/mach-mx3/mx31lite.c
+++ b/arch/arm/mach-mx3/mx31lite.c
@@ -32,11 +32,26 @@
#include <asm/page.h>
#include <asm/setup.h>
#include <mach/board-mx31lite.h>
+#include <mach/imx-uart.h>
+#include <mach/iomux-mx3.h>
+#include "devices.h"
/*
* This file contains the board-specific initialization routines.
*/
+static unsigned int mx31lite_pins[] = {
+ /* UART1 */
+ MX31_PIN_CTS1__CTS1,
+ MX31_PIN_RTS1__RTS1,
+ MX31_PIN_TXD1__TXD1,
+ MX31_PIN_RXD1__RXD1,
+};
+
+static struct imxuart_platform_data uart_pdata = {
+ .flags = IMXUART_HAVE_RTSCTS,
+};
+
/*
* This structure defines the MX31 memory map.
*/
@@ -68,6 +83,10 @@ void __init mx31lite_map_io(void)
*/
static void __init mxc_board_init(void)
{
+ mxc_iomux_setup_multiple_pins(mx31lite_pins, ARRAY_SIZE(mx31lite_pins),
+ "mx31lite");
+
+ mxc_register_device(&mxc_uart_device0, &uart_pdata);
}
static void __init mx31lite_timer_init(void)