diff options
Diffstat (limited to 'arch/arm/mach-msm/board-msm7x30.c')
-rw-r--r-- | arch/arm/mach-msm/board-msm7x30.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/arch/arm/mach-msm/board-msm7x30.c b/arch/arm/mach-msm/board-msm7x30.c index e32981928c77..05241df3f9b6 100644 --- a/arch/arm/mach-msm/board-msm7x30.c +++ b/arch/arm/mach-msm/board-msm7x30.c | |||
@@ -39,27 +39,11 @@ | |||
39 | 39 | ||
40 | extern struct sys_timer msm_timer; | 40 | extern struct sys_timer msm_timer; |
41 | 41 | ||
42 | #ifdef CONFIG_SERIAL_MSM_CONSOLE | ||
43 | static struct msm_gpio uart2_config_data[] = { | ||
44 | { GPIO_CFG(49, 2, GPIO_OUTPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_RFR"}, | ||
45 | { GPIO_CFG(50, 2, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_CTS"}, | ||
46 | { GPIO_CFG(51, 2, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_Rx"}, | ||
47 | { GPIO_CFG(52, 2, GPIO_OUTPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_Tx"}, | ||
48 | }; | ||
49 | |||
50 | static void msm7x30_init_uart2(void) | ||
51 | { | ||
52 | msm_gpios_request_enable(uart2_config_data, | ||
53 | ARRAY_SIZE(uart2_config_data)); | ||
54 | |||
55 | } | ||
56 | #endif | ||
57 | |||
58 | static struct platform_device *devices[] __initdata = { | 42 | static struct platform_device *devices[] __initdata = { |
59 | #if defined(CONFIG_SERIAL_MSM) || defined(CONFIG_MSM_SERIAL_DEBUGGER) | 43 | #if defined(CONFIG_SERIAL_MSM) || defined(CONFIG_MSM_SERIAL_DEBUGGER) |
60 | &msm_device_uart2, | 44 | &msm_device_uart2, |
61 | #endif | 45 | #endif |
62 | 46 | &msm_device_smd, | |
63 | }; | 47 | }; |
64 | 48 | ||
65 | static void __init msm7x30_init_irq(void) | 49 | static void __init msm7x30_init_irq(void) |
@@ -70,10 +54,6 @@ static void __init msm7x30_init_irq(void) | |||
70 | static void __init msm7x30_init(void) | 54 | static void __init msm7x30_init(void) |
71 | { | 55 | { |
72 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 56 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
73 | #ifdef CONFIG_SERIAL_MSM_CONSOLE | ||
74 | msm7x30_init_uart2(); | ||
75 | #endif | ||
76 | |||
77 | } | 57 | } |
78 | 58 | ||
79 | static void __init msm7x30_map_io(void) | 59 | static void __init msm7x30_map_io(void) |
@@ -84,8 +64,6 @@ static void __init msm7x30_map_io(void) | |||
84 | 64 | ||
85 | MACHINE_START(MSM7X30_SURF, "QCT MSM7X30 SURF") | 65 | MACHINE_START(MSM7X30_SURF, "QCT MSM7X30 SURF") |
86 | #ifdef CONFIG_MSM_DEBUG_UART | 66 | #ifdef CONFIG_MSM_DEBUG_UART |
87 | .phys_io = MSM_DEBUG_UART_PHYS, | ||
88 | .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, | ||
89 | #endif | 67 | #endif |
90 | .boot_params = PHYS_OFFSET + 0x100, | 68 | .boot_params = PHYS_OFFSET + 0x100, |
91 | .map_io = msm7x30_map_io, | 69 | .map_io = msm7x30_map_io, |
@@ -96,8 +74,6 @@ MACHINE_END | |||
96 | 74 | ||
97 | MACHINE_START(MSM7X30_FFA, "QCT MSM7X30 FFA") | 75 | MACHINE_START(MSM7X30_FFA, "QCT MSM7X30 FFA") |
98 | #ifdef CONFIG_MSM_DEBUG_UART | 76 | #ifdef CONFIG_MSM_DEBUG_UART |
99 | .phys_io = MSM_DEBUG_UART_PHYS, | ||
100 | .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, | ||
101 | #endif | 77 | #endif |
102 | .boot_params = PHYS_OFFSET + 0x100, | 78 | .boot_params = PHYS_OFFSET + 0x100, |
103 | .map_io = msm7x30_map_io, | 79 | .map_io = msm7x30_map_io, |
@@ -108,8 +84,6 @@ MACHINE_END | |||
108 | 84 | ||
109 | MACHINE_START(MSM7X30_FLUID, "QCT MSM7X30 FLUID") | 85 | MACHINE_START(MSM7X30_FLUID, "QCT MSM7X30 FLUID") |
110 | #ifdef CONFIG_MSM_DEBUG_UART | 86 | #ifdef CONFIG_MSM_DEBUG_UART |
111 | .phys_io = MSM_DEBUG_UART_PHYS, | ||
112 | .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, | ||
113 | #endif | 87 | #endif |
114 | .boot_params = PHYS_OFFSET + 0x100, | 88 | .boot_params = PHYS_OFFSET + 0x100, |
115 | .map_io = msm7x30_map_io, | 89 | .map_io = msm7x30_map_io, |