rk3168:support act8846 set sleep voltage
author张晴 <zhangqing@rock-chips.com>
Wed, 26 Dec 2012 03:09:23 +0000 (11:09 +0800)
committer张晴 <zhangqing@rock-chips.com>
Wed, 26 Dec 2012 03:09:23 +0000 (11:09 +0800)
arch/arm/mach-rk30/board-pmu-act8846.c
arch/arm/mach-rk30/board-rk3168-tb.c [changed mode: 0644->0755]

index d218af1d2d863d1e00ad80a8ce288f45c6193d2d..42a78d2b9b752a64aaea62c5b4d3b0340ae141cc 100755 (executable)
@@ -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);
old mode 100644 (file)
new mode 100755 (executable)
index db3dc4b..762450b
@@ -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