From 05f12e08772d1ca03101b176e329bfd313daf673 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 31 Dec 2011 13:34:56 +0000 Subject: ypr0: Enable battery voltage read-out, charging monitoring and charger detection. Voltage can be read using as3543 adc (i.e. ascodec api, on this target implemented via ioctl()). TODO: Look into possibly controlling charging more by re-using powermgmt-ascodec.c. However, charging seems to be controlled by the kernel, so may not be needed. Charger state can be read using /dev/minivet. It allows to differentiate between wall charger and usb charging, but that's not implemented (is it even worthwhile?) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31470 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/power.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/export/power.h') diff --git a/firmware/export/power.h b/firmware/export/power.h index d46b9ba924..4937705910 100644 --- a/firmware/export/power.h +++ b/firmware/export/power.h @@ -23,6 +23,7 @@ #include "config.h" +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) #if CONFIG_CHARGING enum power_input_flags { /* No external power source? Default. */ @@ -100,4 +101,6 @@ bool tuner_power(bool status); bool tuner_powered(void); #endif +#endif + #endif /* _POWER_H_ */ -- cgit v1.2.3