summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/ipod/powermgmt-ipod-pcf.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/firmware/target/arm/ipod/powermgmt-ipod-pcf.c b/firmware/target/arm/ipod/powermgmt-ipod-pcf.c
index 95f5380b92..c939f398e3 100644
--- a/firmware/target/arm/ipod/powermgmt-ipod-pcf.c
+++ b/firmware/target/arm/ipod/powermgmt-ipod-pcf.c
@@ -117,17 +117,11 @@ unsigned int battery_adc_voltage(void)
117#ifdef HAVE_ACCESSORY_SUPPLY 117#ifdef HAVE_ACCESSORY_SUPPLY
118void accessory_supply_set(bool enable) 118void accessory_supply_set(bool enable)
119{ 119{
120 if (enable) 120 /* Set accessory power supply to 3.3V, otherwise switch it off. */
121 { 121 unsigned char value = enable ? 0xf8 : 0x18;
122 /* Accessory voltage supply on */ 122
123 pcf50605_write(PCF5060X_D2REGC1, 0xf8); /* 3.3V ON */ 123 /* Write to register. */
124 } 124 pcf50605_write(PCF5060X_D2REGC1, value);
125 else
126 {
127 /* Accessory voltage supply off */
128 pcf50605_write(PCF5060X_D2REGC1, 0x18); /* OFF */
129 }
130
131} 125}
132#endif 126#endif
133 127