diff options
Diffstat (limited to 'firmware/target/coldfire/iaudio/m3/power-m3.c')
-rw-r--r-- | firmware/target/coldfire/iaudio/m3/power-m3.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/firmware/target/coldfire/iaudio/m3/power-m3.c b/firmware/target/coldfire/iaudio/m3/power-m3.c index 5dbeadf732..4c446e54d0 100644 --- a/firmware/target/coldfire/iaudio/m3/power-m3.c +++ b/firmware/target/coldfire/iaudio/m3/power-m3.c | |||
@@ -27,8 +27,6 @@ | |||
27 | #include "power.h" | 27 | #include "power.h" |
28 | #include "system.h" | 28 | #include "system.h" |
29 | 29 | ||
30 | #ifndef SIMULATOR | ||
31 | |||
32 | void power_init(void) | 30 | void power_init(void) |
33 | { | 31 | { |
34 | /* Set KEEPACT */ | 32 | /* Set KEEPACT */ |
@@ -47,9 +45,10 @@ void power_init(void) | |||
47 | #endif | 45 | #endif |
48 | } | 46 | } |
49 | 47 | ||
50 | bool charger_inserted(void) | 48 | unsigned int power_input_status(void) |
51 | { | 49 | { |
52 | return (GPIO1_READ & 0x00000020) == 0; | 50 | return ((GPIO1_READ & 0x00000020) == 0) ? |
51 | POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE; | ||
53 | } | 52 | } |
54 | 53 | ||
55 | void ide_power_enable(bool on) | 54 | void ide_power_enable(bool on) |
@@ -77,8 +76,6 @@ void power_off(void) | |||
77 | asm("halt"); | 76 | asm("halt"); |
78 | } | 77 | } |
79 | 78 | ||
80 | #endif /* SIMULATOR */ | ||
81 | |||
82 | bool tuner_power(bool status) | 79 | bool tuner_power(bool status) |
83 | { | 80 | { |
84 | (void)status; | 81 | (void)status; |