mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
rk3168:support act8846 set sleep voltage
This commit is contained in:
@@ -48,6 +48,7 @@ static int act8846_set_init(struct act8846 *act8846)
|
||||
continue;
|
||||
dcdc =regulator_get(NULL, act8846_dcdc_info[i].name);
|
||||
regulator_set_voltage(dcdc, act8846_dcdc_info[i].min_uv, act8846_dcdc_info[i].max_uv);
|
||||
regulator_set_suspend_voltage(dcdc, act8846_dcdc_info[i].suspend_vol);
|
||||
regulator_enable(dcdc);
|
||||
printk("%s %s =%dmV end\n", __func__,act8846_dcdc_info[i].name, regulator_get_voltage(dcdc));
|
||||
regulator_put(dcdc);
|
||||
|
||||
1
arch/arm/mach-rk30/board-rk3168-tb.c
Normal file → Executable file
1
arch/arm/mach-rk30/board-rk3168-tb.c
Normal file → Executable file
@@ -1564,6 +1564,7 @@ static struct pmu_info act8846_dcdc_info[] = {
|
||||
.name = "act_dcdc1", //ddr
|
||||
.min_uv = 1200000,
|
||||
.max_uv = 1200000,
|
||||
.suspend_vol = 1200000,
|
||||
},
|
||||
{
|
||||
.name = "vdd_core", //logic
|
||||
|
||||
Reference in New Issue
Block a user