aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-08-21 12:17:22 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-09-26 05:07:47 -0400
commit8b0dd112197a132b55b9ed3cc023b0c494f3f5dc (patch)
treefaea0926c85b7be86f57003797d5b98cf0bd5a7e /arch
parentceb519e94fc257429011c1cc9874c8bd75834f8d (diff)
ARM: ux500: Purge SDI support for ATAG booting
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-sdi.c39
-rw-r--r--arch/arm/mach-ux500/board-mop500.c3
-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.h19
5 files changed, 0 insertions, 74 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c
index 1ae5999c45db..26600a1c5319 100644
--- a/arch/arm/mach-ux500/board-mop500-sdi.c
+++ b/arch/arm/mach-ux500/board-mop500-sdi.c
@@ -65,12 +65,6 @@ struct mmci_platform_data mop500_sdi0_data = {
65#endif 65#endif
66}; 66};
67 67
68static void sdi0_configure(struct device *parent)
69{
70 /* Add the device, force v2 to subrevision 1 */
71 db8500_add_sdi0(parent, &mop500_sdi0_data, U8500_SDI_V2_PERIPHID);
72}
73
74/* 68/*
75 * SDI1 (SDIO WLAN) 69 * SDI1 (SDIO WLAN)
76 */ 70 */
@@ -172,36 +166,3 @@ struct mmci_platform_data mop500_sdi4_data = {
172 .dma_tx_param = &mop500_sdi4_dma_cfg_tx, 166 .dma_tx_param = &mop500_sdi4_dma_cfg_tx,
173#endif 167#endif
174}; 168};
175
176void __init mop500_sdi_init(struct device *parent)
177{
178 /* PoP:ed eMMC */
179 db8500_add_sdi2(parent, &mop500_sdi2_data, U8500_SDI_V2_PERIPHID);
180 /* On-board eMMC */
181 db8500_add_sdi4(parent, &mop500_sdi4_data, U8500_SDI_V2_PERIPHID);
182}
183
184void __init snowball_sdi_init(struct device *parent)
185{
186 /* On Snowball MMC_CAP_SD_HIGHSPEED isn't supported (Hardware issue?) */
187 mop500_sdi0_data.capabilities &= ~MMC_CAP_SD_HIGHSPEED;
188 /* On-board eMMC */
189 db8500_add_sdi4(parent, &mop500_sdi4_data, U8500_SDI_V2_PERIPHID);
190 /* External Micro SD slot */
191 mop500_sdi0_data.gpio_cd = SNOWBALL_SDMMC_CD_GPIO;
192 mop500_sdi0_data.cd_invert = true;
193 sdi0_configure(parent);
194}
195
196void __init hrefv60_sdi_init(struct device *parent)
197{
198 /* PoP:ed eMMC */
199 db8500_add_sdi2(parent, &mop500_sdi2_data, U8500_SDI_V2_PERIPHID);
200 /* On-board eMMC */
201 db8500_add_sdi4(parent, &mop500_sdi4_data, U8500_SDI_V2_PERIPHID);
202 /* External Micro SD slot */
203 mop500_sdi0_data.gpio_cd = HREFV60_SDMMC_CD_GPIO;
204 sdi0_configure(parent);
205 /* WLAN SDIO channel */
206 db8500_add_sdi1(parent, &mop500_sdi1_data, U8500_SDI_V2_PERIPHID);
207}
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index a11e9dd0f4d7..b468c7ccaf8f 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -164,7 +164,6 @@ static void __init mop500_init_machine(void)
164 mop500_pinmaps_init(); 164 mop500_pinmaps_init();
165 parent = u8500_init_devices(); 165 parent = u8500_init_devices();
166 166
167 mop500_sdi_init(parent);
168 mop500_spi_init(parent); 167 mop500_spi_init(parent);
169 mop500_uart_init(parent); 168 mop500_uart_init(parent);
170 169
@@ -182,7 +181,6 @@ static void __init snowball_init_machine(void)
182 snowball_pinmaps_init(); 181 snowball_pinmaps_init();
183 parent = u8500_init_devices(); 182 parent = u8500_init_devices();
184 183
185 snowball_sdi_init(parent);
186 mop500_spi_init(parent); 184 mop500_spi_init(parent);
187 mop500_uart_init(parent); 185 mop500_uart_init(parent);
188 186
@@ -199,7 +197,6 @@ static void __init hrefv60_init_machine(void)
199 hrefv60_pinmaps_init(); 197 hrefv60_pinmaps_init();
200 parent = u8500_init_devices(); 198 parent = u8500_init_devices();
201 199
202 hrefv60_sdi_init(parent);
203 mop500_spi_init(parent); 200 mop500_spi_init(parent);
204 mop500_uart_init(parent); 201 mop500_uart_init(parent);
205 202
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h
index 341fad1122bb..06eb894eafe9 100644
--- a/arch/arm/mach-ux500/board-mop500.h
+++ b/arch/arm/mach-ux500/board-mop500.h
@@ -94,9 +94,6 @@ extern struct amba_pl011_data uart2_plat;
94extern struct pl022_ssp_controller ssp0_plat; 94extern struct pl022_ssp_controller ssp0_plat;
95extern struct stedma40_platform_data dma40_plat_data; 95extern struct stedma40_platform_data dma40_plat_data;
96 96
97extern void mop500_sdi_init(struct device *parent);
98extern void snowball_sdi_init(struct device *parent);
99extern void hrefv60_sdi_init(struct device *parent);
100void __init mop500_u8500uib_init(void); 97void __init mop500_u8500uib_init(void);
101void __init mop500_stuib_init(void); 98void __init mop500_stuib_init(void);
102void __init mop500_pinmaps_init(void); 99void __init mop500_pinmaps_init(void);
diff --git a/arch/arm/mach-ux500/devices-common.h b/arch/arm/mach-ux500/devices-common.h
index 34ec2f75ec7b..030f5a0fe245 100644
--- a/arch/arm/mach-ux500/devices-common.h
+++ b/arch/arm/mach-ux500/devices-common.h
@@ -24,16 +24,6 @@ dbx500_add_spi(struct device *parent, const char *name, resource_size_t base,
24 pdata, periphid); 24 pdata, periphid);
25} 25}
26 26
27struct mmci_platform_data;
28
29static inline struct amba_device *
30dbx500_add_sdi(struct device *parent, const char *name, resource_size_t base,
31 int irq, struct mmci_platform_data *pdata, u32 periphid)
32{
33 return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0,
34 pdata, periphid);
35}
36
37struct amba_pl011_data; 27struct amba_pl011_data;
38 28
39static inline struct amba_device * 29static inline struct amba_device *
diff --git a/arch/arm/mach-ux500/devices-db8500.h b/arch/arm/mach-ux500/devices-db8500.h
index 64667f667f38..e47039b9748f 100644
--- a/arch/arm/mach-ux500/devices-db8500.h
+++ b/arch/arm/mach-ux500/devices-db8500.h
@@ -49,25 +49,6 @@ db8500_add_ssp(struct device *parent, const char *name, resource_size_t base,
49 ux500_add_usb(parent, U8500_USBOTG_BASE, \ 49 ux500_add_usb(parent, U8500_USBOTG_BASE, \
50 IRQ_DB8500_USBOTG, rx_cfg, tx_cfg) 50 IRQ_DB8500_USBOTG, rx_cfg, tx_cfg)
51 51
52#define db8500_add_sdi0(parent, pdata, pid) \
53 dbx500_add_sdi(parent, "sdi0", U8500_SDI0_BASE, \
54 IRQ_DB8500_SDMMC0, pdata, pid)
55#define db8500_add_sdi1(parent, pdata, pid) \
56 dbx500_add_sdi(parent, "sdi1", U8500_SDI1_BASE, \
57 IRQ_DB8500_SDMMC1, pdata, pid)
58#define db8500_add_sdi2(parent, pdata, pid) \
59 dbx500_add_sdi(parent, "sdi2", U8500_SDI2_BASE, \
60 IRQ_DB8500_SDMMC2, pdata, pid)
61#define db8500_add_sdi3(parent, pdata, pid) \
62 dbx500_add_sdi(parent, "sdi3", U8500_SDI3_BASE, \
63 IRQ_DB8500_SDMMC3, pdata, pid)
64#define db8500_add_sdi4(parent, pdata, pid) \
65 dbx500_add_sdi(parent, "sdi4", U8500_SDI4_BASE, \
66 IRQ_DB8500_SDMMC4, pdata, pid)
67#define db8500_add_sdi5(parent, pdata, pid) \
68 dbx500_add_sdi(parent, "sdi5", U8500_SDI5_BASE, \
69 IRQ_DB8500_SDMMC5, pdata, pid)
70
71#define db8500_add_ssp0(parent, pdata) \ 52#define db8500_add_ssp0(parent, pdata) \
72 db8500_add_ssp(parent, "ssp0", U8500_SSP0_BASE, \ 53 db8500_add_ssp(parent, "ssp0", U8500_SSP0_BASE, \
73 IRQ_DB8500_SSP0, pdata) 54 IRQ_DB8500_SSP0, pdata)