diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-04-11 12:33:02 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-04-11 12:33:02 +0000 |
commit | f6cecfd91b42dabb1dc4ad50c5afd38d8c588d0f (patch) | |
tree | 1648fee3a84ec192d30c6cbb05acb020d7e0571f /firmware/target/arm/ipod | |
parent | 268c6d1e7f54379f78a8a69002ad133056f7f452 (diff) | |
download | rockbox-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/arm/ipod')
-rw-r--r-- | firmware/target/arm/ipod/powermgmt-ipod-pcf.c | 16 |
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 |
118 | void accessory_supply_set(bool enable) | 118 | void 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 | ||