From 3ff1d584efad1bd0a622835ab07d71fc2cb161b3 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 8 May 2008 14:11:26 +0000 Subject: Hehe. Should probably implement ide_powered if implementing ide_power_enable. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17415 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/gigabeat-s/power-imx31.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/target') diff --git a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c index 402308bce6..53cdb7c315 100644 --- a/firmware/target/arm/imx31/gigabeat-s/power-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/power-imx31.c @@ -44,7 +44,8 @@ bool charger_inserted(void) } /* Returns true if the unit is charging the batteries. */ -bool charging_state(void) { +bool charging_state(void) +{ return false; } @@ -69,7 +70,7 @@ void ide_power_enable(bool on) bool ide_powered(void) { - return true; + return (GPIO3_DR & (1 << 5)) != 0; } void power_off(void) -- cgit v1.2.3