From a2a5e782f44f531ad6f2859678f177ea01548d46 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 28 Nov 2008 10:16:44 +0000 Subject: [PATCH] qi-gta03-kill-100mA-usb-limit-temporary.patch We need > 100mA to boot GTA03 A1 right now Signed-off-by: Andy Green --- qiboot/src/cpu/s3c6410/gta03.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qiboot/src/cpu/s3c6410/gta03.c b/qiboot/src/cpu/s3c6410/gta03.c index 15f41ae..1d9bbb9 100644 --- a/qiboot/src/cpu/s3c6410/gta03.c +++ b/qiboot/src/cpu/s3c6410/gta03.c @@ -34,8 +34,12 @@ const struct pcf50633_init gta03_pcf50633_init[] = { { PCF50633_REG_MBCC3, 0x19 }, /* 25/255 == 98mA pre-charge */ { PCF50633_REG_MBCC4, 0xff }, /* 255/255 == 1A adapter fast */ { PCF50633_REG_MBCC5, 0x19 }, /* 25/255 == 98mA soft-start usb fast */ + { PCF50633_REG_MBCC6, 0x00 }, /* cutoff current 1/32 * Ichg */ +#if 0 + /* current prototype is pulling > 100mA at startup */ { PCF50633_REG_MBCC7, 0x00 }, /* 1.6A max bat curr, USB 100mA */ +#endif { PCF50633_REG_MBCC8, 0x00 }, { PCF50633_REG_MBCC1, 0xff }, /* chgena */ @@ -797,7 +801,6 @@ void port_init_gta03(void) /* * We have to talk to the PMU a little bit */ - for (n = 0; n < ARRAY_SIZE(gta03_pcf50633_init); n++) i2c_write_sync(&bb_s3c6410, PCF50633_I2C_ADS, gta03_pcf50633_init[n].index,