summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
* rename crypto funcsFranklin Wei2016-11-06
| | | | Change-Id: I554641ab318ab7b6952ea6cbe3ac04f39431deae
* usb-designware: implement blocking receiveCástor Muñoz2016-11-06
| | | | Change-Id: I5d1d79949fe9da2fd97d0711e1d1a19b7a966cea
* Merge branch 'master' into workingFranklin Wei2016-11-06
|\ | | | | | | Change-Id: Iad54233a3575c0117f88ce7a1e89bfa639760f63
| * 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
| * 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
* | mess with thingsFranklin Wei2016-07-24
| | | | | | | | Change-Id: I8322c834a8c83761d995fc1cfb5c76b45d62893f
* | [WIP] DuckyScript pluginFranklin Wei2016-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows a DAP to behave like a USB Rubber Ducky by executing DuckyScript files, which is a BASIC-like language with facilities for sending keystrokes. A "crash course" on the language can be found at http://71.71.39.6/ducky.txt This plugin also implements several extensions to vanilla DuckyScript, some of which are listed below (see source for complete documentation). - variables (multicharacter names via hash map) - control flow (JUMP/GOTO, IF) with labels - expression parsing when a number is needed - non-decimal bases - bytecode compilation (on computer only) The compiler and related tools can be found here: https://github.com/theunamedguy/ducky NOTE: Changes some entries in the HID usage tables, but doesn't break anything. TODO: - Finish up manual entry - Further documentation? - More optimization? - Arrays (how?) - TEST, TEST, TEST! - Some features have only been marginally tested and MIGHT NOT WORK CORRECTLY - FASTER TYPING!!! - Currently averages ~96 keys/sec - Theoretical maximum: 500 keys/sec - Of interest: G#1223 (http://gerrit.rockbox.org/r/1223/) Change-Id: I149ecd08ba124f8b8637a002ee2652dd54a44e58
* | support static passwords, hardware-accelerated AES, SHA1Franklin Wei2016-07-09
| | | | | | | | Change-Id: Iacb1ac768741f40a7b3ed39eb820bb228bbabd0a
* | Merge commit 'refs/changes/24/1324/7' of git://git.rockbox.org/rockbox into ↵Franklin Wei2016-07-08
|\ \ | | | | | | | | | working
| * | usb-designware: New USB driver for Synopsys DesignWare USB OTG core.Cástor Muñoz2016-07-08
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Patch Set 7: - Fix panics when USB is extracted and then re-inserted quickly ("usb_storage_init_connection(): OOM" panic on Nano2G and Classic). Change-Id: Iecf21dacc458ba2bdfc93782d3e08b3acdf0720d
* | iPod Classic: hardware AES and SHA1 for bootloaderCástor Muñoz2016-07-07
| | | | | | | | | | | | | | | | | | | | 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
* | fixFranklin Wei2016-06-15
| | | | | | | | Change-Id: I72d59bb654920b17b031c870f73e8209f9b0cb28
* | Merge branch 'otp' into workingFranklin Wei2016-06-15
|\ \ | | | | | | | | | Change-Id: Ieeaae330e8330189e87ee6726848178d0b9934e7
| * | OTP plugin: new features, cleanupFranklin Wei2016-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * "Type Code" feature * Export feature * Encryption feature (AES128-CTR) * Refactor menus * Should be backwards-compatible with old versions * Some code by Amaury Pouly * Adds tiny-AES128-c to plugins/lib * Security might need to be reviewed before merge Change-Id: Ie333e429364124fda312e1da01730fe516adffa5
| * | usb: implement blocking receiveFranklin Wei2016-06-14
| |/ | | | | | | | | | | XXX explain why this is useful Change-Id: I680fc8daf3b97e311dcb05baac8628cee2abf70e
* | FixFranklin Wei2016-06-14
| | | | | | | | Change-Id: I0def5ee506bc3c5fff97bcd8f6b3d228f2503822
* | 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
| | * zenxfi3: recalibrate battery curveAmaury Pouly2016-06-12
| | | | | | | | | | | | | | | | | | | | | Apparently I simply forgot to calibrate it when the port was done and the current values are just plain wrong, especially for the charging curve. Change-Id: Ied3cafa52f31f182f953714e28edc4c5e891255f
| | * iPod Nano2G: clear external interrupts at startupCástor Muñoz2016-06-10
| | | | | | | | | | | | | | | | | | | | | Fixes some ROLO issues after commit 9a4cd2e. Note that other ROLO issues still persist. Change-Id: I8e0c60519902013694c5a473dcb9fc62a6ff079c
* | | OTP workFranklin Wei2016-06-14
| | | | | | | | | | | | Change-Id: I36bf75218e8e032e6dbb67792c4f2ff40ceaadc3
* | | 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
|\ \
| * | OTP plugin: add typing code over USBFranklin Wei2016-06-13
| | | | | | | | | | | | | | | | | | * some code by pamaury Change-Id: Ie333e429364124fda312e1da01730fe516adffa5
| * | usb: implement blocking receiveFranklin Wei2016-06-13
| |/ | | | | | | | | | | XXX explain why this is useful Change-Id: I680fc8daf3b97e311dcb05baac8628cee2abf70e
* | Merge branch 'classichid' into workingFranklin Wei2016-06-13
|\ \
| * | enable HID on the S3C6400XFranklin Wei2016-06-13
| |/ | | | | | | Change-Id: I1d0801d065124d884c5973df99ac10a627697ba4