RK29SmartPhone:reduce power consumption in sleep
authorphc <phc@rk29>
Sat, 18 Jun 2011 08:16:08 +0000 (16:16 +0800)
committerphc <phc@rk29>
Sat, 18 Jun 2011 08:16:08 +0000 (16:16 +0800)
1 change SPI to input GPIO;
2 close cmmb and dpram power supply;

arch/arm/configs/rk29_phonesdk_defconfig [changed mode: 0644->0755]
arch/arm/mach-rk29/board-rk29-phonesdk.c

old mode 100644 (file)
new mode 100755 (executable)
index f6c3551..684a191
@@ -241,7 +241,7 @@ CONFIG_RK29_LAST_LOG=y
 #
 # The control interface support for RK29 suspend 
 #
-# CONFIG_RK29_SPI_INSRAM is not set
+CONFIG_RK29_SPI_INSRAM=y
 
 #
 # Processor Type
@@ -896,6 +896,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
 # CONFIG_EETI_EGALAX is not set
 # CONFIG_TOUCHSCREEN_IT7260 is not set
 CONFIG_TOUCHSCREEN_GT801_IIC=y
+# CONFIG_TOUCHSCREEN_GT818_IIC is not set
 # CONFIG_D70_L3188A is not set
 CONFIG_INPUT_MISC=y
 # CONFIG_INPUT_LPSENSOR_ISL29028 is not set
index 15fc4bff295326178443e909d1facb53cc72a8f7..82819b32ddc6a8e82d923e2211afcc2d0ab46503 100644 (file)
@@ -772,10 +772,11 @@ int wm831x_post_init(struct wm831x *parm)
        regulator_put(ldo);
 
        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_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
@@ -793,17 +794,19 @@ int wm831x_post_init(struct wm831x *parm)
        regulator_put(ldo);
 
        ldo = regulator_get(NULL, "ldo8");              //cmmb
-       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_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_put(ldo);
 
        ldo = regulator_get(NULL, "ldo9");              //cmmb
-       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_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_put(ldo);
        
 #endif