From: xieyi Date: Wed, 17 Oct 2012 07:56:14 +0000 (+0800) Subject: rk2928: act8931: adjust GPIO effective value for the control of charge current X-Git-Tag: firefly_0821_release~8392^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b6522b52a1eca2b2ba7015a09c2502cd7f226c3c;p=firefly-linux-kernel-4.4.55.git rk2928: act8931: adjust GPIO effective value for the control of charge current --- diff --git a/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c b/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c index 6bad7047ec74..4e111b21bd56 100755 --- a/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c +++ b/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c @@ -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