summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-12-31 13:34:56 +0000
committerThomas Martitz <kugel@rockbox.org>2011-12-31 13:34:56 +0000
commit05f12e08772d1ca03101b176e329bfd313daf673 (patch)
tree56ce125d3bd3c2c1d3e5588b2a3ddab1b8a460ab /firmware/export/powermgmt.h
parent07605a659e06efaedb325e9a91214be503188f06 (diff)
downloadrockbox-05f12e08772d1ca03101b176e329bfd313daf673.tar.gz
rockbox-05f12e08772d1ca03101b176e329bfd313daf673.zip
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
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index d54f1d5a18..837767f56b 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -78,7 +78,7 @@ extern unsigned int power_thread_inputs;
78/* Start up power management thread */ 78/* Start up power management thread */
79void powermgmt_init(void) INIT_ATTR; 79void powermgmt_init(void) INIT_ATTR;
80 80
81#if (CONFIG_PLATFORM & PLATFORM_NATIVE) 81#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0)
82 82
83/* Generic current values that are intentionally meaningless - config header 83/* Generic current values that are intentionally meaningless - config header
84 * should define proper numbers.*/ 84 * should define proper numbers.*/