summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/iaudio/m3/power-m3.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/iaudio/m3/power-m3.c')
-rw-r--r--firmware/target/coldfire/iaudio/m3/power-m3.c11
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 @@
#include "power.h"
#include "system.h"
-#ifndef SIMULATOR
-
void power_init(void)
{
/* Set KEEPACT */
@@ -47,9 +45,10 @@ void power_init(void)
#endif
}
-bool charger_inserted(void)
-{
- return (GPIO1_READ & 0x00000020) == 0;
+unsigned int power_input_status(void)
+{
+ return ((GPIO1_READ & 0x00000020) == 0) ?
+ POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE;
}
void ide_power_enable(bool on)
@@ -77,8 +76,6 @@ void power_off(void)
asm("halt");
}
-#endif /* SIMULATOR */
-
bool tuner_power(bool status)
{
(void)status;