From ef35080728cd8583d4b6249459a7c9e6b13f5b22 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 27 Feb 2006 08:47:18 +0000 Subject: [PATCH] ATA power control on iAudio X5 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8855 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iaudio/x5/power-x5.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)