rockbox/firmware/target/arm/imx31/gigabeat-s
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
..
adc-gigabeat-s.c i.MX31 - Dethreading operations continue 2012-01-02 18:32:35 +00:00
adc-target.h Gigabeat S: Implement charging and power control to charge from AC or USB. Hold MENU while plugging USB cable to charge from USB without connecting. Under Windows, plugging USB for charging only but not connecting still needs to be properly handled (driver popup issue) but it will charge when connected normally-- no issue under Linux. Some accomodating changes made to powermgmt.c will soon be made nicer. 2008-12-21 18:10:36 +00:00
audio-gigabeat-s.c Gigabeat S: Turn off hardware effects (tone and 3d) when doing digital loopback for FM recording otherwise the signal and levels are poorly represented in monitoring (can't just do ADC->DAC for general FM and get voice too). Some tweaking to input setup to improve gain a tiny bit. A little bit quieter startup too. 2010-05-26 05:13:45 +00:00
backlight-gigabeat-s.c i.MX31/Gigabeat S: Actually enable DPTC which can set optimal voltage for 528MHz. Requires an SPI and PMIC interface rework because of the low-latency needs for the DPTC to work best with minimal panicing. SPI can work with multitasking and asynchronously from interrupt handlers or normal code. 2010-05-04 10:07:53 +00:00
backlight-target.h
button-gigabeat-s.c i.MX31: Fix a couple oopses from r31528 2012-01-03 06:13:59 +00:00
button-target.h Remove some unused declarations 2009-05-21 12:32:26 +00:00
dvfs_dptc_tables-target.h i.MX31: Add a debug menu to play around with DVFS/DPTC settings for fun, testing or benchmarking purposes. Can set the CPU frequency working point, whether DPTC voltage scaling is enabled and change the software-programmable load tracking weights. 2011-01-22 16:58:17 +00:00
fmradio-i2c-gigabeat-s.c Gigabeat S: Dump some now-irrelevant comments. 2012-01-03 15:57:55 +00:00
gpio-gigabeat-s.c Try to fix r31346 2011-12-17 20:34:27 +00:00
gpio-target.h FS#12370: Initial RDS support for Si4701/Si4703 tuner (beast and clip zip) 2011-12-17 20:24:19 +00:00
headphone-gigabeat-s.c i.MX31 - Dethreading operations continue 2012-01-02 18:32:35 +00:00
i2s-gigabeat-s.c Gigabeat S/i.MX31/wm8978: Clean up clocking information in the general wmcodec/pcm drivers and move it to the target's wmcodec/i2s files. 2011-10-17 15:37:14 +00:00
kernel-gigabeat-s.c i.MX31: Now that it matters because there's a debug screeen that allows changing things while running, some DVFS/DPTC stuff has to be done more carefully. Trim out some stuff and group functions better as well. 2011-01-23 20:21:35 +00:00
lcd-gigabeat-s.c i.MX31: Rename something 2011-12-26 15:43:11 +00:00
lcd-target.h Collect some of the memory frame LCD C code. 2011-12-15 23:07:11 +00:00
mc13783-gigabeat-s.c Gigabeat S: Dump some now-irrelevant comments. 2012-01-03 15:57:55 +00:00
mc13783-target.h i.MX31/Gigabeat S minor cleaning: Make HW access more obvious in places I forgot to do earlier. Reduce the number of structs that need to be filled-out for some drivers just to simplify a little. Change some types. 2010-05-07 10:53:19 +00:00
pcm-gigabeat-s.c Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
power-gigabeat-s.c i.MX31: Fix a couple oopses from r31528 2012-01-03 06:13:59 +00:00
power-gigabeat-s.h Gigabeat S/i.MX31: Sort files in the /target tree into things that are SoC-generic (into /imx31) and player-specific (into /gigabeat-s, based upon current appearances). Move i2s clock init into the appropriate file. Housekeeping only-- no functional changes. 2010-04-09 01:21:53 +00:00
powermgmt-gigabeat-s.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
powermgmt-target.h Gigabeat S: Use longer battery filter; lag is not a problem with voltage for charging since it's I-controlled. Initialize local copy of last_inputs for the power routines in target init otherwise the battery filter is reinitialized too soon. 2010-05-19 23:39:59 +00:00
system-gigabeat-s.c i.MX31: Now that it matters because there's a debug screeen that allows changing things while running, some DVFS/DPTC stuff has to be done more carefully. Trim out some stuff and group functions better as well. 2011-01-23 20:21:35 +00:00
system-target.h Gigabeat S: Revert removal of usb_plugged in r31489 2012-01-01 03:19:52 +00:00
timer-gigabeat-s.c Gigabeat S/i.MX31: Sort files in the /target tree into things that are SoC-generic (into /imx31) and player-specific (into /gigabeat-s, based upon current appearances). Move i2s clock init into the appropriate file. Housekeeping only-- no functional changes. 2010-04-09 01:21:53 +00:00
usb-gigabeat-s.c i.MX31 - Dethreading operations continue 2012-01-02 18:32:35 +00:00
wmcodec-gigabeat-s.c Gigabeat S/i.MX31/wm8978: Clean up clocking information in the general wmcodec/pcm drivers and move it to the target's wmcodec/i2s files. 2011-10-17 15:37:14 +00:00