[PATCH v2] GTA02: set battery full charging current threshold to 2/32*Ichg
Paul Fertser
fercerpav at gmail.com
Tue Jun 2 02:21:26 CEST 2009
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.
Credit goes to Joerg Reisenweber for noticing and investigating the problem.
Signed-off-by: Paul Fertser <fercerpav at gmail.com>
---
src/cpu/s3c2442/gta02.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cpu/s3c2442/gta02.c b/src/cpu/s3c2442/gta02.c
index ae62158..eff7dfb 100644
--- a/src/cpu/s3c2442/gta02.c
+++ b/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 */
--
1.6.0.6
More information about the openmoko-kernel
mailing list