From aa7d43f7a61998080be228f94aa3d26b5c1dfbc5 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Mon, 1 Jun 2009 21:21:29 +0000 Subject: Fix reds & yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21162 a1c6a512-1295-4272-9138-f99709370657 --- .../ingenic_jz47xx/onda_vx747/power-onda_vx747.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'firmware/target/mips/ingenic_jz47xx/onda_vx747') diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/power-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/power-onda_vx747.c index fc77d063f9..19d634873c 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/power-onda_vx747.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/power-onda_vx747.c @@ -27,6 +27,7 @@ #define UNK_GPIO (32*1+30) /* STAT port */ #define USB_CHARGER_GPIO (32*3+28) +#if CONFIG_CHARGING /* Detect which power sources are present. */ unsigned int power_input_status(void) { @@ -37,6 +38,7 @@ unsigned int power_input_status(void) return status; } +#endif void power_init(void) { @@ -47,3 +49,22 @@ bool charging_state(void) { return false; } + +#if CONFIG_TUNER +static bool tuner_on = false; +bool tuner_power(bool status) +{ + if (status != tuner_on) + { + tuner_on = status; + status = !status; + } + + return status; +} + +bool tuner_powered(void) +{ + return tuner_on; +} +#endif -- cgit v1.2.3