summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-02-02 15:47:28 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-02-02 15:47:28 +0000
commitbc76a42eca84175111562dc85121630ed8c77ac9 (patch)
treeb2ad1faecd85a32a98f5dcd63b55981cddd70c42 /firmware
parent927ffda5936708ce465ebf7bca1e12b913e9f0ce (diff)
downloadrockbox-bc76a42eca84175111562dc85121630ed8c77ac9.tar.gz
rockbox-bc76a42eca84175111562dc85121630ed8c77ac9.tar.bz2
rockbox-bc76a42eca84175111562dc85121630ed8c77ac9.zip
Corrected the comments regarding USB charging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12181 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/coldfire/iriver/h300/pcf50606-h300.c8
1 files 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;