diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2007-02-02 15:47:28 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2007-02-02 15:47:28 +0000 |
commit | bc76a42eca84175111562dc85121630ed8c77ac9 (patch) | |
tree | b2ad1faecd85a32a98f5dcd63b55981cddd70c42 /firmware/target/coldfire | |
parent | 927ffda5936708ce465ebf7bca1e12b913e9f0ce (diff) | |
download | rockbox-bc76a42eca84175111562dc85121630ed8c77ac9.tar.gz 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/target/coldfire')
-rw-r--r-- | firmware/target/coldfire/iriver/h300/pcf50606-h300.c | 8 |
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) | |||
78 | * to highest before calling this function! */ | 78 | * to highest before calling this function! */ |
79 | void pcf50606_set_usb_charging(bool on) | 79 | void pcf50606_set_usb_charging(bool on) |
80 | { | 80 | { |
81 | /* USB charging is controlled by GPOOD0: | ||
82 | High-Z: Charge enable | ||
83 | Pulled down: Charge disable | ||
84 | */ | ||
81 | if (on) | 85 | if (on) |
82 | pcf50606_write(0x39, 0x00); /* Set GPOOD2 to High-Z for USB Charge Enable */ | 86 | pcf50606_write(0x39, 0x00); |
83 | else | 87 | else |
84 | pcf50606_write(0x39, 0x07); /* Set GPOOD2 to pulled down to disable USB charging */ | 88 | pcf50606_write(0x39, 0x07); |
85 | 89 | ||
86 | usb_ch_enabled = on; | 90 | usb_ch_enabled = on; |
87 | 91 | ||