diff options
Diffstat (limited to 'firmware/target/coldfire/iaudio/m3/power-m3.c')
-rw-r--r-- | firmware/target/coldfire/iaudio/m3/power-m3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/coldfire/iaudio/m3/power-m3.c b/firmware/target/coldfire/iaudio/m3/power-m3.c index 52a5de3460..a7f3fc46be 100644 --- a/firmware/target/coldfire/iaudio/m3/power-m3.c +++ b/firmware/target/coldfire/iaudio/m3/power-m3.c | |||
@@ -36,7 +36,7 @@ void power_init(void) | |||
36 | /* Charger detect */ | 36 | /* Charger detect */ |
37 | and_l(~0x00000020, &GPIO1_ENABLE); | 37 | and_l(~0x00000020, &GPIO1_ENABLE); |
38 | or_l(0x00000020, &GPIO1_FUNCTION); | 38 | or_l(0x00000020, &GPIO1_FUNCTION); |
39 | 39 | ||
40 | /* FIXME: Just disable the multi-colour LED for now. */ | 40 | /* FIXME: Just disable the multi-colour LED for now. */ |
41 | and_l(~0x00000210, &GPIO1_OUT); | 41 | and_l(~0x00000210, &GPIO1_OUT); |
42 | and_l(~0x00008000, &GPIO_OUT); | 42 | and_l(~0x00008000, &GPIO_OUT); |
@@ -61,7 +61,7 @@ void ide_power_enable(bool on) | |||
61 | 61 | ||
62 | bool ide_powered(void) | 62 | bool ide_powered(void) |
63 | { | 63 | { |
64 | return false; | 64 | return (GPIO_OUT & 0x00800000) != 0; |
65 | } | 65 | } |
66 | 66 | ||
67 | void power_off(void) | 67 | void power_off(void) |