diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-05-07 06:51:28 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-05-07 06:51:28 +0000 |
commit | 82cda9b091744d3ee44ea9a6b14f623499083fb5 (patch) | |
tree | 9b4ab09de4b253a891bfabad426b87e2fc8c6746 /firmware/target/arm/iriver/h10/power-h10.c | |
parent | 607b63a8278bfce55ca32356c5df17e2a029eda0 (diff) | |
download | rockbox-82cda9b091744d3ee44ea9a6b14f623499083fb5.tar.gz rockbox-82cda9b091744d3ee44ea9a6b14f623499083fb5.zip |
H10: Disable IDE controller when the disk is powered down like on ipods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17402 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/h10/power-h10.c')
-rw-r--r-- | firmware/target/arm/iriver/h10/power-h10.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c index f4d5be49a6..410578f8f5 100644 --- a/firmware/target/arm/iriver/h10/power-h10.c +++ b/firmware/target/arm/iriver/h10/power-h10.c | |||
@@ -59,7 +59,9 @@ void ide_power_enable(bool on) | |||
59 | { | 59 | { |
60 | if(on){ | 60 | if(on){ |
61 | GPIO_CLEAR_BITWISE(GPIOF_OUTPUT_VAL, 0x01); | 61 | GPIO_CLEAR_BITWISE(GPIOF_OUTPUT_VAL, 0x01); |
62 | DEV_EN |= DEV_IDE0; | ||
62 | } else { | 63 | } else { |
64 | DEV_EN &= ~DEV_IDE0; | ||
63 | GPIO_SET_BITWISE(GPIOF_OUTPUT_VAL, 0x01); | 65 | GPIO_SET_BITWISE(GPIOF_OUTPUT_VAL, 0x01); |
64 | } | 66 | } |
65 | } | 67 | } |