summaryrefslogtreecommitdiff
path: root/firmware/export
AgeCommit message (Collapse)Author
2016-08-22Fix two typos in commentsAmaury Pouly
Change-Id: I39e42c5e4505e78711e30f8826b6760419434ca0
2016-08-15as3525v2: use the new USB DesignWare driverCástor Muñoz
Targets: sansaclipplus, samsaclipv2, sansaclipzip, sansafuzev2. Change-Id: I7773528a4e26707dd33fe9cb8948750d49570701
2016-08-12iPod Classic: rework on I2C driverCástor Muñoz
- 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
2016-08-12iPod Classic: ADC updatesCástor Muñoz
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
2016-08-02iPod Nano 2G: use the new USB DesignWare driverCástor Muñoz
Change-Id: I8d1561bf4e239b55617a8d5075457a668e0c312c
2016-08-02iPod Classic: use the new USB DesignWare driverCástor Muñoz
Change-Id: I36aabb5cb9cfe2d8c4f8fbcea944efec58ef9671
2016-08-02Introduce new USB driver for Synopsys DesignWare USB OTG core.Cástor Muñoz
Based on g#844 and g#949, it is intended as a replacement for the current s3c6400x USB driver. The DesignWare USB OTG core is integrated into many SoC's, however HW core version and capabilities (mainly DMA mode, Tx FIFO mode, FIFO size and number of available IN/OUT endpoins) may differ: CPU targets HW ver DMA NPTX FIFO FIFO sz #IN/OUT -------- ------------- ------ --- --------- ------- ------- as3525v2 sansaclipplus 2.60a Yes Dedicated 0x535 4/4 sansaclipv2 sansaclipzip sansafuzev2 s5l8701 ipodnano2g 2.20a Yes Shared 0x500 4/5 s5l8702 ipod6g 2.60a Yes Dedicated 0x820 7/7 ipodnano3g s5l8720 ipodnano4g ? ? ? ? ? Functionality supported by this driver: - Device mode, compatible with USB 1.1/2.0 hosts. - Shared FIFO (USB_DW_SHARED_FIFO) or dedicated FIFOs. - No DMA (USB_DW_ARCH_SLAVE) or internal DMA mode. - Concurrent transfers: control, bulk (usb_storage, usb_serial) and interrupt (usb_hid). Actually this driver is not used by any CPU, it will be enabled for each individual CPU/target in next patches. Change-Id: I74a1e836d18927a31f6977d71115fb442477dd5f
2016-06-01zenxfi3: rewrite mpr121 driverAmaury Pouly
The new driver uses an asynchronous architecture for touch status reading. Change-Id: Ic75a8b91bc47ee16c3af873afde178cd70186376
2016-06-01fuze+: rewrite touchpad driverAmaury Pouly
The old driver was bad in many respect, it had some race conditions, it was using a thread to serialize transfers because of the legacy i2c interface. It also had huge latency (typically 50ms but delays up to 300ms can happen), thus some presses were missed. The new driver takes advantage of the new i2c driver to do everything asynchronously. It also does not need a thread anymore because queueing ensures proper serialization. It provides much better and reliable latency (typically ~2ms). Also fix the debug screen which was horribly broken. The new screen also displays the deadzones. Change-Id: I69b7f99b75053e6b1d3d56beb4453c004fd2076e
2016-05-26iPod Classic: i2c updatesCástor Muñoz
Change-Id: Ib516f3f52cf619fb44dc1bb6982b635c49f53a8f
2016-05-26iPod Classic: define USB_STATUS_BY_EVENT and USB_DETECT_BY_REQUESTCástor Muñoz
Change-Id: I333fe779d8977bf58a579561466ef8872aa4e228
2016-05-25iPod Classic: introduce PMU interruptsCástor Muñoz
PMU interrupts are used to detect USB Vbus, wall adaptor, accessories and holdswitch. A thread is needed to poll the PMU throught I2C, ATM it does nothing but showing the state of the inputs on the HW debug menu, funcionallity for each individual input will be added in next patches. Change-Id: If93bf2044d1052729237a7fd1431c8493e09f1c7
2016-05-25iPod Classic: HW initialization for RBCástor Muñoz
Do not rely on a bootloader initializing the HW, RB initializes and configures GPIO, I2C, and PMU at startup. Change-Id: If7f856b1f345f63de584aa4e4fc22d130cd66c80
2016-05-25iPod Classic: HW preliminary initialization for bootloaderCástor Muñoz
When the bootloader starts, most of HW never has been initialized. This patch includes all code needed to perform the preliminary initialization on SYSCON, GPIO, i2c, and MIU. The code is based on emCORE and OF reverse engineering, ported to C for readability. Change-Id: I9ecf2c3e8b1b636241a211dbba8735137accd05c
2016-05-15iPod Classic: modify USB storage read/write buffers sizeCástor Muñoz
The write buffer size is undefined to use the default 24Kb. size defined (and recomended) in usb_storage.c, the read buffer size is also decremented to 24 Kb. USB sequential read and write benchmarks using diskdump are now 8-9% faster. Change-Id: Ia7c9f77b57c8ca5b566b508efffbd713d1587acf
2016-05-15iPod Classic: remove ATA_HAVE_BBTCástor Muñoz
Change-Id: I45e26a413c13e401164a01996b0b4c6788096a7f
2016-05-15iPod Classic: remove emCORE HDD endianess warningCástor Muñoz
Change-Id: I91aa2dca7e748fe043c16014661985c42ab84b1a
2016-05-15iPod Classic: prepare i2c and PMU for bootloaderCástor Muñoz
When the bootloader starts only IRAM is available, the first task is to ask the PMU to verify if the iPod has previously been hibernated by OF. Due to memory limitations, the kernel cannot be used on this stage. This patch modifies I2C and PMU low level functions to not to depend on kernel (removes mutexes, and uses HW timer instead of current_tick), actual kernel functions are modified to be 'mutexed' wrappers of the new functions. Change-Id: I7cef9e95dedaf176dc0659315f3dc33166d5b116
2016-05-15iPOd Classic: skip emCORE HDD endianness warning for bootloaderCástor Muñoz
Change-Id: I274511cc1061c396a0642e8496d46a3b9c1228d3
2016-05-14iPod Nano2G: add IPOD_ACCESSORY_PROTOCOLCástor Muñoz
Change-Id: I78a19972624504bc802d96b9b8e9cec132164c2c
2016-05-13iPod Nano2G: add HAVE_SERIALCástor Muñoz
Change-Id: I46dca69c6708d3e6189f66e70badf0a594bac00b
2016-05-13Add UART suuport for s5l8700 and s5l8701Cástor Muñoz
Add UART support for s5l8700/1 using the UC870X UART controller, actually the functionallity is disabled and must be enabled for each individual target. Tested on iPod Nano 2G (s5l8701), not tested on s5l8700. Change-Id: Ic0f216bb871502d355a70e4b658e536a2c0976a9
2016-05-13iPod Classic: updates for uc8702 driverCástor Muñoz
- Small rework on the UC8702 UART controller to make it compatible with other s5l870x SOCs. Files moved and renamed, many conditional code added to deal with capabilities and 'features' of the different CPUs. - A couple of optimizacions that should not affect the functionality. Change-Id: I705169f7e8b18d5d1da642f81ffc31c4089780a6
2016-04-22Update runtime estimation after recent power optimizations.Michael Giacomelli
Values taken from Mihail's Clip Zip, should be similar on all AMSv2 devices. Change-Id: I9432ecffea94afae224391a86f1d3fa46cd87bc0
2016-04-20AMS: enable SD card support in bootloaderMihail Zenkov
With this changes rockbox can be loaded from SD card when internal storage can't be mount (due to hardware or software problem). Change-Id: I32b20d3f341566364def747a708a54ba6b4a7f8b
2016-04-13AMSv2: enable voltage scalingMihail Zenkov
Change-Id: I8d64b8578d28884e326f8b43100b3b4691f95acf
2016-04-07AMS: power off while charging enabledMihail Zenkov
Change-Id: Icddf1ea0a03f0426e0cf9b99f05ea065f532fed5
2016-04-05as3525: reverting I2C2 to non-interrupts versionMihail Zenkov
Interrupts version is cause of freeze on USB extraction. Also non-interrupts version much simpler and faster. Change-Id: I30a2993cdcaa85abfba77ca06bfacd5b6b4353e2
2016-04-04Fix checking for CONFIG_CHARGINGMihail Zenkov
Change-Id: I53b9a129679fd7b322770025106ef92033226d2a
2016-04-04Don't add new message to logf when we dump it to fileMihail Zenkov
Fix log file corruption if we have new messages at dumping log to file. Comment removed as it incorrect. We store all messages in direct order (last message at end of file). Change-Id: I4acfa8a0935cc41a889e08f6bc42974fefd1ade2
2016-03-27Disable voltage scaling.Michael Giacomelli
Crashes immediately. Something was wrong with the last commit. Change-Id: Ie8a05095369a6312dc151e0a393e97d3a3fc7a09
2016-03-27Enable voltage scaling on AMSv2.Michael Giacomelli
Voltage is reduced when the CPU is unboosted, resulting in a large reduction in power consumption. In analogy with the AMSv1 voltage scaling code (currently disabled due to problems with SD cards), I have defined a config file option to enable/disable it. Change-Id: Ia89c31ec06dd012354b4d53435e7b5b36243b206
2016-03-18GUI boost for any buttonMihail Zenkov
It improve responsiveness for all targets with frequency scaling. Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
2016-03-18Fix NUM_ADC_CHANNELS for AS3525v2Mihail Zenkov
Change-Id: If523d9fe24711ffe571623aae54f141f00b0ee41
2016-03-13HDD63X0: add a note about poweroff while charging to the config file.Szymon Dziok
Change-Id: I1e523dd3ddc5ddf198302cdb69cc90ad79df0563
2016-03-13HDD16X0: disable poweroff while charging, add a note to the config file why.Szymon Dziok
Change-Id: I90511b019f45d06e3154c986e1abf87a91d79570
2016-02-14iPod Classic: ATA SMART updatesCástor Muñoz
- Add description for attributes supported by Samsung HS081HA (80Gb) and HS161JQ (CEATA 160Gb). - Show error code when ata_read_smart() fails. Change-Id: I618cc4f37d139fc90f596e2cf3a751346b27deb6
2016-02-14iPod Classic: fix USB_DEVBSS_ATTR alignmentCástor Muñoz
After previous commit 0b6647f2e9e5d21e80736eab7af33acecba28f38 this alignment should not be needed, but not sure at all, so it is aligned to cache line length for safety. Change-Id: I5b2b9a30c913d2a609acc1bdf30bdec6811a2551
2016-02-12as3514: fix bug in volume management on AS3543 targets which are not AS3525v2Amaury Pouly
Some old code made the assumption that CONFIG_CPU == AS3525v2 if and only if HAVE_AS3543, which is not true on targets like the Samsung YP-R0. This fixes several issues on such targets like a huge volume gap between -39dB and -40dB and a volume artificially capped at -72dB instead of -82dB. Change-Id: Ib1c883ac593c0c3ce5e2bf4eb408924ce5f5ad93
2016-01-25Replace SAMSUNG_YH920_PAD with YH92XSebastian Leonhardt
seems more logical to me, and is more consistent, since "SAMSUNG_YH92X_PAD" is already used in the tex files. Change-Id: Ie9a9d850ea86155a7dcf86c88a22a420a10a3837
2016-01-21Enable frequency scaling on AMSv2 devices.Mihail Zenkov
Voltage scaling is not yet enabled, but will follow once we are sure these changes are stable. Preliminary testing suggests a large increase in battery life, which will be further improved by voltage scaling. Patch by Mihail Zenkov with help from myself and others on the forums. Change-Id: I171d20bbee19a48c13cd14efb0d023883cc8c687
2015-12-17iPod Classic: add non-cached memory regionCástor Muñoz
Configures uncached memory region and adds some defines for misc HW, for compability with the bootloader and other future use, current functionality should not be affected. Change-Id: I390e79bea1aef5b10dfbc72ad327d7fe438ec6f5
2015-12-17iPod Classic: prepare LCD driver for the bootloaderCástor Muñoz
Optimizes encoding of LCD command sequences. Change-Id: I9d1eb735e5a972c1a176177ed570a3fe991d7b9f
2015-12-17iPod Classic: s5l8702 clocking rewrite+documentationCástor Muñoz
This is a rewrite of the clocking section, the resulting system frequencies are the same as the current git version. This pàtch uses fixed FClk and just one register is written to switch all system frequencies, it needs less steps than the current git version to reach the desired frequency, so it is faster and safer. Includes functions to step-up/down over a table of predefined set of frequencies. The major difference is that Vcore is decreased from 1050 to 1000 mV. See clocking-s5l8702.h for more information. Change-Id: I58ac6634e1996adbe1c0c0918a7ce94ad1917d8e
2015-10-17iPod Classic: enable AB repeatCástor Muñoz
Change-Id: I58f3b0a3e4d8a1649d5549c312e6a259bce697a4
2015-10-07iPod Classic: reads HDD S.M.A.R.T. dataCástor Muñoz
Adds ata_read_smart() function to storage ATA driver, current SMART data can be displayed and optionally written to hard disk using System->Debug menu. Change-Id: Ie8817bb311d5d956df2f0fbfaf554e2d53e89a93
2015-10-07iAP: lingo 1 (microphone)Cástor Muñoz
Change-Id: I65da2064951972368a2880d271280e5b5ae878fe
2015-10-07iPod Classic: implement IPOD_ACCESSORY_PROTOCOLCástor Muñoz
Change-Id: I0f0950c42ae5bf5c5b4c2c2f097f8c68a92ba4dd
2015-10-07iPod Classic: implement HAVE_SERIALCástor Muñoz
Change-Id: I24a861cd45095d858d1a7db39969f6eda17cc563
2015-10-07ipod Classic: implement HAVE_RECORDINGCástor Muñoz
This patch has been tested on iPod 80 and 160slim, actually it works but some updates must be done to the final version: - unlimitted input buffer - decrease CHUNK_SIZE - use non-cached addresses instead of discard d-cache ??? Capture hardware versions: Ver iPod models capture support --- ----------- --------------- 0 80/160fat dock line-in 1 120/160slim dock line-in + jack mic HW version 1 includes an amplifier for the jack plug mic. Capture HW detection only tested on iPod 80 and 160slim. CODEC power: AFAIK, OF powers CS42L55 at VA=2.4V for capture (1.8V for playback) and turns on the ADC charge pump. CODEC datasheet recommmends to disable the charge pump for VA>2.1V. CS42L55 DS, s4.13 (Required Initialization Settings): for VA>2.1V, some adjustments "must" be done using undocummented "control port compensation" registers. OF does not modifies these registers when VA=2.4V. This patch configures capture HW in the same way as OF does. TODO: - ADC full scale voltage depends on VA, perform tests to find clipping levels for VA=1.8V and VA=2.4V Change-Id: I7e20fd3ecaa83b1c58d5c746f5153fe5c3891d75