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>
This commit is contained in:
Lars-Peter Clausen 2011-02-28 15:25:08 +09:00 коммит произвёл Kukjin Kim
Родитель 003ddede62
Коммит 7cda344077
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -314,8 +314,8 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.min_uV = 2000000, .min_uV = 2000000,
.max_uV = 3300000, .max_uV = 3300000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
.always_on = 1, REGULATOR_CHANGE_STATUS,
}, },
}, },
[PCF50633_REGULATOR_LDO1] = { [PCF50633_REGULATOR_LDO1] = {
@ -323,6 +323,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.min_uV = 3300000, .min_uV = 3300000,
.max_uV = 3300000, .max_uV = 3300000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
.apply_uV = 1, .apply_uV = 1,
.state_mem = { .state_mem = {
.enabled = 0, .enabled = 0,
@ -350,6 +351,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.min_uV = 3200000, .min_uV = 3200000,
.max_uV = 3200000, .max_uV = 3200000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
.apply_uV = 1, .apply_uV = 1,
}, },
}, },
@ -358,6 +360,7 @@ struct pcf50633_platform_data gta02_pcf_pdata = {
.min_uV = 3000000, .min_uV = 3000000,
.max_uV = 3000000, .max_uV = 3000000,
.valid_modes_mask = REGULATOR_MODE_NORMAL, .valid_modes_mask = REGULATOR_MODE_NORMAL,
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
.apply_uV = 1, .apply_uV = 1,
.state_mem = { .state_mem = {
.enabled = 1, .enabled = 1,