smartphonesdk: to resolve the waring--unbalanced disable for LDO3,LDO8,LDO9
authorxsf@rock-chips.com <root@xxx-desktop.(none)>
Fri, 1 Jul 2011 08:15:40 +0000 (16:15 +0800)
committerxsf@rock-chips.com <root@xxx-desktop.(none)>
Fri, 1 Jul 2011 08:15:40 +0000 (16:15 +0800)
arch/arm/mach-rk29/board-rk29-phonesdk.c

index b42f059d343d48a6ba3b02286df49d338daeb45a..256664c4601740d80b1a40be239ffaee6d158f03 100755 (executable)
@@ -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");