diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-12-31 13:34:56 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-12-31 13:34:56 +0000 |
commit | 05f12e08772d1ca03101b176e329bfd313daf673 (patch) | |
tree | 56ce125d3bd3c2c1d3e5588b2a3ddab1b8a460ab /firmware/export/config | |
parent | 07605a659e06efaedb325e9a91214be503188f06 (diff) | |
download | rockbox-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/config')
-rw-r--r-- | firmware/export/config/samsungypr0.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/export/config/samsungypr0.h b/firmware/export/config/samsungypr0.h index 25e1906a80..8d133c4e24 100644 --- a/firmware/export/config/samsungypr0.h +++ b/firmware/export/config/samsungypr0.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #define USB_NONE | 21 | #define USB_NONE |
22 | 22 | ||
23 | /* Hardware controlled charging with monitoring */ | 23 | /* Hardware controlled charging with monitoring */ |
24 | //#define CONFIG_CHARGING CHARGING_MONITOR | 24 | #define CONFIG_CHARGING CHARGING_MONITOR |
25 | 25 | ||
26 | /* There is only USB charging */ | 26 | /* There is only USB charging */ |
27 | //#define HAVE_USB_POWER | 27 | //#define HAVE_USB_POWER |
@@ -127,16 +127,16 @@ | |||
127 | 127 | ||
128 | /* Define current usage levels. */ | 128 | /* Define current usage levels. */ |
129 | /* TODO: to be filled with correct values after implementing power management */ | 129 | /* TODO: to be filled with correct values after implementing power management */ |
130 | #define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ | 130 | //#define CURRENT_NORMAL 88 /* 18 hours from a 1600 mAh battery */ |
131 | #define CURRENT_BACKLIGHT 30 /* TBD */ | 131 | //#define CURRENT_BACKLIGHT 30 /* TBD */ |
132 | #define CURRENT_RECORD 0 /* no recording yet */ | 132 | //#define CURRENT_RECORD 0 /* no recording yet */ |
133 | 133 | ||
134 | /* TODO: We need to do battery handling */ | 134 | /* TODO: We need to do battery handling */ |
135 | //#define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity */ | 135 | #define BATTERY_CAPACITY_DEFAULT 600 /* default battery capacity */ |
136 | //#define BATTERY_CAPACITY_MIN 600 /* min. capacity selectable */ | 136 | #define BATTERY_CAPACITY_MIN 600 /* min. capacity selectable */ |
137 | //#define BATTERY_CAPACITY_MAX 700 /* max. capacity selectable */ | 137 | #define BATTERY_CAPACITY_MAX 600 /* max. capacity selectable */ |
138 | //#define BATTERY_CAPACITY_INC 50 /* capacity increment */ | 138 | #define BATTERY_CAPACITY_INC 0 /* capacity increment */ |
139 | //#define BATTERY_TYPES_COUNT 1 /* only one type */ | 139 | #define BATTERY_TYPES_COUNT 1 /* only one type */ |
140 | 140 | ||
141 | /* TODO: We possibly can only watch linux charging */ | 141 | /* TODO: We possibly can only watch linux charging */ |
142 | //#define CONFIG_CHARGING CHARGING_TARGET | 142 | //#define CONFIG_CHARGING CHARGING_TARGET |