summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-27 08:47:18 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-27 08:47:18 +0000
commitef35080728cd8583d4b6249459a7c9e6b13f5b22 (patch)
tree100206b2edb5b26279b05cf1ed6fd3012d6d4742
parent999c5d8c007ec246bd70260c2562560a3d348930 (diff)
ATA power control on iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8855 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/coldfire/iaudio/x5/power-x5.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/power-x5.c b/firmware/target/coldfire/iaudio/x5/power-x5.c
index 0df6d379a4..14236cbb37 100644
--- a/firmware/target/coldfire/iaudio/x5/power-x5.c
+++ b/firmware/target/coldfire/iaudio/x5/power-x5.c
@@ -42,7 +42,13 @@ bool charger_inserted(void)
void ide_power_enable(bool on)
{
- (void)on;
+ /* GPOOD3 */
+ int level = set_irq_level(HIGHEST_IRQ_LEVEL);
+ if(on)
+ pcf50606_write(0x3c, 0x07);
+ else
+ pcf50606_write(0x3c, 0x00);
+ set_irq_level(level);
}
bool ide_powered(void)