rk2928: act8931: adjust GPIO effective value for the control of charge current
authorxieyi <xieyi@rock-chips.com>
Wed, 17 Oct 2012 07:56:14 +0000 (15:56 +0800)
committerxieyi <xieyi@rock-chips.com>
Wed, 17 Oct 2012 08:05:03 +0000 (16:05 +0800)
arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c

index 6bad7047ec741c6d9d60214c5e9acdfebfd7a673..4e111b21bd5682129ba11bfb7c163acbf65e2426 100755 (executable)
@@ -15,7 +15,7 @@
 #define ACT8931_CHGSEL_PIN RK2928_PIN1_PA1
 #endif
 
-#define ACT8931_CHGSEL_VALUE GPIO_LOW /* Decline to 20% current */
+#define ACT8931_CHGSEL_VALUE GPIO_HIGH /* Declined to 20% current */
 
 extern int platform_device_register(struct platform_device *pdev);
 
@@ -292,12 +292,12 @@ static struct act8931_platform_data act8931_data={
 #ifdef CONFIG_HAS_EARLYSUSPEND
 void act8931_early_suspend(struct early_suspend *h)
 {
-       gpio_direction_output(ACT8931_CHGSEL_PIN, ACT8931_CHGSEL_VALUE);
+       gpio_direction_output(ACT8931_CHGSEL_PIN, !ACT8931_CHGSEL_VALUE);
 }
 
 void act8931_late_resume(struct early_suspend *h)
 {
-       gpio_direction_output(ACT8931_CHGSEL_PIN, !ACT8931_CHGSEL_VALUE);
+       gpio_direction_output(ACT8931_CHGSEL_PIN, ACT8931_CHGSEL_VALUE);
 }
 #endif