diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index ec74c0f2051c..cc42d474c443 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/mmc/host.h> | 22 | #include <linux/mmc/host.h> |
23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
24 | #include <linux/i2c/twl.h> | 24 | #include <linux/i2c/twl.h> |
25 | #include <linux/regulator/machine.h> | ||
25 | #include <linux/err.h> | 26 | #include <linux/err.h> |
26 | #include <linux/clk.h> | 27 | #include <linux/clk.h> |
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
@@ -147,6 +148,25 @@ static void __init omap_2430sdp_init_early(void) | |||
147 | omap2_init_common_devices(NULL, NULL); | 148 | omap2_init_common_devices(NULL, NULL); |
148 | } | 149 | } |
149 | 150 | ||
151 | static struct regulator_consumer_supply sdp2430_vmmc1_supplies[] = { | ||
152 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.0"), | ||
153 | }; | ||
154 | |||
155 | /* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */ | ||
156 | static struct regulator_init_data sdp2430_vmmc1 = { | ||
157 | .constraints = { | ||
158 | .min_uV = 1850000, | ||
159 | .max_uV = 3150000, | ||
160 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
161 | | REGULATOR_MODE_STANDBY, | ||
162 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | ||
163 | | REGULATOR_CHANGE_MODE | ||
164 | | REGULATOR_CHANGE_STATUS, | ||
165 | }, | ||
166 | .num_consumer_supplies = ARRAY_SIZE(sdp2430_vmmc1_supplies), | ||
167 | .consumer_supplies = &sdp2430_vmmc1_supplies[0], | ||
168 | }; | ||
169 | |||
150 | static struct twl4030_gpio_platform_data sdp2430_gpio_data = { | 170 | static struct twl4030_gpio_platform_data sdp2430_gpio_data = { |
151 | .gpio_base = OMAP_MAX_GPIO_LINES, | 171 | .gpio_base = OMAP_MAX_GPIO_LINES, |
152 | .irq_base = TWL4030_GPIO_IRQ_BASE, | 172 | .irq_base = TWL4030_GPIO_IRQ_BASE, |
@@ -159,6 +179,7 @@ static struct twl4030_platform_data sdp2430_twldata = { | |||
159 | 179 | ||
160 | /* platform_data for children goes here */ | 180 | /* platform_data for children goes here */ |
161 | .gpio = &sdp2430_gpio_data, | 181 | .gpio = &sdp2430_gpio_data, |
182 | .vmmc1 = &sdp2430_vmmc1, | ||
162 | }; | 183 | }; |
163 | 184 | ||
164 | static struct i2c_board_info __initdata sdp2430_i2c_boardinfo[] = { | 185 | static struct i2c_board_info __initdata sdp2430_i2c_boardinfo[] = { |