summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-04-11 12:33:02 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-04-11 12:33:02 +0000
commitf6cecfd91b42dabb1dc4ad50c5afd38d8c588d0f (patch)
tree1648fee3a84ec192d30c6cbb05acb020d7e0571f /firmware/target
parent268c6d1e7f54379f78a8a69002ad133056f7f452 (diff)
downloadrockbox-f6cecfd91b42dabb1dc4ad50c5afd38d8c588d0f.tar.gz
rockbox-f6cecfd91b42dabb1dc4ad50c5afd38d8c588d0f.zip
Minor binsize savings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25588 a1c6a512-1295-4272-9138-f99709370657
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