summaryrefslogtreecommitdiff
path: root/firmware/target/arm
AgeCommit message (Collapse)Author
2012-01-03Rework powermgmt to enable code re-use on appliation and sims.Thomas Martitz
* 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-03i.MX31: need an additional ISR lockout instance when closing driver.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31539 a1c6a512-1295-4272-9138-f99709370657
2012-01-03Gigabeat S: Dump some now-irrelevant comments.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31538 a1c6a512-1295-4272-9138-f99709370657
2012-01-03rk27xx: Fix cache broken in r31339. Remove deprecated aliases.Andrew Ryabinin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31537 a1c6a512-1295-4272-9138-f99709370657
2012-01-03i.MX31: Fix a couple oopses from r31528Michael Sevakis
Enabled a PMIC event where it should be disabled. Used constant from wrong enum to get sense bits (??) which messed up main charger detection. Also remove an obsolete struct declaration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31536 a1c6a512-1295-4272-9138-f99709370657
2012-01-03Fix path to PP USB bootloader crt0Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31535 a1c6a512-1295-4272-9138-f99709370657
2012-01-03Fix path to PP crt0Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31534 a1c6a512-1295-4272-9138-f99709370657
2012-01-03move PP specific files to pp/Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31533 a1c6a512-1295-4272-9138-f99709370657
2012-01-03arm/pp : assume CPU_PPRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31532 a1c6a512-1295-4272-9138-f99709370657
2012-01-03Move PP-specific headers to pp/ directoryRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31530 a1c6a512-1295-4272-9138-f99709370657
2012-01-02i.MX31 - Dethreading operations continueMichael Sevakis
Dispense with "pmic" thread and process PMIC events directly within ISR. Add sense bit reading as part of the handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31528 a1c6a512-1295-4272-9138-f99709370657
2012-01-02imx233: add AUDIOIN registers, cosmeticsAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31519 a1c6a512-1295-4272-9138-f99709370657
2012-01-01Make USB work again on iPod Nano 2G and iPod Classic. Still not 100% stable ↵Michael Sparmann
on Nano 2G, and HID is still broken. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31516 a1c6a512-1295-4272-9138-f99709370657
2012-01-01Fix FS#12243 : On 20GB H10, restore correct upside down state when waking LCD.Boris Gjenero
In lcd_power_on(), R_DRV_OUTPUT_CONTROL and R_GATE_SCAN_START_POS are now initialized like in lcd_set_flip(), so the display wakes up properly when it is supposed to be upside down. Thanks to Neil Sharrow for reporting the problem and testing the patch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31514 a1c6a512-1295-4272-9138-f99709370657
2012-01-01Gigabeat S: Revert removal of usb_plugged in r31489Michael Sevakis
Synchronous cable read is still required because the timing of the receipt of the cable event cannot be known for sure-- basically it introduced a thread race between main and pmic. If a keypress is desired instead to enter BL USB mode a la AS3525, then it's possible to remove that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31510 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-drv-as3525v2.c: merge in usb-s3c6400x.cRafaël Carré
as3525v2 specific part is 400 LoC, ipod specific less than 300 (comments and whitespace included) TODO: merge properly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31509 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-s3c6400: use more complete functions from usb-drv-as3525v2Rafaël Carré
update copyright git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31508 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-drv-as3525v2.h: removeRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31507 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-s3c6400x: start factorizationRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31506 a1c6a512-1295-4272-9138-f99709370657
2011-12-31Remove USBOTG_AS3525v2Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31502 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-drv-as3525v2: cosmeticsRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31501 a1c6a512-1295-4272-9138-f99709370657
2011-12-31imx233: fix power_input_status()Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31499 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-target.h: removeRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31498 a1c6a512-1295-4272-9138-f99709370657
2011-12-31creative zvm isp1583 defines: move to isp1583.hRafaël Carré
zvm is the only user of this file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31495 a1c6a512-1295-4272-9138-f99709370657
2011-12-31USBOTG_ARC's USB_DRIVER_CLOSE: move to config.hRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31494 a1c6a512-1295-4272-9138-f99709370657
2011-12-31gigabeats usb-target: merge in system-target.hRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31493 a1c6a512-1295-4272-9138-f99709370657
2011-12-31delete usb-target.h content redundant with PP usb-target.hRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31492 a1c6a512-1295-4272-9138-f99709370657
2011-12-31firewire/usb_remove/insert_int: move to system-target.hRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31491 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb_drv_connected() is declared in usb_drv.hRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31490 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb_plugged() is PP onlyRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31489 a1c6a512-1295-4272-9138-f99709370657
2011-12-31move usb_pin_init() declaration to PP's system-target.hRafaël Carré
remove duplicate usb_detect() declaration Remove all content from empty usb-target.h files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31488 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb_init_device(): move prototype to usb.hRafaël Carré
Get rid of some usb-target.h files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31487 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-drv-as3525v2: move interrupt disableRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31486 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-s3c6400x: move usb_init_deviceRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31478 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-s3c6400x.c: move usb_detect and usb_enableRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31477 a1c6a512-1295-4272-9138-f99709370657
2011-12-31imx233: forgot a fileAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31475 a1c6a512-1295-4272-9138-f99709370657
2011-12-31imx233/fuze+: implement rtc (time only, alarm still to implement)Amaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31473 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-s3c6400x: Fix endpoints being enabled too lateMichael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31469 a1c6a512-1295-4272-9138-f99709370657
2011-12-29Forgot a "static" in r31462.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31463 a1c6a512-1295-4272-9138-f99709370657
2011-12-29Gigabeat S: Update RDS processing to use asynchronous I2C rather than thread.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31462 a1c6a512-1295-4272-9138-f99709370657
2011-12-29i.MX31: Implement asynchronous version of I2C driver.Michael Sevakis
Scheme is more flexible and should help to enable threadless RDS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31461 a1c6a512-1295-4272-9138-f99709370657
2011-12-29i.MX31: Some tweaks with variable declaration in SPI driver.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31460 a1c6a512-1295-4272-9138-f99709370657
2011-12-28usb-srv-as3525v2: backport r31458Michael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31459 a1c6a512-1295-4272-9138-f99709370657
2011-12-28usb-s3c6400x: Fix some more confusion between DEPCTL_stall and DEPCTL_nakstsMichael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31458 a1c6a512-1295-4272-9138-f99709370657
2011-12-28iPod Classic: HDD endianness changeMichael Sparmann
This commit changes the default HDD endianness to the correct one, but stays compatible with the old endianness. If an MBR with the wrong endianness is detected, it will automatically enable word swapping and issue a warning splash. To permanently fix this you'll need to upgrade emCORE to at least r836. This will wipe all data! A post-r836 build of emCORE will be officially released during the next couple of days. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31455 a1c6a512-1295-4272-9138-f99709370657
2011-12-26fuze+: remove two_finger pseudo touchpad button because it was unrealiable, ↵Amaury Pouly
update keymap to remove akward mappings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31444 a1c6a512-1295-4272-9138-f99709370657
2011-12-26imx233: implement core_sleepAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31443 a1c6a512-1295-4272-9138-f99709370657
2011-12-26i.MX31: Rename somethingMichael Sevakis
Might as well rename spi_enable_module to spi_enable_node for consistency as well so long as I'm being picky. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31442 a1c6a512-1295-4272-9138-f99709370657
2011-12-26i.MX31: Silly little change to enable/disable a SPIMichael Sevakis
Unify spi_enable/disable_module into one spi_enable_module call for API consistency's sake with I2C driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31441 a1c6a512-1295-4272-9138-f99709370657
2011-12-26Sansa Connect: Set unknown GIOs to state with lowest power consumption. This ↵Tomasz Moń
slightly improves runtime. Use proper delay for DSP reset and interrupt. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31438 a1c6a512-1295-4272-9138-f99709370657