forked from len0rd/rockbox
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
This commit is contained in:
parent
07605a659e
commit
05f12e0877
12 changed files with 195 additions and 108 deletions
|
|
@ -71,7 +71,7 @@ static inline void stub_storage_spindown(int timeout) { (void)timeout; }
|
|||
|
||||
#define storage_enable(on)
|
||||
#define storage_sleepnow()
|
||||
#define storage_disk_is_active()
|
||||
#define storage_disk_is_active() 0
|
||||
#define storage_soft_reset()
|
||||
#define storage_init()
|
||||
#define storage_close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue