summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* atj213x: rework crt0.S in test codeMarcin Bukat2014-02-14
| | | | | | | Rework init code so relocation is safe for binaries linked into cached unmapped KSEG0 region. Change-Id: I705ee3f0334f8998237f249a2c3059d6dbe78a43
* regtools: Add rk27xx register description fileMarcin Bukat2014-02-13
| | | | Change-Id: I27101876d031cbcbb00e741ea742a6f64a7baad7
* fix red, strtok_r being annoying on sim buildsJonathan Gordon2014-02-13
| | | | Change-Id: Ifb884a53d801db9534dd0c5ab5921800e971963e
* main_menu_config: New plugin to configur the main menu orderJonathan Gordon2014-02-13
| | | | | | | | | | | | | Plugins/Applications/main_menu_config allows you to edit the main menu order without having to manually edit config.cfg. Press the standard OK button to access the internal menu which allows you to move items up/down in the order and toggle their visibility. Exit via this menu to have the order saved. (Suggestions welcome to improve this UI) Change-Id: I59715ef1ca265aeb6f9666ef27026bc1093f2579
* regtools/qeditor: fix crash when hwstub device fails to openAmaury Pouly2014-02-13
| | | | Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
* Fix redAmaury Pouly2014-02-12
| | | | Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
* FS#12949 - Diff to fill in incomplete Russian translation items.Jeremy Goodwin2014-02-11
| | | | Change-Id: I8f53d8811a3c6ee6507f1a81e3b007073909ca38
* imx233: cleanup in sdmmcAmaury Pouly2014-02-11
| | | | Change-Id: I82eac65b1bf9f2e963c4ebfb7c22da678ae63642
* imx233: fix app.lds to properly support INIT_ATTRMarcin Bukat2014-02-10
| | | | | | Change-Id: I1a917511e7e1540856815c77c4d996d1b8a03606 Reviewed-on: http://gerrit.rockbox.org/725 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* regtools/qeditor: implement UI code to write registersAmaury Pouly2014-02-10
| | | | | | | | | | The UI now has a "read-only" check box to prevent accidently changes: once unchecked, the UI can do write to register (only full register writes are supported for now). If the register supports it, the UI provides SCT writes as well. The display register panel was moved to its own class to cleanup things a bit. Change-Id: I0fc6aab3b351f9080076102ee6fad0037ab5353b
* regtools/qeditor: enhance backend write with write mode (SCT)Amaury Pouly2014-02-10
| | | | Change-Id: I723bce7a60fb08c1d1d5f894a225c36bc1ba4394
* imx233: don"t be smart when waiting for voltage stabilisationAmaury Pouly2014-02-10
| | | | | | | | | Unfortunately the hardware is not very helpful when changing voltage: in DCDC mode we have the DC_OK_IRQ but in linear regulator mode, the only available bit doesn't work when lowering the voltages. At the moment, simply sleep for a little while before a better solution is found. Change-Id: I89335873e9e42e5c6e9131f40db7839b008c021c
* zen/bootloader: power down the LCD at the end of the bootloader if neededAmaury Pouly2014-02-10
| | | | | | | | | | | | | | On the ZEN, the LCD is fed continuously by the DMA and this refresh needs to be stop when the bootloader gives control to the firmware, otherwise the DMA will source data from invalid region and it might even lock-up if the new code touches the memory setup. Work around this by properly stopping the LCD driver: the bootloader assumes that if the target defines HAVE_LCD_ENABLE in bootloader build (which is unusual) then it needs to stop the LCD. Since stopping the LCD could produce funny screens, power down backlight which is expected to power down the LCD too, giving a nice black screen instead of some random pixels. Change-Id: I7ce5ba9bfd08e596907c4ff8f80feb189f0576ce
* imx233: stop the watchdog before loading main firmwareAmaury Pouly2014-02-10
| | | | Change-Id: I0a13444d6788a09b0fc04ed1a5115cb2e5fe6f57
* imx233: preventive fix of timrotAmaury Pouly2014-02-10
| | | | | | | | The old could trigger an immediate IRQ if for example the count was 0 when setting up the timer: since the count was updared *after* clearing the IRQ, it could fire in between. Change-Id: I0357b201655bc0e56425ffb249ca807525f30217
* zen: enable dma channel after lcdif initAmaury Pouly2014-02-10
| | | | Change-Id: I8886698ed618f9724df2f46d71f36b7443bc821b
* zen: workaround errata on imx233 lcdifAmaury Pouly2014-02-10
| | | | Change-Id: I9d723aa13628e4ab38ee7f648c1923b9e7101d22
* regtools/qeditor: clean-upAmaury Pouly2014-02-10
| | | | | | | Free the backend when closing a tab to release some memory. Implement about dialogs. Change-Id: Ic8c500a23d38e6c3dd4de6a4ba862012925968be
* regtools/qeditor: prepare support for register writingAmaury Pouly2014-02-10
| | | | Change-Id: Ifef36a3ddb1604db63ec974da2d6a77a5540ff42
* regtools/qeditor: rewrite soc handlingAmaury Pouly2014-02-10
| | | | | | | | | The code was a mess with respect to soc handling: some code just plain copied the SoC descriptor which are big objects, some was using indexes. The new soc factor out everything in a few classes which hide these ugly details so that descriptors are never copied. Change-Id: I17af8b47f997a528b58221621389d42d24fded93
* hwstub/regtools/qeditor: put soc descriptors in a list instead of a vectorAmaury Pouly2014-02-10
| | | | | | | A SoC descriptor is not a small object: it can be as large as ~100KiB so it's better to avoid copying things over. Change-Id: I1ef862e1260299cdaa0c4d2822ac45968713498a
* imx233: add support for sd/mmc probingAmaury Pouly2014-02-10
| | | | | | | | | | | | zenxfi2: add support for internal storage on the SD version The code can now skip devices marked as PROBE if they fail to init, thus making it possible to handle various kinds of internal storages. The current code probably doesn't interplay nicely since it acquires pins and never release them so it will probably break NAND code when it's ready but NAND code is not ready yet anyway. Change-Id: I4cb962de4215661e521743a3f511445dbbf28673
* utils/regtools: slight rework of tab management in qeditorAmaury Pouly2014-02-10
| | | | Change-Id: Iaf41defb79bb76010f3ff5269c28e4bad991ebc3
* imx233: rework early time power initAmaury Pouly2014-02-10
| | | | | | | | | | | | | | The current code does hazardous tweaks to the power subsystem: indeed if one boots with USB plugged and some stub powers on the DCDC switch, it will fail. Indeed, a hardware bug prevents from going back to linear regulators (see errata) so we cannot expect to reach a known state (linreg on, dcdc off) on each configuration and in particular, powering down the 4p2 rail in such a configuration will result in a power brownout. This commit works around this issue by not touching the initial power configuration until USB is (un)plugged, which are the best spots to get known states. Change-Id: I8741a3995df8ae61ca1c887a3ecb7903d0ac5136
* mkimxboot: don't forget to select LRADC source before readingAmaury Pouly2014-02-10
| | | | Change-Id: I3435857f48580d7b3bf9363a2eed96738fbda69a
* Fix typoAmaury Pouly2014-02-10
| | | | Change-Id: Ib9d569886abf66a23f6569b6b44acf155a65009d
* imx233: add button debug screenAmaury Pouly2014-02-10
| | | | Change-Id: Iab85f1215a06507c06bffb746f2eac596e8c7992
* imx233: fix typosAmaury Pouly2014-02-10
| | | | Change-Id: If5bc0f09dc0b3b1e833e41bbbdd216002e37d147
* imx233: handle jack detect inversion on some devicesAmaury Pouly2014-02-10
| | | | Change-Id: I6e8644d8dc410f275c7c7580fa9bcbd2fa26a041
* imx233: make button-lradc drive able to handle VDDIO derived valuesAmaury Pouly2014-02-10
| | | | | | | | | | In most devices, the button ladder is not actually derived from VDDIO but from a constant voltage source, making it very easy to read it. However on some devices like ther ZEN X-Fi Style, the ladder is wired to VDDIO we can be changed so it's crucial that the button driver correctly scales the values wrt VDDIO. Change-Id: Ifc11abe2838fa7d16d0d60ecd96964a8dc5ea6d7
* utils/regtools: make qeditor able to poke directly at a hwstub deviceAmaury Pouly2014-02-10
| | | | | | | | | | | | | | | This commit add the very handy feature of being able to read registers directly from a device using hwstub. This is mostly trivial using the hwstub library and the biggest change here is actually: - being able to read registers by name and/or addresses - being able to enumerate devives The UI code currently doesn't handle hotplug but the backend does so it should be trivial to add in the future. It also opens up the possibility the write registers from hwstub or save the register values to a file. Since it relies on both hwstub and libusb, a switch has been introduced in qmake to disable it (use -config nohwstub). Change-Id: I5d7d7a2a7c97ecd7407227357c8553c2773ea6cc
* utils/hwstub: make stmp stub able to load in a MMU'ed environementAmaury Pouly2014-02-10
| | | | | | | | | In might be useful to load hwstub in an environment with the MMU active, in which case care must be taken on the order in which things are done. Mostly, one should not disable the MMU before moving stuff around. The code assumes the linking address (0 currently) is identity mapped. Change-Id: I8d54ce9e8cadcde2e08990353ca7a46803731ca7
* utils/hwstub: completely rework the protocol, drop unused featuresAmaury Pouly2014-02-10
| | | | | | | | | | | | | | | | | The protocol has evolved a lot during the 2.x.y lifetime, bringing more features which later got unused. This commit removes all the unused stuff and simplifies everything: - drop the feature mask: everything is mandatory or stalled on error - remove the info request and put all static information in standard USB descriptors which are part of the configuration descriptor (and can be retrieved using the standard GetDescriptor request). - remove the USB interface, we had only one anyway - remove all endpoint descriptors - remove the exit/atexit stuff, it never worked as intended anyway - update the hwstub library and make it able to handle any device - update the tools (mostly renaming and removing of code) Change-Id: I1872bba7f4177fc3891180e8f944aab88f5bde31
* imx233: add hardware and software watchdogAmaury Pouly2014-02-10
| | | | | | | | | | | | | | The hardware watchdog automatically shutdown the device after 10s of inactivity, being defined as 10s without the tick IRQ fired (aka braindead device). The software IRQ mechanism is more interesting: it uses a very high priority timer setup as one-shot to trigger after 5s of inactivity (but IRQ still enabled). When detected, it patches the running code to insert a SWI instruction so that on interrupt return it will trigger a SWI and produce a meaningfull backtrace to debug the deadlock. This should allow to debug freezes in IRQ context. Change-Id: Ic55dad01201676bfb6dd79e78e535c6707cb88e6
* imx233: increase audio DAC IRQ priorityAmaury Pouly2014-02-10
| | | | | | This should hopefully fix some audio glitches Change-Id: Ic9701d281e7559c9d93fcb8dad9373caaad9bfb6
* imx233: add code to debug menu to check nested IRQ actually workAmaury Pouly2014-02-10
| | | | Change-Id: I6b51e89222efa868c03944fc37bcc9f382853be1
* imx233: add support for nested IRQAmaury Pouly2014-02-10
| | | | | | | | | Rewrite IRQ handling to allow nested IRQs: on each IRQ entry, we save the parameters on the (IRQ) stack and then switch to SVC mode (with its own stack) and renable interrupts. Make sure interrupt is properly acknowledged by using the read side-effect (RSE) mode and handle priority levels as well. Change-Id: I3fd68289b430c56bdd256868939238ff268e42b4
* imx233: cleanup icoll and add software irq sourcesAmaury Pouly2014-02-10
| | | | Change-Id: I4cf2b0b74cf391021afaec08329ec7cf5dbd578d
* imx233: always disable watchdog on bootAmaury Pouly2014-02-10
| | | | Change-Id: I2e81b038b783968aa18ef3398d6e2aa66a2fee7c
* imx233: enhance icoll with priority and soft IRQAmaury Pouly2014-02-10
| | | | Change-Id: If9568ab6e11bf933b2cc607e5a86866a975886bc
* imx233: add timrot to debug menuAmaury Pouly2014-02-10
| | | | Change-Id: Id60fcd64d509445d4ab62c4a2a8f2a074727c31d
* imx233: clean timrot a bitAmaury Pouly2014-02-10
| | | | Change-Id: Ic803a6b5c93978cd3246e553579ac8a1ba35e191
* Coding style fix for bde5394Marcin Bukat2014-02-10
| | | | Change-Id: I6e9ba6a2570915191cf5b66f58ed9ddb1959b6cc
* atj213x: Simple test exploring irq handlingMarcin Bukat2014-02-09
| | | | | | | | | This test software setups timer T0 periodic interrupt. In ISR it changes backlight level. The interrupt handler does not support nesting and the whole ISR is run in interrupt context. Exceptions are not handled yet. Change-Id: Idc5d622991c7257b4577448d8be08ddd1c24c745
* Return a valid USB string descriptor for index 0xEE.Frank Gevaerts2014-02-09
| | | | | | | | | | | | | | | Windows will try to retrieve such a descriptor on first connect. If the device returns STALL or a regular string descriptor (i.e. not one that follows the Microsoft OS Descriptor spec), things will continue normally. Unfortunately some of our low-level USB drivers have issues with STALL so any other valid descriptor is the next best solution. Change-Id: I59eb09eea157e4e14bec0197a898be378a5559f2 Reviewed-on: http://gerrit.rockbox.org/680 Reviewed-by: Frank Gevaerts <frank@gevaerts.be> Tested: Frank Gevaerts <frank@gevaerts.be>
* Fixed bug where exiting textviewer after using up all the bookmarks caused ↵Avi Eisenberg2014-02-07
| | | | | | that file unable to be read the next time. Change-Id: I1924fe68c8528c03c4197f74a4f014edb0ac9f2a
* ypr0: Remove SDL copy&paste left-oversThomas Martitz2014-02-05
| | | | Change-Id: Ie3e90070328798c398099c55f23665bfefdcf397
* Samsung YP-R0/YP-R1 refactoringLorenzo Miori2014-02-05
| | | | | | | | | This patch includes some refactoring: - renaming according to Rockbox guidelines - GPIO code merging, still with target defines - some simplification in firmware/SOURCES Change-Id: I7fd95aece53f40efdf8caac22348376615795431
* Disable rombox on the Player.Frank Gevaerts2014-02-05
| | | | | | No more Archos rombox left... Change-Id: I7de15b1ce1fabdb19ba7b0b69e0b7799664d8413
* Samsung YP-R1 target portLorenzo Miori2014-02-05
| | | | | | | | | This is the basic port to the new target Samsung YP-R1, which runs on a similar platform as YP-R0. Port is usable, although there are still some optimizations that have to be done. Change-Id: If83a8e386369e413581753780c159026d9e41f04