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:
Родитель
003ddede62
Коммит
7cda344077
|
@ -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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче