diff options
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 2554567c591a..44e23c007ae8 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/regulator/ab8500.h> | 26 | #include <linux/regulator/ab8500.h> |
27 | #include <linux/regulator/fixed.h> | 27 | #include <linux/regulator/fixed.h> |
28 | #include <linux/regulator/driver.h> | 28 | #include <linux/regulator/driver.h> |
29 | #include <linux/regulator/gpio-regulator.h> | ||
30 | #include <linux/mfd/tc3589x.h> | 29 | #include <linux/mfd/tc3589x.h> |
31 | #include <linux/mfd/tps6105x.h> | 30 | #include <linux/mfd/tps6105x.h> |
32 | #include <linux/mfd/abx500/ab8500-gpio.h> | 31 | #include <linux/mfd/abx500/ab8500-gpio.h> |
@@ -53,37 +52,6 @@ | |||
53 | #include "board-mop500.h" | 52 | #include "board-mop500.h" |
54 | #include "board-mop500-regulators.h" | 53 | #include "board-mop500-regulators.h" |
55 | 54 | ||
56 | /* Dynamically populated. */ | ||
57 | static struct gpio sdi0_reg_gpios[] = { | ||
58 | { 0, GPIOF_OUT_INIT_LOW, "mmci_vsel" }, | ||
59 | }; | ||
60 | |||
61 | static struct gpio_regulator_state sdi0_reg_states[] = { | ||
62 | { .value = 2900000, .gpios = (0 << 0) }, | ||
63 | { .value = 1800000, .gpios = (1 << 0) }, | ||
64 | }; | ||
65 | |||
66 | static struct gpio_regulator_config sdi0_reg_info = { | ||
67 | .supply_name = "ext-mmc-level-shifter", | ||
68 | .gpios = sdi0_reg_gpios, | ||
69 | .nr_gpios = ARRAY_SIZE(sdi0_reg_gpios), | ||
70 | .states = sdi0_reg_states, | ||
71 | .nr_states = ARRAY_SIZE(sdi0_reg_states), | ||
72 | .type = REGULATOR_VOLTAGE, | ||
73 | .enable_high = 1, | ||
74 | .enabled_at_boot = 0, | ||
75 | .init_data = &sdi0_reg_init_data, | ||
76 | .startup_delay = 100, | ||
77 | }; | ||
78 | |||
79 | static struct platform_device sdi0_regulator = { | ||
80 | .name = "gpio-regulator", | ||
81 | .id = -1, | ||
82 | .dev = { | ||
83 | .platform_data = &sdi0_reg_info, | ||
84 | }, | ||
85 | }; | ||
86 | |||
87 | static struct abx500_gpio_platform_data ab8500_gpio_pdata = { | 55 | static struct abx500_gpio_platform_data ab8500_gpio_pdata = { |
88 | .gpio_base = MOP500_AB8500_PIN_GPIO(1), | 56 | .gpio_base = MOP500_AB8500_PIN_GPIO(1), |
89 | }; | 57 | }; |
@@ -242,7 +210,6 @@ static struct hash_platform_data u8500_hash1_platform_data = { | |||
242 | /* add any platform devices here - TODO */ | 210 | /* add any platform devices here - TODO */ |
243 | static struct platform_device *mop500_platform_devs[] __initdata = { | 211 | static struct platform_device *mop500_platform_devs[] __initdata = { |
244 | &mop500_gpio_keys_device, | 212 | &mop500_gpio_keys_device, |
245 | &sdi0_regulator, | ||
246 | }; | 213 | }; |
247 | 214 | ||
248 | #ifdef CONFIG_STE_DMA40 | 215 | #ifdef CONFIG_STE_DMA40 |
@@ -355,10 +322,6 @@ static void __init u8500_cryp1_hash1_init(struct device *parent) | |||
355 | db8500_add_hash1(parent, &u8500_hash1_platform_data); | 322 | db8500_add_hash1(parent, &u8500_hash1_platform_data); |
356 | } | 323 | } |
357 | 324 | ||
358 | static struct platform_device *snowball_platform_devs[] __initdata = { | ||
359 | &sdi0_regulator, | ||
360 | }; | ||
361 | |||
362 | static void __init mop500_init_machine(void) | 325 | static void __init mop500_init_machine(void) |
363 | { | 326 | { |
364 | struct device *parent = NULL; | 327 | struct device *parent = NULL; |
@@ -367,9 +330,6 @@ static void __init mop500_init_machine(void) | |||
367 | platform_device_register(&db8500_prcmu_device); | 330 | platform_device_register(&db8500_prcmu_device); |
368 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; | 331 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; |
369 | 332 | ||
370 | sdi0_reg_info.enable_gpio = GPIO_SDMMC_EN; | ||
371 | sdi0_reg_info.gpios[0].gpio = GPIO_SDMMC_1V8_3V_SEL; | ||
372 | |||
373 | mop500_pinmaps_init(); | 333 | mop500_pinmaps_init(); |
374 | parent = u8500_init_devices(); | 334 | parent = u8500_init_devices(); |
375 | 335 | ||
@@ -393,22 +353,12 @@ static void __init mop500_init_machine(void) | |||
393 | static void __init snowball_init_machine(void) | 353 | static void __init snowball_init_machine(void) |
394 | { | 354 | { |
395 | struct device *parent = NULL; | 355 | struct device *parent = NULL; |
396 | int i; | ||
397 | 356 | ||
398 | platform_device_register(&db8500_prcmu_device); | 357 | platform_device_register(&db8500_prcmu_device); |
399 | 358 | ||
400 | sdi0_reg_info.enable_gpio = SNOWBALL_SDMMC_EN_GPIO; | ||
401 | sdi0_reg_info.gpios[0].gpio = SNOWBALL_SDMMC_1V8_3V_GPIO; | ||
402 | |||
403 | snowball_pinmaps_init(); | 359 | snowball_pinmaps_init(); |
404 | parent = u8500_init_devices(); | 360 | parent = u8500_init_devices(); |
405 | 361 | ||
406 | for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++) | ||
407 | snowball_platform_devs[i]->dev.parent = parent; | ||
408 | |||
409 | platform_add_devices(snowball_platform_devs, | ||
410 | ARRAY_SIZE(snowball_platform_devs)); | ||
411 | |||
412 | mop500_i2c_init(parent); | 362 | mop500_i2c_init(parent); |
413 | snowball_sdi_init(parent); | 363 | snowball_sdi_init(parent); |
414 | mop500_spi_init(parent); | 364 | mop500_spi_init(parent); |
@@ -433,9 +383,6 @@ static void __init hrefv60_init_machine(void) | |||
433 | */ | 383 | */ |
434 | mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO; | 384 | mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO; |
435 | 385 | ||
436 | sdi0_reg_info.enable_gpio = HREFV60_SDMMC_EN_GPIO; | ||
437 | sdi0_reg_info.gpios[0].gpio = HREFV60_SDMMC_1V8_3V_GPIO; | ||
438 | |||
439 | hrefv60_pinmaps_init(); | 386 | hrefv60_pinmaps_init(); |
440 | parent = u8500_init_devices(); | 387 | parent = u8500_init_devices(); |
441 | 388 | ||