summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/iriver
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-05-07 06:51:28 +0000
committerJens Arnold <amiconn@rockbox.org>2008-05-07 06:51:28 +0000
commit82cda9b091744d3ee44ea9a6b14f623499083fb5 (patch)
tree9b4ab09de4b253a891bfabad426b87e2fc8c6746 /firmware/target/arm/iriver
parent607b63a8278bfce55ca32356c5df17e2a029eda0 (diff)
downloadrockbox-82cda9b091744d3ee44ea9a6b14f623499083fb5.tar.gz
rockbox-82cda9b091744d3ee44ea9a6b14f623499083fb5.tar.bz2
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')
-rw-r--r--firmware/target/arm/iriver/h10/power-h10.c2
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)
{
if(on){
GPIO_CLEAR_BITWISE(GPIOF_OUTPUT_VAL, 0x01);
+ DEV_EN |= DEV_IDE0;
} else {
+ DEV_EN &= ~DEV_IDE0;
GPIO_SET_BITWISE(GPIOF_OUTPUT_VAL, 0x01);
}
}