From bc76a42eca84175111562dc85121630ed8c77ac9 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 2 Feb 2007 15:47:28 +0000 Subject: Corrected the comments regarding USB charging git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12181 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iriver/h300/pcf50606-h300.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/target/coldfire/iriver/h300/pcf50606-h300.c b/firmware/target/coldfire/iriver/h300/pcf50606-h300.c index 7d101f7347..536e43dde6 100644 --- a/firmware/target/coldfire/iriver/h300/pcf50606-h300.c +++ b/firmware/target/coldfire/iriver/h300/pcf50606-h300.c @@ -78,10 +78,14 @@ static inline void enable_pmu_interrupts(void) * to highest before calling this function! */ void pcf50606_set_usb_charging(bool on) { + /* USB charging is controlled by GPOOD0: + High-Z: Charge enable + Pulled down: Charge disable + */ if (on) - pcf50606_write(0x39, 0x00); /* Set GPOOD2 to High-Z for USB Charge Enable */ + pcf50606_write(0x39, 0x00); else - pcf50606_write(0x39, 0x07); /* Set GPOOD2 to pulled down to disable USB charging */ + pcf50606_write(0x39, 0x07); usb_ch_enabled = on; -- cgit v1.2.3