summaryrefslogtreecommitdiff
path: root/firmware/export (follow)
Commit message (Collapse)AuthorAge
* Merge branch 'master' into workingFranklin Wei2016-11-06
|\ | | | | | | Change-Id: Iad54233a3575c0117f88ce7a1e89bfa639760f63
| * SA9200: Remove duplicated and misleading define.Szymon Dziok2016-10-02
| | | | | | | | Change-Id: I51f61349de8c32eeb70ca1812e7b34823f482f18
| * Fix two typos in commentsAmaury Pouly2016-08-22
| | | | | | | | Change-Id: I39e42c5e4505e78711e30f8826b6760419434ca0
| * 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
| * iPod Nano 2G: use the new USB DesignWare driverCástor Muñoz2016-08-02
| | | | | | | | Change-Id: I8d1561bf4e239b55617a8d5075457a668e0c312c
| * iPod Classic: use the new USB DesignWare driverCástor Muñoz2016-08-02
| | | | | | | | Change-Id: I36aabb5cb9cfe2d8c4f8fbcea944efec58ef9671
| * Introduce new USB driver for Synopsys DesignWare USB OTG core.Cástor Muñoz2016-08-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | support static passwords, hardware-accelerated AES, SHA1Franklin Wei2016-07-09
| | | | | | | | Change-Id: Iacb1ac768741f40a7b3ed39eb820bb228bbabd0a
* | Merge branch 'synopsys' into workingFranklin Wei2016-06-14
|\ \ | | | | | | | | | Change-Id: I79f5a5dcfbe3ef7531558abac02fca129e9fb161
| * \ Merge commit 'refs/changes/24/1324/6' of git://git.rockbox.org/rockbox into ↵Franklin Wei2016-06-14
| |\ \ | | | | | | | | | | | | | | | | | | | | synopsys Change-Id: I9ad1e988ebb492f92468cb6c62f8778cbecad0e3
| | * | usb-designware: New USB driver for Synopsys DesignWare USB OTG core.Cástor Muñoz2016-06-14
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch Set 1: This bundle includes: - USBOTG_DESIGNWARE driver based on g#844 and g#949 - USBOTG_DESIGNWARE for s5l8702 (Classic) - USBOTG_DESIGNWARE for s5l8701 (Nano2G) - USBOTG_DESIGNWARE for as3525v2 (enabled on Sansa Zip Clip) - ALIGNED_BUFFER_QUICK_PATCH (usb_serial.c) Preliminary version, needs to adjust some things and rework to optimize in size. Tested on Linux (USB_STORAGE, USB_HID and USB_SERIAL). Known issues: - n2g: panics when USB is extracted and then re-inserted quickly. This only happens when "Error accessing playlist control file" is shown (RB bug?). Patch Set 2: - Enable USBOTG_DESIGNWARE for sansaclipplus, sansaclipv2 and sansafuzev2, these targets have never been tested. - First round of optimizations, mainly tries to homogenize the names of the endpoints and other small changes, functionality should be the same as in the previous patch set. Patch Set 3: - Some rewrite/optimizations, functionality should be the same as in the previous patch set. Patch Set 4: - n2g: enable EPROTO workaround, EPROTO errors are produced while the device is receiving bulk data, they are highly mitigated running the PHY @60 MHz. but it seems that occasionally the problem still persists. This workaround tries to solve the issue by flushing the Rx FIFO/queue that were corrupted by the received data. - Some minor miscellaneous changes, previous functionality should not be affected. Patch Set 5: - Changes in commit message. Patch Set 6: - Small rewrite/optimizacions including some minor changes, previous functionallity should not be affected. - Add usb_drv_recv_blocking(), not tested. Change-Id: Iecf21dacc458ba2bdfc93782d3e08b3acdf0720d
* | | Merge branch 'synopsys' into workingFranklin Wei2016-06-14
|\ \ \ | |/ /
| * | usb-designware: New USB driver for Synopsys DesignWare USB OTG core.Cástor Muñoz2016-06-14
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch Set 1: This bundle includes: - USBOTG_DESIGNWARE driver based on g#844 and g#949 - USBOTG_DESIGNWARE for s5l8702 (Classic) - USBOTG_DESIGNWARE for s5l8701 (Nano2G) - USBOTG_DESIGNWARE for as3525v2 (enabled on Sansa Zip Clip) - ALIGNED_BUFFER_QUICK_PATCH (usb_serial.c) Preliminary version, needs to adjust some things and rework to optimize in size. Tested on Linux (USB_STORAGE, USB_HID and USB_SERIAL). Known issues: - n2g: panics when USB is extracted and then re-inserted quickly. This only happens when "Error accessing playlist control file" is shown (RB bug?). Patch Set 2: - Enable USBOTG_DESIGNWARE for sansaclipplus, sansaclipv2 and sansafuzev2, these targets have never been tested. - First round of optimizations, mainly tries to homogenize the names of the endpoints and other small changes, functionality should be the same as in the previous patch set. Patch Set 3: - Some rewrite/optimizations, functionality should be the same as in the previous patch set. Patch Set 4: - n2g: enable EPROTO workaround, EPROTO errors are produced while the device is receiving bulk data, they are highly mitigated running the PHY @60 MHz. but it seems that occasionally the problem still persists. This workaround tries to solve the issue by flushing the Rx FIFO/queue that were corrupted by the received data. - Some minor miscellaneous changes, previous functionality should not be affected. Patch Set 5: - Changes in commit message. Change-Id: Iecf21dacc458ba2bdfc93782d3e08b3acdf0720d
* | Merge branch 'otp' into workingFranklin Wei2016-06-13
|\ \
| * | usb: implement blocking receiveFranklin Wei2016-06-13
| |/ | | | | | | | | | | XXX explain why this is useful Change-Id: I680fc8daf3b97e311dcb05baac8628cee2abf70e
* | enable HID on the S3C6400XFranklin Wei2016-06-13
|/ | | | Change-Id: I1d0801d065124d884c5973df99ac10a627697ba4
* zenxfi3: rewrite mpr121 driverAmaury Pouly2016-06-01
| | | | | | The new driver uses an asynchronous architecture for touch status reading. Change-Id: Ic75a8b91bc47ee16c3af873afde178cd70186376
* fuze+: rewrite touchpad driverAmaury Pouly2016-06-01
| | | | | | | | | | | | | | | 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
* iPod Classic: i2c updatesCástor Muñoz2016-05-26
| | | | Change-Id: Ib516f3f52cf619fb44dc1bb6982b635c49f53a8f
* iPod Classic: define USB_STATUS_BY_EVENT and USB_DETECT_BY_REQUESTCástor Muñoz2016-05-26
| | | | Change-Id: I333fe779d8977bf58a579561466ef8872aa4e228
* iPod Classic: introduce PMU interruptsCástor Muñoz2016-05-25
| | | | | | | | | | 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
* iPod Classic: HW initialization for RBCástor Muñoz2016-05-25
| | | | | | | Do not rely on a bootloader initializing the HW, RB initializes and configures GPIO, I2C, and PMU at startup. Change-Id: If7f856b1f345f63de584aa4e4fc22d130cd66c80
* iPod Classic: HW preliminary initialization for bootloaderCástor Muñoz2016-05-25
| | | | | | | | | | | 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
* iPod Classic: modify USB storage read/write buffers sizeCástor Muñoz2016-05-15
| | | | | | | | | 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
* iPod Classic: remove ATA_HAVE_BBTCástor Muñoz2016-05-15
| | | | Change-Id: I45e26a413c13e401164a01996b0b4c6788096a7f
* iPod Classic: remove emCORE HDD endianess warningCástor Muñoz2016-05-15
| | | | Change-Id: I91aa2dca7e748fe043c16014661985c42ab84b1a
* iPod Classic: prepare i2c and PMU for bootloaderCástor Muñoz2016-05-15
| | | | | | | | | | | | | 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
* iPOd Classic: skip emCORE HDD endianness warning for bootloaderCástor Muñoz2016-05-15
| | | | Change-Id: I274511cc1061c396a0642e8496d46a3b9c1228d3
* iPod Nano2G: add IPOD_ACCESSORY_PROTOCOLCástor Muñoz2016-05-14
| | | | Change-Id: I78a19972624504bc802d96b9b8e9cec132164c2c
* iPod Nano2G: add HAVE_SERIALCástor Muñoz2016-05-13
| | | | Change-Id: I46dca69c6708d3e6189f66e70badf0a594bac00b
* Add UART suuport for s5l8700 and s5l8701Cástor Muñoz2016-05-13
| | | | | | | | | 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
* iPod Classic: updates for uc8702 driverCástor Muñoz2016-05-13
| | | | | | | | | | - 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
* Update runtime estimation after recent power optimizations.Michael Giacomelli2016-04-22
| | | | | | | Values taken from Mihail's Clip Zip, should be similar on all AMSv2 devices. Change-Id: I9432ecffea94afae224391a86f1d3fa46cd87bc0
* AMS: enable SD card support in bootloaderMihail Zenkov2016-04-20
| | | | | | | 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
* AMSv2: enable voltage scalingMihail Zenkov2016-04-13
| | | | Change-Id: I8d64b8578d28884e326f8b43100b3b4691f95acf
* AMS: power off while charging enabledMihail Zenkov2016-04-07
| | | | Change-Id: Icddf1ea0a03f0426e0cf9b99f05ea065f532fed5
* as3525: reverting I2C2 to non-interrupts versionMihail Zenkov2016-04-05
| | | | | | | Interrupts version is cause of freeze on USB extraction. Also non-interrupts version much simpler and faster. Change-Id: I30a2993cdcaa85abfba77ca06bfacd5b6b4353e2
* Fix checking for CONFIG_CHARGINGMihail Zenkov2016-04-04
| | | | Change-Id: I53b9a129679fd7b322770025106ef92033226d2a
* Don't add new message to logf when we dump it to fileMihail Zenkov2016-04-04
| | | | | | | | 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
* Disable voltage scaling.Michael Giacomelli2016-03-27
| | | | | | Crashes immediately. Something was wrong with the last commit. Change-Id: Ie8a05095369a6312dc151e0a393e97d3a3fc7a09
* Enable voltage scaling on AMSv2.Michael Giacomelli2016-03-27
| | | | | | | | | 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
* GUI boost for any buttonMihail Zenkov2016-03-18
| | | | | | It improve responsiveness for all targets with frequency scaling. Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
* Fix NUM_ADC_CHANNELS for AS3525v2Mihail Zenkov2016-03-18
| | | | Change-Id: If523d9fe24711ffe571623aae54f141f00b0ee41
* HDD63X0: add a note about poweroff while charging to the config file.Szymon Dziok2016-03-13
| | | | Change-Id: I1e523dd3ddc5ddf198302cdb69cc90ad79df0563
* HDD16X0: disable poweroff while charging, add a note to the config file why.Szymon Dziok2016-03-13
| | | | Change-Id: I90511b019f45d06e3154c986e1abf87a91d79570
* iPod Classic: ATA SMART updatesCástor Muñoz2016-02-14
| | | | | | | | - Add description for attributes supported by Samsung HS081HA (80Gb) and HS161JQ (CEATA 160Gb). - Show error code when ata_read_smart() fails. Change-Id: I618cc4f37d139fc90f596e2cf3a751346b27deb6
* iPod Classic: fix USB_DEVBSS_ATTR alignmentCástor Muñoz2016-02-14
| | | | | | | | 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
* as3514: fix bug in volume management on AS3543 targets which are not AS3525v2Amaury Pouly2016-02-12
| | | | | | | | | 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