| Commit message (Collapse) | Author | Age |
| |\
| |
| |
| | |
Change-Id: Iad54233a3575c0117f88ce7a1e89bfa639760f63
|
| | |
| |
| |
| | |
Change-Id: I51f61349de8c32eeb70ca1812e7b34823f482f18
|
| | |
| |
| |
| | |
Change-Id: I39e42c5e4505e78711e30f8826b6760419434ca0
|
| | |
| |
| |
| |
| |
| | |
Targets: sansaclipplus, samsaclipv2, sansaclipzip, sansafuzev2.
Change-Id: I7773528a4e26707dd33fe9cb8948750d49570701
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| | |
Change-Id: I8d1561bf4e239b55617a8d5075457a668e0c312c
|
| | |
| |
| |
| | |
Change-Id: I36aabb5cb9cfe2d8c4f8fbcea944efec58ef9671
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| | |
Change-Id: Iacb1ac768741f40a7b3ed39eb820bb228bbabd0a
|
| |\ \
| | |
| | |
| | | |
Change-Id: I79f5a5dcfbe3ef7531558abac02fca129e9fb161
|
| | |\ \
| | | |
| | | |
| | | |
| | | |
| | | | |
synopsys
Change-Id: I9ad1e988ebb492f92468cb6c62f8778cbecad0e3
|
| | | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |\ \ \
| |/ / |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| | |
XXX explain why this is useful
Change-Id: I680fc8daf3b97e311dcb05baac8628cee2abf70e
|
| |/
|
|
| |
Change-Id: I1d0801d065124d884c5973df99ac10a627697ba4
|
| |
|
|
|
|
| |
The new driver uses an asynchronous architecture for touch status reading.
Change-Id: Ic75a8b91bc47ee16c3af873afde178cd70186376
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: Ib516f3f52cf619fb44dc1bb6982b635c49f53a8f
|
| |
|
|
| |
Change-Id: I333fe779d8977bf58a579561466ef8872aa4e228
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Do not rely on a bootloader initializing the HW, RB initializes
and configures GPIO, I2C, and PMU at startup.
Change-Id: If7f856b1f345f63de584aa4e4fc22d130cd66c80
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I45e26a413c13e401164a01996b0b4c6788096a7f
|
| |
|
|
| |
Change-Id: I91aa2dca7e748fe043c16014661985c42ab84b1a
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I274511cc1061c396a0642e8496d46a3b9c1228d3
|
| |
|
|
| |
Change-Id: I78a19972624504bc802d96b9b8e9cec132164c2c
|
| |
|
|
| |
Change-Id: I46dca69c6708d3e6189f66e70badf0a594bac00b
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
| |
Values taken from Mihail's Clip Zip, should be similar
on all AMSv2 devices.
Change-Id: I9432ecffea94afae224391a86f1d3fa46cd87bc0
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I8d64b8578d28884e326f8b43100b3b4691f95acf
|
| |
|
|
| |
Change-Id: Icddf1ea0a03f0426e0cf9b99f05ea065f532fed5
|
| |
|
|
|
|
|
| |
Interrupts version is cause of freeze on USB extraction.
Also non-interrupts version much simpler and faster.
Change-Id: I30a2993cdcaa85abfba77ca06bfacd5b6b4353e2
|
| |
|
|
| |
Change-Id: I53b9a129679fd7b322770025106ef92033226d2a
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Crashes immediately. Something was wrong with the last commit.
Change-Id: Ie8a05095369a6312dc151e0a393e97d3a3fc7a09
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
It improve responsiveness for all targets with frequency scaling.
Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
|
| |
|
|
| |
Change-Id: If523d9fe24711ffe571623aae54f141f00b0ee41
|
| |
|
|
| |
Change-Id: I1e523dd3ddc5ddf198302cdb69cc90ad79df0563
|
| |
|
|
| |
Change-Id: I90511b019f45d06e3154c986e1abf87a91d79570
|
| |
|
|
|
|
|
|
| |
- Add description for attributes supported by Samsung HS081HA (80Gb)
and HS161JQ (CEATA 160Gb).
- Show error code when ata_read_smart() fails.
Change-Id: I618cc4f37d139fc90f596e2cf3a751346b27deb6
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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
|