summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-05-08 14:11:26 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-05-08 14:11:26 +0000
commit3ff1d584efad1bd0a622835ab07d71fc2cb161b3 (patch)
tree24b805859d147b4f72ac2bd5d960b97717270e6f /firmware
parent6dd6ea74af4ebfa1112f2e606db67357c0e2632f (diff)
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/power-imx31.c5
1 files changed, 3 insertions, 2 deletions
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)