aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mx31lite.c
diff options
context:
space:
mode:
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 @@
32#include <asm/page.h> 32#include <asm/page.h>
33#include <asm/setup.h> 33#include <asm/setup.h>
34#include <mach/board-mx31lite.h> 34#include <mach/board-mx31lite.h>
35#include <mach/imx-uart.h>
36#include <mach/iomux-mx3.h>
37#include "devices.h"
35 38
36/* 39/*
37 * This file contains the board-specific initialization routines. 40 * This file contains the board-specific initialization routines.
38 */ 41 */
39 42
43static unsigned int mx31lite_pins[] = {
44 /* UART1 */
45 MX31_PIN_CTS1__CTS1,
46 MX31_PIN_RTS1__RTS1,
47 MX31_PIN_TXD1__TXD1,
48 MX31_PIN_RXD1__RXD1,
49};
50
51static struct imxuart_platform_data uart_pdata = {
52 .flags = IMXUART_HAVE_RTSCTS,
53};
54
40/* 55/*
41 * This structure defines the MX31 memory map. 56 * This structure defines the MX31 memory map.
42 */ 57 */
@@ -68,6 +83,10 @@ void __init mx31lite_map_io(void)
68 */ 83 */
69static void __init mxc_board_init(void) 84static void __init mxc_board_init(void)
70{ 85{
86 mxc_iomux_setup_multiple_pins(mx31lite_pins, ARRAY_SIZE(mx31lite_pins),
87 "mx31lite");
88
89 mxc_register_device(&mxc_uart_device0, &uart_pdata);
71} 90}
72 91
73static void __init mx31lite_timer_init(void) 92static void __init mx31lite_timer_init(void)