aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-02-28 01:25:08 -0500
committerKukjin Kim <kgene.kim@samsung.com>2011-02-28 01:25:08 -0500
commit7cda34407714b17db73d59f8fa9e9b62ee594ebf (patch)
tree39a19e177a40465ed19e4e008a4ba05d7e8984dd
parent003ddede62892f332992b200b1a1d7506f253d56 (diff)
ARM: S3C2440: Fix regulator valid_modes_ops on GTA02
The REGULATOR_CHANGE_STATUS flag needs to be set on valid_ops_mask, otherwise it a driver wont be able to turn the regulator on or off. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 6629998bafdc..e57c4d851299 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -314,8 +314,8 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
314 .min_uV = 2000000, 314 .min_uV = 2000000,
315 .max_uV = 3300000, 315 .max_uV = 3300000,
316 .valid_modes_mask = REGULATOR_MODE_NORMAL, 316 .valid_modes_mask = REGULATOR_MODE_NORMAL,
317 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, 317 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
318 .always_on = 1, 318 REGULATOR_CHANGE_STATUS,
319 }, 319 },
320 }, 320 },
321 [PCF50633_REGULATOR_LDO1] = { 321 [PCF50633_REGULATOR_LDO1] = {
@@ -323,6 +323,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
323 .min_uV = 3300000, 323 .min_uV = 3300000,
324 .max_uV = 3300000, 324 .max_uV = 3300000,
325 .valid_modes_mask = REGULATOR_MODE_NORMAL, 325 .valid_modes_mask = REGULATOR_MODE_NORMAL,
326 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
326 .apply_uV = 1, 327 .apply_uV = 1,
327 .state_mem = { 328 .state_mem = {
328 .enabled = 0, 329 .enabled = 0,
@@ -350,6 +351,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
350 .min_uV = 3200000, 351 .min_uV = 3200000,
351 .max_uV = 3200000, 352 .max_uV = 3200000,
352 .valid_modes_mask = REGULATOR_MODE_NORMAL, 353 .valid_modes_mask = REGULATOR_MODE_NORMAL,
354 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
353 .apply_uV = 1, 355 .apply_uV = 1,
354 }, 356 },
355 }, 357 },
@@ -358,6 +360,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
358 .min_uV = 3000000, 360 .min_uV = 3000000,
359 .max_uV = 3000000, 361 .max_uV = 3000000,
360 .valid_modes_mask = REGULATOR_MODE_NORMAL, 362 .valid_modes_mask = REGULATOR_MODE_NORMAL,
363 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
361 .apply_uV = 1, 364 .apply_uV = 1,
362 .state_mem = { 365 .state_mem = {
363 .enabled = 1, 366 .enabled = 1,