rockbox/firmware/target/mips/ingenic_jz47xx
Thomas Martitz c1bd9b0361 Rework powermgmt to enable code re-use on appliation and sims.
* Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application)
to break powermgmt.c's assumption about the ability to read battery voltage.
There's now additionally percentage (android) and remaining time measure
(maemo). No measure at all also works (sdl app). If voltage can't be measured,
then battery_level() is king and it'll be used for power_history and runtime
estimation.

* Implement target's API in the simulator, i.e. _battery_voltage(), so it
doesn't need to implement it's own powermgmt.c and other stubs. Now
the sim behaves much more like a native target, although it still
changes the simulated battery voltage quickly,

* Other changes include include renaming battery_adc_voltage() to
_battery_voltage(), for consistency with the new target functions and
making some of the apps code aware that voltage and runtime estimation
is not always available.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
2012-01-03 23:44:38 +00:00
..
onda_vx747 Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
onda_vx767 Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
app.lds Add KEEP() around vectors in linker scripts. 2011-12-18 06:43:08 +00:00
ata-nand-jz4740.c Add missing includes found using -Wmissing-declarations. 2011-12-21 18:02:50 +00:00
ata-nand-target.h Onda VX747: 2008-11-05 00:24:46 +00:00
ata-sd-jz4740.c Merge functionality of wakeups and semaphores-- fewer APIs and object types. semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them. 2011-03-02 08:49:38 +00:00
backlight-target.h Merge Onda VX7?7 backlight-target.h 2009-04-25 20:55:23 +00:00
boot.lds Add KEEP() around vectors in linker scripts. 2011-12-18 06:43:08 +00:00
codec-jz4740.c Hopefully finish off the red from r26051. 2010-05-15 14:16:35 +00:00
crt0.S Onda VX747: add dual-boot capability + make it possible to permanently 'stick' Rockbox to your DAP 2009-07-17 14:30:42 +00:00
debug-jz4740.c Move dbg_hw_info() into target tree. FS#11735 by me 2011-06-05 10:26:06 +00:00
debug-target.h Move dbg_hw_info() into target tree. FS#11735 by me 2011-06-05 10:26:06 +00:00
dma_acc-jz4740.c * Add basic (non-working) support for NAND flash 2008-08-06 20:39:02 +00:00
fmradio-i2c-jz4740.c Onda VX747: try at implementing FM tuner support 2009-06-01 21:00:31 +00:00
i2c-jz4740.c Fix red. 2011-12-21 18:08:26 +00:00
kernel-jz4740.c Onda VX747: 2009-01-27 00:38:58 +00:00
lcd-jz4740.c Merge functionality of wakeups and semaphores-- fewer APIs and object types. semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them. 2011-03-02 08:49:38 +00:00
lcd-target.h Onda VX747/VX777: centralise LCD clock en-/disabling. 2010-01-03 16:28:15 +00:00
pcm-jz4740.c Shuffle some functions around so that interfacing with playback.c in particular isn't required. Though playback does finish the audio init, pcm doesn't care who does it. 2011-09-01 12:15:43 +00:00
system-jz4740.c Add missing includes found using -Wmissing-declarations. 2011-12-21 18:02:50 +00:00
system-target.h Don't duplicate byteswap code. Invent system where NEED_GENERIC_BYTESWAPS is set if the generic functions from system.h are needed. 2010-07-15 22:01:06 +00:00
timer-jz4740.c Ingenic Jz4740 timer driver: fix stupid mistake 2009-08-01 16:06:41 +00:00
usb-jz4740.c onda: remove now inlined USB_INIT_GPIO() 2011-12-31 18:50:45 +00:00