summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/iriver/h10
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-10-02 16:19:36 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-10-02 16:19:36 +0000
commitc6ebfcce2cd6fbf4fe5faf9b120b0bdd567ecafe (patch)
treec6c40203310230bf73d41e880d695e57522e9cdb /firmware/target/arm/iriver/h10
parentba0d55510f98282b60ac42b7ee97b25cf9ed3522 (diff)
downloadrockbox-c6ebfcce2cd6fbf4fe5faf9b120b0bdd567ecafe.tar.gz
rockbox-c6ebfcce2cd6fbf4fe5faf9b120b0bdd567ecafe.tar.bz2
rockbox-c6ebfcce2cd6fbf4fe5faf9b120b0bdd567ecafe.zip
Enable ATA poweroff option on H10 for a nice increase in battery life.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11107 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/h10')
-rw-r--r--firmware/target/arm/iriver/h10/power-h10.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c
index 143248efcd..9470c0a67d 100644
--- a/firmware/target/arm/iriver/h10/power-h10.c
+++ b/firmware/target/arm/iriver/h10/power-h10.c
@@ -76,15 +76,17 @@ bool charger_inserted(void)
void ide_power_enable(bool on)
{
- (void)on;
- /* We do nothing on the iPod */
+ if(on){
+ GPIOF_OUTPUT_VAL &=~ 0x1;
+ } else {
+ GPIOF_OUTPUT_VAL |= 0x1;
+ }
}
bool ide_powered(void)
{
- /* pretend we are always powered - we don't turn it off on the ipod */
- return true;
+ return ((GPIOF_INPUT_VAL & 0x1) == 0);
}
void power_off(void)