aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-08-22 11:18:56 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-09-26 05:08:22 -0400
commita0998b8321eb5f53ef51924f5ab6c69237ac1025 (patch)
tree609406b9b96903bf4c9fbe149379f93cf9b35455 /arch
parentdf630d71f7b6301cba3f1ad613ceba6d9c4bd12c (diff)
ARM: ux500: Remove UART support when booting without Device Tree
It's time to remove all ATAG support from ux500 and rely solely on Device Tree booting. This patch is part of that endeavour. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/board-mop500.c76
-rw-r--r--arch/arm/mach-ux500/board-mop500.h3
-rw-r--r--arch/arm/mach-ux500/devices-common.h10
-rw-r--r--arch/arm/mach-ux500/devices-db8500.h10
4 files changed, 0 insertions, 99 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index f4deec6b4581..f8885c56abf2 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -17,7 +17,6 @@
17#include <linux/platform_data/db8500_thermal.h> 17#include <linux/platform_data/db8500_thermal.h>
18#include <linux/amba/bus.h> 18#include <linux/amba/bus.h>
19#include <linux/amba/pl022.h> 19#include <linux/amba/pl022.h>
20#include <linux/amba/serial.h>
21#include <linux/mfd/abx500/ab8500.h> 20#include <linux/mfd/abx500/ab8500.h>
22#include <linux/regulator/ab8500.h> 21#include <linux/regulator/ab8500.h>
23#include <linux/regulator/fixed.h> 22#include <linux/regulator/fixed.h>
@@ -78,75 +77,6 @@ struct pl022_ssp_controller ssp0_plat = {
78 .num_chipselect = 5, 77 .num_chipselect = 5,
79}; 78};
80 79
81#ifdef CONFIG_STE_DMA40
82static struct stedma40_chan_cfg uart0_dma_cfg_rx = {
83 .mode = STEDMA40_MODE_LOGICAL,
84 .dir = DMA_DEV_TO_MEM,
85 .dev_type = DB8500_DMA_DEV13_UART0,
86};
87
88static struct stedma40_chan_cfg uart0_dma_cfg_tx = {
89 .mode = STEDMA40_MODE_LOGICAL,
90 .dir = DMA_MEM_TO_DEV,
91 .dev_type = DB8500_DMA_DEV13_UART0,
92};
93
94static struct stedma40_chan_cfg uart1_dma_cfg_rx = {
95 .mode = STEDMA40_MODE_LOGICAL,
96 .dir = DMA_DEV_TO_MEM,
97 .dev_type = DB8500_DMA_DEV12_UART1,
98};
99
100static struct stedma40_chan_cfg uart1_dma_cfg_tx = {
101 .mode = STEDMA40_MODE_LOGICAL,
102 .dir = DMA_MEM_TO_DEV,
103 .dev_type = DB8500_DMA_DEV12_UART1,
104};
105
106static struct stedma40_chan_cfg uart2_dma_cfg_rx = {
107 .mode = STEDMA40_MODE_LOGICAL,
108 .dir = DMA_DEV_TO_MEM,
109 .dev_type = DB8500_DMA_DEV11_UART2,
110};
111
112static struct stedma40_chan_cfg uart2_dma_cfg_tx = {
113 .mode = STEDMA40_MODE_LOGICAL,
114 .dir = DMA_MEM_TO_DEV,
115 .dev_type = DB8500_DMA_DEV11_UART2,
116};
117#endif
118
119struct amba_pl011_data uart0_plat = {
120#ifdef CONFIG_STE_DMA40
121 .dma_filter = stedma40_filter,
122 .dma_rx_param = &uart0_dma_cfg_rx,
123 .dma_tx_param = &uart0_dma_cfg_tx,
124#endif
125};
126
127struct amba_pl011_data uart1_plat = {
128#ifdef CONFIG_STE_DMA40
129 .dma_filter = stedma40_filter,
130 .dma_rx_param = &uart1_dma_cfg_rx,
131 .dma_tx_param = &uart1_dma_cfg_tx,
132#endif
133};
134
135struct amba_pl011_data uart2_plat = {
136#ifdef CONFIG_STE_DMA40
137 .dma_filter = stedma40_filter,
138 .dma_rx_param = &uart2_dma_cfg_rx,
139 .dma_tx_param = &uart2_dma_cfg_tx,
140#endif
141};
142
143static void __init mop500_uart_init(struct device *parent)
144{
145 db8500_add_uart0(parent, &uart0_plat);
146 db8500_add_uart1(parent, &uart1_plat);
147 db8500_add_uart2(parent, &uart2_plat);
148}
149
150static void __init mop500_init_machine(void) 80static void __init mop500_init_machine(void)
151{ 81{
152 struct device *parent = NULL; 82 struct device *parent = NULL;
@@ -155,8 +85,6 @@ static void __init mop500_init_machine(void)
155 85
156 parent = u8500_init_devices(); 86 parent = u8500_init_devices();
157 87
158 mop500_uart_init(parent);
159
160 /* This board has full regulator constraints */ 88 /* This board has full regulator constraints */
161 regulator_has_full_constraints(); 89 regulator_has_full_constraints();
162} 90}
@@ -170,8 +98,6 @@ static void __init snowball_init_machine(void)
170 98
171 parent = u8500_init_devices(); 99 parent = u8500_init_devices();
172 100
173 mop500_uart_init(parent);
174
175 /* This board has full regulator constraints */ 101 /* This board has full regulator constraints */
176 regulator_has_full_constraints(); 102 regulator_has_full_constraints();
177} 103}
@@ -184,8 +110,6 @@ static void __init hrefv60_init_machine(void)
184 110
185 parent = u8500_init_devices(); 111 parent = u8500_init_devices();
186 112
187 mop500_uart_init(parent);
188
189 /* This board has full regulator constraints */ 113 /* This board has full regulator constraints */
190 regulator_has_full_constraints(); 114 regulator_has_full_constraints();
191} 115}
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h
index 2cced8bcd8c6..cf6b3047d34c 100644
--- a/arch/arm/mach-ux500/board-mop500.h
+++ b/arch/arm/mach-ux500/board-mop500.h
@@ -87,9 +87,6 @@ extern struct msp_i2s_platform_data msp0_platform_data;
87extern struct msp_i2s_platform_data msp1_platform_data; 87extern struct msp_i2s_platform_data msp1_platform_data;
88extern struct msp_i2s_platform_data msp2_platform_data; 88extern struct msp_i2s_platform_data msp2_platform_data;
89extern struct msp_i2s_platform_data msp3_platform_data; 89extern struct msp_i2s_platform_data msp3_platform_data;
90extern struct amba_pl011_data uart0_plat;
91extern struct amba_pl011_data uart1_plat;
92extern struct amba_pl011_data uart2_plat;
93extern struct pl022_ssp_controller ssp0_plat; 90extern struct pl022_ssp_controller ssp0_plat;
94 91
95void __init mop500_u8500uib_init(void); 92void __init mop500_u8500uib_init(void);
diff --git a/arch/arm/mach-ux500/devices-common.h b/arch/arm/mach-ux500/devices-common.h
index 15bf1ab22399..f3f7349eece1 100644
--- a/arch/arm/mach-ux500/devices-common.h
+++ b/arch/arm/mach-ux500/devices-common.h
@@ -11,15 +11,5 @@
11#include <linux/platform_device.h> 11#include <linux/platform_device.h>
12#include <linux/dma-mapping.h> 12#include <linux/dma-mapping.h>
13#include <linux/sys_soc.h> 13#include <linux/sys_soc.h>
14#include <linux/amba/bus.h>
15
16struct amba_pl011_data;
17
18static inline struct amba_device *
19dbx500_add_uart(struct device *parent, const char *name, resource_size_t base,
20 int irq, struct amba_pl011_data *pdata)
21{
22 return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0);
23}
24 14
25#endif 15#endif
diff --git a/arch/arm/mach-ux500/devices-db8500.h b/arch/arm/mach-ux500/devices-db8500.h
index e6ac6d23138c..fc4048f0432c 100644
--- a/arch/arm/mach-ux500/devices-db8500.h
+++ b/arch/arm/mach-ux500/devices-db8500.h
@@ -18,14 +18,4 @@ extern struct ab8500_platform_data ab8500_platdata;
18extern struct prcmu_pdata db8500_prcmu_pdata; 18extern struct prcmu_pdata db8500_prcmu_pdata;
19extern struct platform_device db8500_prcmu_device; 19extern struct platform_device db8500_prcmu_device;
20 20
21#define db8500_add_uart0(parent, pdata) \
22 dbx500_add_uart(parent, "uart0", U8500_UART0_BASE, \
23 IRQ_DB8500_UART0, pdata)
24#define db8500_add_uart1(parent, pdata) \
25 dbx500_add_uart(parent, "uart1", U8500_UART1_BASE, \
26 IRQ_DB8500_UART1, pdata)
27#define db8500_add_uart2(parent, pdata) \
28 dbx500_add_uart(parent, "uart2", U8500_UART2_BASE, \
29 IRQ_DB8500_UART2, pdata)
30
31#endif 21#endif