aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c2440
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-12-02 10:13:11 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-12-02 10:13:11 +0000
commit4a116494da4e43fdd8c40c08cc0b2e9cf3fda154 (patch)
tree3b404c02c950b0ae427cf222593c2ffaea66e213 /arch/arm/mach-s3c2440
parent38ffd1ab3286b0cbdab30ab30214738f440c1924 (diff)
fix-gta02-regulators-start-state.patch
Start using the boot_on feature of regulator APIs. AUTO, DOWN1, DOWN2, HCLDO (uSD) are told to be enabled from bootloader. Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 4c4e1dec6ec..2272624a06e 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -648,6 +648,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.min_uV = 3300000,
.max_uV = 3300000,
.valid_modes_mask = REGULATOR_MODE_NORMAL,
+ .boot_on = 1,
.apply_uV = 1,
.state_mem = {
.enabled = 1,
@@ -660,6 +661,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.min_uV = 1300000,
.max_uV = 1600000,
.valid_modes_mask = REGULATOR_MODE_NORMAL,
+ .boot_on = 1,
.apply_uV = 1,
},
.num_consumer_supplies = 0,
@@ -670,6 +672,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.max_uV = 1800000,
.valid_modes_mask = REGULATOR_MODE_NORMAL,
.apply_uV = 1,
+ .boot_on = 1,
.state_mem = {
.enabled = 1,
},
@@ -682,6 +685,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.max_uV = 3300000,
.valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
+ .boot_on = 1,
},
.num_consumer_supplies = 1,
.consumer_supplies = hcldo_consumers,
@@ -738,9 +742,6 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.min_uV = 0,
.max_uV = 3300000,
.valid_modes_mask = REGULATOR_MODE_NORMAL,
- .state_mem = {
- .enabled = 1,
- },
},
.num_consumer_supplies = 0,
},
@@ -1660,6 +1661,9 @@ static void gta02_pmu_attach_child_devices(struct pcf50633 *pcf)
{
int n;
+ /* only now force enable LCM power and codec power */
+ pcf->
+
for (n = 0; n < ARRAY_SIZE(gta02_devices_pmu_children); n++)
gta02_devices_pmu_children[n]->dev.parent = pcf->dev;