rockbox/firmware/export/config
Lorenzo Miori 6879dec6ec yp-r0: improve the charging code
Some people reported strange charging times and
strange battery life.
Charging by OF: 25 hours; RB: 18 hours
It has been found that there are at least two issues here:

1) the way of getting battery charging status wasn't
really accurate. This attempts to fix that issue.
This patch also simplifies some code (opening a
device is no more needed, for example).

To technically explain, battery charging implies first a constant
current mode (where the voltage increases) and then a constant
voltage mode (where, obviously, the voltage reads more or less
the same). The old way the End Of Charge was detected was based solely
on the voltage, while now it is based on chip's EOC interrupt,
which should be more accurate.

2) OF explicitly sets a constant current 350 mA, while we usually had
55 mA (by as3543 default).
This wasn't discovered before since there is a caching problem
("an accurate guess") in the Samsung power mgmt Linux module,
thus its debugging dumper wasn't really working, reporting a 55 mA current.
Strangely this option should have been set by the bootloader
but apparently it does not.

Some testing is still needed, but I confirm that with this patch
I could run a benchmark for 25 hours (vs. 18 hours), by charging
within Rockbox of course.

Change-Id: I3bd921e86b9018d1cc3c720d15cc46896e8490b3
2015-01-29 20:28:07 +01:00
..
android.h storage: Add STORAGE_HOSTFS 2014-02-23 20:23:51 +01:00
archosfmrecorder.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
archosondiofm.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
archosondiosp.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
archosplayer.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
archosrecorder.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
archosrecorderv2.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
cowond2.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezen.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezenmozaic.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezenv.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezenxfi.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezenxfi2.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezenxfi3.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezenxfistyle.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
creativezv.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
gigabeatfx.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
gigabeats.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
gogearhdd1630.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
gogearhdd6330.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
gogearsa9200.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
hifietma8.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
hifietma8c.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
hifietma9.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
hifietma9c.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
hifimanhm60x.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
hifimanhm801.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
iaudio7.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
iaudiom3.h Iaudio m3: implement lcd_get_dpi() (aka fix red). 2014-03-03 17:38:43 +01:00
iaudiom5.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
iaudiox5.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
ibassodx50.h Enable battery charging detection for iBasso DX50/DX90. 2014-10-18 05:31:34 +02:00
ibassodx90.h Enable battery charging detection for iBasso DX50/DX90. 2014-10-18 05:31:34 +02:00
ihifi760.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ihifi960.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipod1g2g.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
ipod3g.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
ipod4g.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipod6g.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipodcolor.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipodmini1g.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipodmini2g.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipodnano1g.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipodnano2g.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ipodvideo.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
iriverh10.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
iriverh10_5gb.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
iriverh100.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
iriverh120.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
iriverh300.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
iriverifp7xx.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
librockplay.h buflib: Check the validity of of handles passed to buflib_get_data() in DEBUG builds. 2014-02-02 16:59:29 +01:00
logikdax.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
lyreproto1.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
meizum3.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
meizum6sl.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
meizum6sp.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
mini2440.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
mpiohd200.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
mpiohd300.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
mrobe100.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
mrobe500.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
nokian8xx.h storage: Add STORAGE_HOSTFS 2014-02-23 20:23:51 +01:00
nokian900.h storage: Add STORAGE_HOSTFS 2014-02-23 20:23:51 +01:00
ondavx747.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ondavx767.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
ondavx777.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
pandora.h storage: Add STORAGE_HOSTFS 2014-02-23 20:23:51 +01:00
rk27generic.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
samsungyh820.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
samsungyh920.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
samsungyh925.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
samsungypr0.h yp-r0: improve the charging code 2015-01-29 20:28:07 +01:00
samsungypr1.h lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
samsungyps3.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
samsungypz5.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sansac100.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
sansac200.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sansac200v2.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansaclip.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansaclipplus.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansaclipv2.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansaclipzip.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansaconnect.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
sansae200.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sansae200v2.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansafuze.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansafuzeplus.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sansafuzev2.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansam200.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
sansam200v4.h usb: finally get rid of USE_ROCKBOX_USB in Sansa bootloader, use bootloader usb 2015-01-08 22:30:22 +01:00
sansaview.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sdlapp.h lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
sim.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sonynwze360.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
sonynwze370.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
tatungtpj1022.h Implement lcd_get_dpi() for all bitmap targets. 2014-03-03 15:14:15 +01:00
vibe500.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
zenvision.h Add a config file for zenvision (which includes zvm30gb config file) 2010-01-24 19:33:51 +00:00
zenvisionm30gb.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00
zenvisionm60gb.h Get rid of USE_ROCKBOX_USB 2015-01-08 16:07:12 +01:00