From: 张晴 Date: Wed, 26 Dec 2012 03:09:23 +0000 (+0800) Subject: rk3168:support act8846 set sleep voltage X-Git-Tag: firefly_0821_release~8066 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1edcdb2eab8a13edb52dcc093c68315b9948d793;p=firefly-linux-kernel-4.4.55.git rk3168:support act8846 set sleep voltage --- diff --git a/arch/arm/mach-rk30/board-pmu-act8846.c b/arch/arm/mach-rk30/board-pmu-act8846.c index d218af1d2d86..42a78d2b9b75 100755 --- a/arch/arm/mach-rk30/board-pmu-act8846.c +++ b/arch/arm/mach-rk30/board-pmu-act8846.c @@ -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); diff --git a/arch/arm/mach-rk30/board-rk3168-tb.c b/arch/arm/mach-rk30/board-rk3168-tb.c old mode 100644 new mode 100755 index db3dc4b5a501..762450bf2e09 --- a/arch/arm/mach-rk30/board-rk3168-tb.c +++ b/arch/arm/mach-rk30/board-rk3168-tb.c @@ -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