diff options
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-sdi.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-sdi.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c index 5dde4d4ebe88..479ebe04cf9c 100644 --- a/arch/arm/mach-ux500/board-mop500-sdi.c +++ b/arch/arm/mach-ux500/board-mop500-sdi.c | |||
@@ -104,7 +104,7 @@ static struct mmci_platform_data mop500_sdi0_data = { | |||
104 | #endif | 104 | #endif |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static void sdi0_configure(void) | 107 | static void sdi0_configure(struct device *parent) |
108 | { | 108 | { |
109 | int ret; | 109 | int ret; |
110 | 110 | ||
@@ -123,15 +123,15 @@ static void sdi0_configure(void) | |||
123 | gpio_direction_output(sdi0_en, 1); | 123 | gpio_direction_output(sdi0_en, 1); |
124 | 124 | ||
125 | /* Add the device, force v2 to subrevision 1 */ | 125 | /* Add the device, force v2 to subrevision 1 */ |
126 | db8500_add_sdi0(&mop500_sdi0_data, U8500_SDI_V2_PERIPHID); | 126 | db8500_add_sdi0(parent, &mop500_sdi0_data, U8500_SDI_V2_PERIPHID); |
127 | } | 127 | } |
128 | 128 | ||
129 | void mop500_sdi_tc35892_init(void) | 129 | void mop500_sdi_tc35892_init(struct device *parent) |
130 | { | 130 | { |
131 | mop500_sdi0_data.gpio_cd = GPIO_SDMMC_CD; | 131 | mop500_sdi0_data.gpio_cd = GPIO_SDMMC_CD; |
132 | sdi0_en = GPIO_SDMMC_EN; | 132 | sdi0_en = GPIO_SDMMC_EN; |
133 | sdi0_vsel = GPIO_SDMMC_1V8_3V_SEL; | 133 | sdi0_vsel = GPIO_SDMMC_1V8_3V_SEL; |
134 | sdi0_configure(); | 134 | sdi0_configure(parent); |
135 | } | 135 | } |
136 | 136 | ||
137 | /* | 137 | /* |
@@ -246,12 +246,13 @@ static struct mmci_platform_data mop500_sdi4_data = { | |||
246 | #endif | 246 | #endif |
247 | }; | 247 | }; |
248 | 248 | ||
249 | void __init mop500_sdi_init(void) | 249 | void __init mop500_sdi_init(struct device *parent) |
250 | { | 250 | { |
251 | /* PoP:ed eMMC */ | 251 | /* PoP:ed eMMC */ |
252 | db8500_add_sdi2(&mop500_sdi2_data, U8500_SDI_V2_PERIPHID); | 252 | db8500_add_sdi2(parent, &mop500_sdi2_data, U8500_SDI_V2_PERIPHID); |
253 | /* On-board eMMC */ | 253 | /* On-board eMMC */ |
254 | db8500_add_sdi4(&mop500_sdi4_data, U8500_SDI_V2_PERIPHID); | 254 | db8500_add_sdi4(parent, &mop500_sdi4_data, U8500_SDI_V2_PERIPHID); |
255 | |||
255 | /* | 256 | /* |
256 | * On boards with the TC35892 GPIO expander, sdi0 will finally | 257 | * On boards with the TC35892 GPIO expander, sdi0 will finally |
257 | * be added when the TC35892 initializes and calls | 258 | * be added when the TC35892 initializes and calls |
@@ -259,31 +260,31 @@ void __init mop500_sdi_init(void) | |||
259 | */ | 260 | */ |
260 | } | 261 | } |
261 | 262 | ||
262 | void __init snowball_sdi_init(void) | 263 | void __init snowball_sdi_init(struct device *parent) |
263 | { | 264 | { |
264 | /* On Snowball MMC_CAP_SD_HIGHSPEED isn't supported (Hardware issue?) */ | 265 | /* On Snowball MMC_CAP_SD_HIGHSPEED isn't supported (Hardware issue?) */ |
265 | mop500_sdi0_data.capabilities &= ~MMC_CAP_SD_HIGHSPEED; | 266 | mop500_sdi0_data.capabilities &= ~MMC_CAP_SD_HIGHSPEED; |
266 | /* On-board eMMC */ | 267 | /* On-board eMMC */ |
267 | db8500_add_sdi4(&mop500_sdi4_data, U8500_SDI_V2_PERIPHID); | 268 | db8500_add_sdi4(parent, &mop500_sdi4_data, U8500_SDI_V2_PERIPHID); |
268 | /* External Micro SD slot */ | 269 | /* External Micro SD slot */ |
269 | mop500_sdi0_data.gpio_cd = SNOWBALL_SDMMC_CD_GPIO; | 270 | mop500_sdi0_data.gpio_cd = SNOWBALL_SDMMC_CD_GPIO; |
270 | mop500_sdi0_data.cd_invert = true; | 271 | mop500_sdi0_data.cd_invert = true; |
271 | sdi0_en = SNOWBALL_SDMMC_EN_GPIO; | 272 | sdi0_en = SNOWBALL_SDMMC_EN_GPIO; |
272 | sdi0_vsel = SNOWBALL_SDMMC_1V8_3V_GPIO; | 273 | sdi0_vsel = SNOWBALL_SDMMC_1V8_3V_GPIO; |
273 | sdi0_configure(); | 274 | sdi0_configure(parent); |
274 | } | 275 | } |
275 | 276 | ||
276 | void __init hrefv60_sdi_init(void) | 277 | void __init hrefv60_sdi_init(struct device *parent) |
277 | { | 278 | { |
278 | /* PoP:ed eMMC */ | 279 | /* PoP:ed eMMC */ |
279 | db8500_add_sdi2(&mop500_sdi2_data, U8500_SDI_V2_PERIPHID); | 280 | db8500_add_sdi2(parent, &mop500_sdi2_data, U8500_SDI_V2_PERIPHID); |
280 | /* On-board eMMC */ | 281 | /* On-board eMMC */ |
281 | db8500_add_sdi4(&mop500_sdi4_data, U8500_SDI_V2_PERIPHID); | 282 | db8500_add_sdi4(parent, &mop500_sdi4_data, U8500_SDI_V2_PERIPHID); |
282 | /* External Micro SD slot */ | 283 | /* External Micro SD slot */ |
283 | mop500_sdi0_data.gpio_cd = HREFV60_SDMMC_CD_GPIO; | 284 | mop500_sdi0_data.gpio_cd = HREFV60_SDMMC_CD_GPIO; |
284 | sdi0_en = HREFV60_SDMMC_EN_GPIO; | 285 | sdi0_en = HREFV60_SDMMC_EN_GPIO; |
285 | sdi0_vsel = HREFV60_SDMMC_1V8_3V_GPIO; | 286 | sdi0_vsel = HREFV60_SDMMC_1V8_3V_GPIO; |
286 | sdi0_configure(); | 287 | sdi0_configure(parent); |
287 | /* WLAN SDIO channel */ | 288 | /* WLAN SDIO channel */ |
288 | db8500_add_sdi1(&mop500_sdi1_data, U8500_SDI_V2_PERIPHID); | 289 | db8500_add_sdi1(parent, &mop500_sdi1_data, U8500_SDI_V2_PERIPHID); |
289 | } | 290 | } |