From: xsf@rock-chips.com Date: Fri, 1 Jul 2011 08:15:40 +0000 (+0800) Subject: smartphonesdk: to resolve the waring--unbalanced disable for LDO3,LDO8,LDO9 X-Git-Tag: firefly_0821_release~10146^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bffa62f342fe1c0590fff01369349ea7b0177997;p=firefly-linux-kernel-4.4.55.git smartphonesdk: to resolve the waring--unbalanced disable for LDO3,LDO8,LDO9 --- diff --git a/arch/arm/mach-rk29/board-rk29-phonesdk.c b/arch/arm/mach-rk29/board-rk29-phonesdk.c index b42f059d343d..256664c46017 100755 --- a/arch/arm/mach-rk29/board-rk29-phonesdk.c +++ b/arch/arm/mach-rk29/board-rk29-phonesdk.c @@ -777,13 +777,6 @@ int wm831x_post_init(struct wm831x *parm) printk("%s set ldo2=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); regulator_put(ldo); - ldo = regulator_get(NULL, "ldo3"); //sram - regulator_disable(ldo); -// regulator_set_voltage(ldo,1800000,1800000); -// regulator_set_suspend_voltage(ldo,1800000); -// regulator_enable(ldo); -// printk("%s set ldo3=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); - regulator_put(ldo); ldo = regulator_get(NULL, "ldo5"); //tf regulator_set_voltage(ldo,3000000,3000000); @@ -799,22 +792,32 @@ int wm831x_post_init(struct wm831x *parm) printk("%s set ldo6=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); regulator_put(ldo); + + +#if 0 + ldo = regulator_get(NULL, "ldo3"); //sram + regulator_set_voltage(ldo,1800000,1800000); + regulator_set_suspend_voltage(ldo,1800000); + regulator_enable(ldo); + printk("%s set ldo3=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); + regulator_put(ldo); + + ldo = regulator_get(NULL, "ldo8"); //cmmb - regulator_disable(ldo); -// regulator_set_voltage(ldo,1200000,1200000); -// regulator_set_suspend_voltage(ldo,1200000); -// regulator_enable(ldo); -// printk("%s set ldo8=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); + regulator_set_voltage(ldo,1200000,1200000); + regulator_set_suspend_voltage(ldo,1200000); + regulator_enable(ldo); + printk("%s set ldo8=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); regulator_put(ldo); ldo = regulator_get(NULL, "ldo9"); //cmmb - regulator_disable(ldo); -// regulator_set_voltage(ldo,3000000,3000000); -// regulator_set_suspend_voltage(ldo,3000000); -// regulator_enable(ldo); -// printk("%s set ldo9=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); + regulator_set_voltage(ldo,3000000,3000000); + regulator_set_suspend_voltage(ldo,3000000); + regulator_enable(ldo); + printk("%s set ldo9=%dmV end\n", __FUNCTION__, regulator_get_voltage(ldo)); regulator_put(ldo); - +#endif + #endif ldo = regulator_get(NULL, "ldo11");