From fd3fac5a54d681e3cb91d3a4bd5d49393ac95bf0 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Tue, 2 Jun 2009 04:21:26 +0400 Subject: [PATCH] GTA02: set battery full charging current threshold to 2/32*Ichg In most conditions the charger is unable to detect battery full status because gsm modem continiously draws current directly from the battery. This makes it less sensitive and therefore will cutoff charging properly. Signed-off-by: Paul Fertser --- qiboot/src/cpu/s3c2442/gta02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiboot/src/cpu/s3c2442/gta02.c b/qiboot/src/cpu/s3c2442/gta02.c index 1a31274..13be2ac 100644 --- a/qiboot/src/cpu/s3c2442/gta02.c +++ b/qiboot/src/cpu/s3c2442/gta02.c @@ -103,7 +103,7 @@ const struct pcf50633_init pcf50633_init[] = { { PCF50633_REG_MBCC3, 0x19 }, /* 25/255 == 98mA pre-charge */ { PCF50633_REG_MBCC4, 0xff }, /* 255/255 == 1A adapter fast */ { PCF50633_REG_MBCC5, 0xff }, /* 255/255 == 1A usb fast */ - { PCF50633_REG_MBCC6, 0x00 }, /* cutoff current 1/32 * Ichg */ + { PCF50633_REG_MBCC6, 0x01 }, /* cutoff current 2/32 * Ichg */ { PCF50633_REG_MBCC7, 0x00 }, /* 1.6A max bat curr, USB 100mA */ { PCF50633_REG_MBCC8, 0x00 }, { PCF50633_REG_MBCC1, 0xff }, /* chgena */