From 24916215525271b01ab9f7e77d153f3d3fc1d678 Mon Sep 17 00:00:00 2001 From: phc <phc@rk29> Date: Sat, 18 Jun 2011 16:16:08 +0800 Subject: [PATCH] RK29SmartPhone:reduce power consumption in sleep 1 change SPI to input GPIO; 2 close cmmb and dpram power supply; --- arch/arm/configs/rk29_phonesdk_defconfig | 3 ++- arch/arm/mach-rk29/board-rk29-phonesdk.c | 27 +++++++++++++----------- 2 files changed, 17 insertions(+), 13 deletions(-) mode change 100644 => 100755 arch/arm/configs/rk29_phonesdk_defconfig diff --git a/arch/arm/configs/rk29_phonesdk_defconfig b/arch/arm/configs/rk29_phonesdk_defconfig old mode 100644 new mode 100755 index f6c3551fe187..684a19136e29 --- a/arch/arm/configs/rk29_phonesdk_defconfig +++ b/arch/arm/configs/rk29_phonesdk_defconfig @@ -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 diff --git a/arch/arm/mach-rk29/board-rk29-phonesdk.c b/arch/arm/mach-rk29/board-rk29-phonesdk.c index 15fc4bff2953..82819b32ddc6 100644 --- a/arch/arm/mach-rk29/board-rk29-phonesdk.c +++ b/arch/arm/mach-rk29/board-rk29-phonesdk.c @@ -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 -- 2.34.1