summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* zen/zenxfi: add remark about pinAmaury Pouly2017-01-16
| | | | | | Clearly this pin does not control power so don't call it lcd_power. Change-Id: I9a6794e2606de99cb44dd3e7288b5cce5beb8d0d
* imx233: add small framework for LEDAmaury Pouly2017-01-16
| | | | | | | | It handles GPIO and PWM based LEDs, possibly with several channels (red-green LED for example). The debug allows one to play with the setting. Currently the code supports the ZEN, ZEN X-Fi, and ZEN Mozaic. Change-Id: I8c3b66e6ba21778acdb123daabb724280a7d1a4f
* Fix path handling snafu for CheckWPS toolMichael Sevakis2017-01-16
| | | | | | | | | Somehow it got hooked to simulator file functions when it should be (and was) using raw OS functions. Credit: Frank Gevaerts Change-Id: Iac02fed1067830a432183632a047e00dfd03d3c2
* Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is alreadyMatthias Mohr2017-01-15
| | | | | | | | | | defined in mingw environments. Renamed defines of UNALIGNED to ROCKBOX_UNALIGNED so that they don't conflict with definitions in mingw32 cross-compiling environments (defined in _mingw.h). Change-Id: I369848c0f507e6bf5ff9ab4a60663bbbda6edc52
* imx233: workaround hardware dma bugAmaury Pouly2017-01-15
| | | | | | | This bug mostly affects the ZEN and ZEN X-Fi and hangs the lcdif dma randomly on boot. Change-Id: I4255db90d87737b7a70d1d53e3ef84e4e14c8c13
* Support using swapxx() and bswap_xx() for byteswaps in rbendian.hFranklin Wei2017-01-15
| | | | | | - patch suggested by Massa in http://forums.rockbox.org/index.php/topic,51618.msg238760.html#msg238760 Change-Id: Iba93ff53119db00a18d944d52bc8b1c5fe593fc9
* Dircache: Fix a tiny-block reclaim bugMichael Sevakis2017-01-14
| | | | | | | | | | | Logic left over from before switching from NULL-terminated to counted strings would prevent a single-byte tiny free block gap from being properly reclaimed into free string bytes. Due to rarity, not as disasterous to functionality so much as wrong. Change-Id: I68e0875b04bb0ab6cdead0fdf535144b9c1bc13e
* imx233: fix audio debug screen on stmp3700Amaury Pouly2017-01-14
| | | | | | | On STMP3700 there is no dedicated speaker amplifier but speaker is always on lineout so it makes sense to report volume and power down of lineout. Change-Id: If666bccf36d3a5ecc6d892823522d023f3206184
* imx233: add note about power down bits in audiooutAmaury Pouly2017-01-14
| | | | Change-Id: I204acff8ee697d70fd16f9828010646b10a8f11b
* imx233: fix speaker enable/disable codeAmaury Pouly2017-01-14
| | | | Change-Id: I6540f2f8ba09bc79b80d71e5f3b0adebd9fce727
* iPod Classic: fix small bug on PCM recordCástor Muñoz2017-01-13
| | | | | | | | | On PCM record initialization, an unknown clockgate is enabled instead of the I2S clockgate. This bug does not produce incorrect functionallity because the right clockgate is already enabled on PCM playback initialization. Change-Id: I97a3a4a6f12131e492c1431359a0a976b68014be
* Improve the implementation of a couple linked list routines.Michael Sevakis2017-01-07
| | | | | | | ll_insert_next() and ll_remove_next() can be done more elegantly by adding a level of indirection to reference the 'next' pointer. Change-Id: If3ab2bc2a659b517c793749cfa9088938ae08d0d
* Fix track formatting problems in playlist.cMichael Sevakis2017-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | Some changes in behavior were made with filesystem code commit for the sake of compatibility that changed expected behavior. * Restore substitution of drive spec in fully-qualified DOS paths with the playlists's volume spec (or root on univolume targets). Drive-relative paths of the form "c:foo" (no separator after ':') will be treated as purely relative. * Restore old behavior of preserving leading whitespace in the source path and trimming only trailing tabs and spaces. * Multivolume: Volume substition on fully-qualified UNIX/RB paths has NOT been reintroduced (and perhaps wasn't intended in the first place). They will not be modified because there is no ambiguity to resolve. Doing so would prevent a playlist on external storage from referencing a file on main storage without qualifying it with "/<0>...". * Plain relative paths are and always have been interpreted as relative to the location of the playlist. Change-Id: Ic0800cea79c59563b7bac20f8b08abb5051906c7
* zenxfistyle: enable dualboot stub apiAmaury Pouly2016-12-19
| | | | | | | The ZEN X-Fi Style doesn't have an updater like the other stmp targets but at least the stub enables rebooting to the OF. Change-Id: I630653a37b94b77210ffdd0d30e1748b13eca96a
* imx233: don't print disabled IRQs in debug screenAmaury Pouly2016-12-12
| | | | | | | There are lot IRQ and most are unused most of the time, this is annoying on devices with small screens. Change-Id: I7f3453f2768b8e35a5a367fbcf1e4cf3cf73bcd7
* imx233: add more icoll statisticsAmaury Pouly2016-12-12
| | | | | | | | | Those new statistics give the maximum time an IRQ took and also the total time spent in IRQ, for each IRQ. Hopefully those do not take took much time or space to collect. If this is the case, it can be enabled in debug builds only the future. Change-Id: I05af172897c5cb7ffcc9322452f974d8f968e29d
* imx233: fix IRQ handler w.r.t unwinderAmaury Pouly2016-12-12
| | | | | | | | | | | | | | | The IRQ handler saves registers on the IRQ stack, saves the old PC to imx233 HW_DIGCTL_SCRATCH0 register and switcht to SVC for the actual handling. The old code had a problem in that if the unwinder is called during the IRQ (for example by the watchdog), then __get_sp() will use SPSR_svc to discover the previous mode, switch to it and recover SP. But SPSR_svc is invalid, it should be SPSR_irq but we switch from IRQ to SVC mode. The new code copies SPSR_irq to SPSR_svc in IRQ to fix this problem. It also saves/restore SCRATCH0 in case I one day renable nested interrupts or use SCRATCH0 for other purposes. I also changed the old watchdog code to call UIE directly instead of trying to make the code crash with a SWI. Change-Id: Id87462d410764b019bd2aa9adc71cb917ade32e3
* uda1380: document audiohw setting based on uda1380.cAmaury Pouly2016-12-12
| | | | Change-Id: Ia799e47249b4b0008bfe8e633c61548a667b9288
* tlv320: document audiohw setting based on tlv320.cAmaury Pouly2016-12-12
| | | | Change-Id: I7cf354cb948444595ca541a4bf70dfbcf01147f2
* wm8975: document audiohw settingsAmaury Pouly2016-12-12
| | | | Change-Id: I0456f85e4ebc821c23e25026fbee3d8cf7526ee7
* wm8758: document and fix audiohw settingsAmaury Pouly2016-12-12
| | | | | | It looks like a copy and paste error to me, those were completely wrong. Change-Id: Id6ae025f4216ffccb1a8b8b790916d8b6c4694bd
* wm8751: document and fix audiohw settingsAmaury Pouly2016-12-12
| | | | | | | Document 3D depth range. Fix mismatch in recording volume: the displayed volume is completely off the chart Change-Id: I4c363f369e5d72f332391a6f96457b4e450404f9
* wm8731: document audiohw settingsAmaury Pouly2016-12-12
| | | | Change-Id: I78ec26a00a3e14a95c591ac81d96e1b480b9138e
* as3514: document hardware setting based on as3514.cAmaury Pouly2016-12-12
| | | | Change-Id: Ifc3c4cf75f7091da0b4c4ce5b0c291b373cf9a3a
* imx233: slightly rework 3D audio settingAmaury Pouly2016-12-12
| | | | | | | | | The old code made the setting appear as 0dB, 1.5dB, 3dB and 4.5dB when in fact it is 0dB, 3dB, 4.5dB and 6dB. This commit clarifies the code and also fix this at the same time. This imx233 3D enhancement is complete crap anyway but now you can satisfy yourself with 6 dB of pure crap, clearly an enhancement. Change-Id: Ia3e088987c1ff0cdde228905ff70f46476a499a2
* Document AUDIOHW_SETTINGAmaury Pouly2016-12-12
| | | | | | | | | Everytime I use it, I get highly confused because it's complicated and undocumented. The code is spread all over the place and some targets clearly use incorrect values. This is the first step of a series to cleanup audio settings and document it properly. Change-Id: I20cb7af2bfa33986cb8b0bf8573f17a92227f893
* imx233: refactor power off and rebootAmaury Pouly2016-12-12
| | | | | | There is no reason to use different code paths Change-Id: I4894c7963c802b56b5d3576909e1008a7c401935
* Make it clear that the NWZ-E370 port also handles NWZ-E380Amaury Pouly2016-12-12
| | | | Change-Id: Icc061f15f4cac3d8bd9f95ea3b583556a9402f0b
* imx233: add capability to boot OF or updater instead of RockboxAmaury Pouly2016-12-12
| | | | | | | | | | | | | | | | This commit adds the necessary code in the dualboot stub (bootloader) to let rockbox control the boot process. In particular, rockbox can now choose if the next boot will be normal (boot rockbox or OF on magic key), to OF or to updater. The intents (to be added in follow-up commits) are: 1) Let the user more easily reboot to the OF. On some targets it is not trivial, especially in USB mode. 2) Automatically reboot to updater when the user drop firmware.sb at the root of the drive (currently, the user needs to do that in OF USB mode) 3) Document this OF magic Change-Id: I86df651dec048c318c6a22de74abb8c6b41aa9ad
* SA9200: Remove duplicated and misleading define.Szymon Dziok2016-10-02
| | | | Change-Id: I51f61349de8c32eeb70ca1812e7b34823f482f18
* HDD16X0/HDD63X0: Enable power status of charging from USB.Szymon Dziok2016-10-02
| | | | Change-Id: I7b1e5e87921ae0770f7783680c3dbcdbf6f257f3
* HDD6330: Implement ATA power on/off.Szymon Dziok2016-09-25
| | | | | | This should fix some errors, panics in some individual cases. Change-Id: I27ce41f0563378e03371724f8b044404c6e69b76
* Fix makefile not rebuilding rbversion.h in some casesAmaury Pouly2016-09-23
| | | | | | For example when running make VERSION="bla" Change-Id: I8f8833f0fb200828346ed0a6842a9340e3653932
* fix red on stmp<3780Amaury Pouly2016-09-22
| | | | Change-Id: I74f0450e8f42032265b980b95f17b0b05d9dffa5
* imx233: add power-up source to the debug menuAmaury Pouly2016-09-22
| | | | Change-Id: Ib67385354b1d6529d41198bfdcb1ecd092e9b98b
* imx233: make microphone bias, bias pin and resistor configurableAmaury Pouly2016-09-21
| | | | | | | | This clearly fixes recording on targets where the bias pin was wrong. It may also improve recording on targets where the bias voltage was wrong. I was unable to find those parameters on the ZEN Mozaic, which fallback to default values. Change-Id: Ifb5f823c9cbd01f0d9a80fa5d49d93972c8b7cfe
* imx233: fix recording gainAmaury Pouly2016-09-21
| | | | | | | | For some reason, there was a mismatch between the setting (decibel) and the audiohw code (centicel). This resulted in a gain divided by 10. This may explain why some people experienced low volume with the mic on the fuze+. Change-Id: I138ac18dd93c36f43a7dfce735efc826405c598c
* as3543: fix audio gap when switching from dac to line-in/recordingAmaury Pouly2016-08-29
| | | | | | | | | | | | | | | | Also clarity parts of the code. The old code suffered from two defects: - it was very unclear because it made changes to whole registers (using as3514_write) instead of fields (using as3514_set/clear/write_masked). Also the routing code was spread accross several functions which made it hard to follow. - it did not properly reroute audio on monitor changes. In particular, the following could happen: when switching from DAC to radio, the code would fail to clear SUM_off, resulting in a weird situation where the main mixer was off (SUM_off) but the headphone where using the main mixer as input. Incredibly this worked anyway (at least on AMSv2 and YP-R0) but resulted in strange volume gaps between DAC and radio mode. Change-Id: I7826835fdb59c21f6483b223883ca9289e85caca
* Fix two typos in commentsAmaury Pouly2016-08-22
| | | | Change-Id: I39e42c5e4505e78711e30f8826b6760419434ca0
* imx233: add alarm value to debug menuAmaury Pouly2016-08-22
| | | | | | Hopefully this can help debugging alarm problems. Change-Id: Id8c5603a6372744dfc62890443a37de2dd92a7c0
* iPod Classic: NOR support for bootloaderCástor Muñoz2016-08-19
| | | | | | | | - NOR driver (based on emCORE) - read/write IM3 images - read 'flsh' files Change-Id: Ie0654e0d298affc0f47ed64b823767118bd1aa3f
* iPod Classic: hardware AES and SHA1 for bootloaderCástor Muñoz2016-08-19
| | | | | | | | | | Based on emCORE. Low level functions that do not depend on Rockbox kernel, intended to be used by the bootloader, dualboot-installer, RB drivers or other .dfu tools. Change-Id: I3c616ded42260c6626bda23b7e580791981df61d
* iPod Classic: SPI driver for bootloaderCástor Muñoz2016-08-19
| | | | | | | | | | Based on emCORE. Low level functions that do not depend on Rockbox kernel, intended to be used by the bootloader, dualboot-installer, RB drivers or other .dfu tools. Change-Id: Iad369627b55bf1778eab437424072f1a653e4db6
* as3525v2: use the new USB DesignWare driverCástor Muñoz2016-08-15
| | | | | | Targets: sansaclipplus, samsaclipv2, sansaclipzip, sansafuzev2. Change-Id: I7773528a4e26707dd33fe9cb8948750d49570701
* iPod Classic: rework on I2C driverCástor Muñoz2016-08-12
| | | | | | | | | | - Some rewrite with the intent to get ride of these random errors appearing on some builds/devices (not much noticeable on RB but can ruin bootloader builds). - Error handling (ACK). - IIC clock increased to be the same as in OF. Change-Id: Idf8cfa3c230a0a61ec9c879bf6f0ea8b061a4607
* iPod Classic: ADC updatesCástor Muñoz2016-08-12
| | | | | | | | Add code to read USB D+/D- and accessory ADCs, it is shown in HW debug menu, might be useful in future for RB and/or the bootloader to identify external USB chargers. Change-Id: Ia48ca5e06bb7ddc52bb55abedde6734653ce8dba
* Increase CVDD1 only for Clip+ version 0Mihail Zenkov2016-08-11
| | | | Change-Id: I839ba2191a5c52ef6f58fd4a273db628b690a05c
* Increase CVDD1 for Clip+ to prevent ATA errorMihail Zenkov2016-08-10
| | | | Change-Id: I0424d02196a6c5fb6d0185b007df5ece24b10b82
* usb_serial: fix send buffer alignmentCástor Muñoz2016-08-04
| | | | Change-Id: Ib2635c905462cd34befa3ca61e5d55c869686b48
* iPod Nano 2G: use the new USB DesignWare driverCástor Muñoz2016-08-02
| | | | Change-Id: I8d1561bf4e239b55617a8d5075457a668e0c312c