mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
smartphonesdk: to resolve the waring--unbalanced disable for LDO3,LDO8,LDO9
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user