aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c2440
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@openmoko.org>2008-12-29 12:11:30 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-12-29 12:11:30 +0000
commit4c92928c63ab443dc1d3f5368c0fd6ae40c36c83 (patch)
treed47d58cb65a79958e1e1ade805e81d52d60190ad /arch/arm/mach-s3c2440
parente142549d884a17b81b4c87de8ab116bd8b1df03c (diff)
Start charging when the usb current limit is changed.
This makes sure that charging status remains correct when currrent limit is altered from userspace. Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index c9c5391f3d0..dc0ef0f2a5b 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -521,14 +521,9 @@ gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res)
pcf50633_gpio_set(pcf, PCF50633_GPO, 0);
ma = 1000;
- pcf->mbc.usb_active = 1;
- } else {
+ } else
ma = 100;
- /* We know that we can't charge now */
- pcf->mbc.usb_active = 0;
- }
-
pcf50633_mbc_usb_curlim_set(pcf, ma);
}
@@ -540,9 +535,6 @@ static void gta02_charger_worker(struct work_struct *work)
struct pcf50633 *pcf = gta02_pcf_pdata.pcf;
if (gta02_usb_vbus_draw) {
- /* We can charge now */
- pcf->mbc.usb_active = 1;
-
pcf50633_mbc_usb_curlim_set(pcf, gta02_usb_vbus_draw);
return;
} else {