Commit ccd1de46 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

omap3 boards list voltage ranges for VMMC1, VMMC2,

It seems the regulator framework is going to require boards
to explicitly configure voltage ranges, instead of letting
them just pick up the entire available range.  So this patch
updates OMAP3 board handling for VMMC1, VMMC2, and VSIM.

Also, change the label for the MMC1 DAT4..DAT7 supply to
"vmmc_aux", so the label isn't specific to MMC1.  Things
like SDIO and eMMC chips may also need a second voltage,
though in that case it's usually 1.8V for chip interface.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 375061a4
...@@ -335,7 +335,7 @@ static struct regulator_consumer_supply sdp3430_vmmc1_supply = { ...@@ -335,7 +335,7 @@ static struct regulator_consumer_supply sdp3430_vmmc1_supply = {
}; };
static struct regulator_consumer_supply sdp3430_vsim_supply = { static struct regulator_consumer_supply sdp3430_vsim_supply = {
.supply = "vmmc_dat4..7", .supply = "vmmc_aux",
}; };
static struct regulator_consumer_supply sdp3430_vmmc2_supply = { static struct regulator_consumer_supply sdp3430_vmmc2_supply = {
...@@ -528,11 +528,13 @@ static struct regulator_init_data sdp3430_vaux4 = { ...@@ -528,11 +528,13 @@ static struct regulator_init_data sdp3430_vaux4 = {
/* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */ /* VMMC1 for OMAP VDD_MMC1 (i/o) and MMC1 card */
static struct regulator_init_data sdp3430_vmmc1 = { static struct regulator_init_data sdp3430_vmmc1 = {
.constraints = { .constraints = {
.valid_modes_mask = REGULATOR_MODE_NORMAL .min_uV = 1850000,
| REGULATOR_MODE_STANDBY, .max_uV = 3150000,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE .valid_modes_mask = REGULATOR_MODE_NORMAL
| REGULATOR_CHANGE_MODE | REGULATOR_MODE_STANDBY,
| REGULATOR_CHANGE_STATUS, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
| REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
}, },
.num_consumer_supplies = 1, .num_consumer_supplies = 1,
.consumer_supplies = &sdp3430_vmmc1_supply, .consumer_supplies = &sdp3430_vmmc1_supply,
...@@ -556,11 +558,13 @@ static struct regulator_init_data sdp3430_vmmc2 = { ...@@ -556,11 +558,13 @@ static struct regulator_init_data sdp3430_vmmc2 = {
/* VSIM for OMAP VDD_MMC1A (i/o for DAT4..DAT7) */ /* VSIM for OMAP VDD_MMC1A (i/o for DAT4..DAT7) */
static struct regulator_init_data sdp3430_vsim = { static struct regulator_init_data sdp3430_vsim = {
.constraints = { .constraints = {
.valid_modes_mask = REGULATOR_MODE_NORMAL .min_uV = 1800000,
| REGULATOR_MODE_STANDBY, .max_uV = 3000000,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE .valid_modes_mask = REGULATOR_MODE_NORMAL
| REGULATOR_CHANGE_MODE | REGULATOR_MODE_STANDBY,
| REGULATOR_CHANGE_STATUS, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
| REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
}, },
.num_consumer_supplies = 1, .num_consumer_supplies = 1,
.consumer_supplies = &sdp3430_vsim_supply, .consumer_supplies = &sdp3430_vsim_supply,
......
...@@ -131,7 +131,7 @@ static struct regulator_consumer_supply beagle_vmmc1_supply = { ...@@ -131,7 +131,7 @@ static struct regulator_consumer_supply beagle_vmmc1_supply = {
}; };
static struct regulator_consumer_supply beagle_vsim_supply = { static struct regulator_consumer_supply beagle_vsim_supply = {
.supply = "vmmc_dat4..7", .supply = "vmmc_aux",
}; };
static struct gpio_led gpio_leds[]; static struct gpio_led gpio_leds[];
...@@ -179,11 +179,13 @@ static struct twl4030_gpio_platform_data beagle_gpio_data = { ...@@ -179,11 +179,13 @@ static struct twl4030_gpio_platform_data beagle_gpio_data = {
/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
static struct regulator_init_data beagle_vmmc1 = { static struct regulator_init_data beagle_vmmc1 = {
.constraints = { .constraints = {
.valid_modes_mask = REGULATOR_MODE_NORMAL .min_uV = 1850000,
| REGULATOR_MODE_STANDBY, .max_uV = 3150000,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE .valid_modes_mask = REGULATOR_MODE_NORMAL
| REGULATOR_CHANGE_MODE | REGULATOR_MODE_STANDBY,
| REGULATOR_CHANGE_STATUS, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
| REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
}, },
.num_consumer_supplies = 1, .num_consumer_supplies = 1,
.consumer_supplies = &beagle_vmmc1_supply, .consumer_supplies = &beagle_vmmc1_supply,
...@@ -192,11 +194,13 @@ static struct regulator_init_data beagle_vmmc1 = { ...@@ -192,11 +194,13 @@ static struct regulator_init_data beagle_vmmc1 = {
/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */ /* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
static struct regulator_init_data beagle_vsim = { static struct regulator_init_data beagle_vsim = {
.constraints = { .constraints = {
.valid_modes_mask = REGULATOR_MODE_NORMAL .min_uV = 1800000,
| REGULATOR_MODE_STANDBY, .max_uV = 3000000,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE .valid_modes_mask = REGULATOR_MODE_NORMAL
| REGULATOR_CHANGE_MODE | REGULATOR_MODE_STANDBY,
| REGULATOR_CHANGE_STATUS, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
| REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
}, },
.num_consumer_supplies = 1, .num_consumer_supplies = 1,
.consumer_supplies = &beagle_vsim_supply, .consumer_supplies = &beagle_vsim_supply,
......
...@@ -279,11 +279,13 @@ static struct twl4030_usb_data overo_usb_data = { ...@@ -279,11 +279,13 @@ static struct twl4030_usb_data overo_usb_data = {
static struct regulator_init_data overo_vmmc1 = { static struct regulator_init_data overo_vmmc1 = {
.constraints = { .constraints = {
.valid_modes_mask = REGULATOR_MODE_NORMAL .min_uV = 1850000,
| REGULATOR_MODE_STANDBY, .max_uV = 3150000,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE .valid_modes_mask = REGULATOR_MODE_NORMAL
| REGULATOR_CHANGE_MODE | REGULATOR_MODE_STANDBY,
| REGULATOR_CHANGE_STATUS, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
| REGULATOR_CHANGE_MODE
| REGULATOR_CHANGE_STATUS,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment