]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: pxa/hx4700: Reduce sleep mode battery discharge by 35%
authorPaul Parsons <lost.distance@yahoo.com>
Sun, 11 Mar 2012 13:23:42 +0000 (13:23 +0000)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Wed, 14 Mar 2012 08:46:13 +0000 (16:46 +0800)
Drive the two Bluetooth UART output GPIOs (GPIO43_BTUART_TXD, GPIO45_BTUART_RTS)
LOW during sleep mode instead of HIGH. This reduces sleep mode battery discharge
from approximately 46 mA to approximately 30 mA.

Signed-off-by: Oliver Winker <oliver@oli1170.net>
Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-pxa/hx4700.c
arch/arm/mach-pxa/include/mach/mfp-pxa27x.h

index c5fb105d26898b2d0e1c3637e4ae526ee8bf1af4..f49043cbab10d98571b108d6987a8110bb4fc7b2 100644 (file)
@@ -97,9 +97,9 @@ static unsigned long hx4700_pin_config[] __initdata = {
 
        /* BTUART */
        GPIO42_BTUART_RXD,
-       GPIO43_BTUART_TXD,
+       GPIO43_BTUART_TXD_LPM_LOW,
        GPIO44_BTUART_CTS,
-       GPIO45_BTUART_RTS,
+       GPIO45_BTUART_RTS_LPM_LOW,
 
        /* PWM 1 (Backlight) */
        GPIO17_PWM1_OUT,
index ec0f0b0b6744b9afba76c6b482cf888b7b530b81..a65867209aa0da3e251b3791377e4f8966b37d72 100644 (file)
 #define GPIO44_BTUART_CTS      MFP_CFG_IN(GPIO44, AF1)
 #define GPIO42_BTUART_RXD      MFP_CFG_IN(GPIO42, AF1)
 #define GPIO45_BTUART_RTS      MFP_CFG_OUT(GPIO45, AF2, DRIVE_HIGH)
+#define GPIO45_BTUART_RTS_LPM_LOW      MFP_CFG_OUT(GPIO45, AF2, DRIVE_LOW)
 #define GPIO43_BTUART_TXD      MFP_CFG_OUT(GPIO43, AF2, DRIVE_HIGH)
+#define GPIO43_BTUART_TXD_LPM_LOW      MFP_CFG_OUT(GPIO43, AF2, DRIVE_LOW)
 
 /* STUART */
 #define GPIO46_STUART_RXD      MFP_CFG_IN(GPIO46, AF2)