[linux-yocto] [PATCH 3/3] drivers: power: atc260x_power: increase charger current according battery specification

Jiang Lu lu.jiang at windriver.com
Thu Jun 1 03:10:41 PDT 2017


From: Limeng <Meng.Li at windriver.com>

According to PMIC vendor suggestion and battery specification, changing
charger current from 400mA into 800mA.

Signed-off-by: Meng Li <Meng.Li at windriver.com>
---
 drivers/power/atc260x_power/atc260x_power_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/power/atc260x_power/atc260x_power_main.c b/drivers/power/atc260x_power/atc260x_power_main.c
index 7e74021..90ea514 100755
--- a/drivers/power/atc260x_power/atc260x_power_main.c
+++ b/drivers/power/atc260x_power/atc260x_power_main.c
@@ -1366,6 +1366,8 @@ static void atc260x_charger_adjust_current(struct atc260x_charger *charger)
 		if (charger->charger_cur_status & WALL_PLUGED) 
 		{
 			set_current = atc260x_get_future_current(charger, WALL_PLUGED);
+			//ori=4;set_current=0x8, current_binary=0x6->0110: ICHG_REG_CC=800mA
+			set_current = set_current + 4;
 		}
 		else if (charger->charger_cur_status & USB_PLUGED)
 		{
-- 
2.7.4



More information about the linux-yocto mailing list