summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iriver/h300/pcf50606-h300.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/iriver/h300/pcf50606-h300.c')
-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)
78 * to highest before calling this function! */ 78 * to highest before calling this function! */
79void pcf50606_set_usb_charging(bool on) 79void 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