summaryrefslogtreecommitdiff
path: root/src/portable
AgeCommit message (Collapse)Author
2025-11-06fix compile issue when enable both host and device for dwc2hathach
2025-11-04Fixed more alert found by PVS-Studiohathach
2025-11-03fix more warnings/alertshathach
2025-11-03remove binary prefix for portabilityhathach
2025-10-31Merge branch 'master' into fork/ArcaneNibble/ohci-upstreamhathach
2025-10-30Merge branch 'master' into add-ohci-lpc55hathach
# Conflicts: - hw/bsp/lpc17/family.cmake - hw/bsp/lpc40/family.cmake - hw/bsp/lpc55/family.cmake
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-10-28fix warning with strict prototypes warningshathach
2025-10-27improve warnings with rp2040 familyhathach
2025-10-25Merge pull request #3319 from peppapighs/dwc2-usbsuspmZixun LI
dcd/dwc2: fix suspend interrupt indefinitely disabled on AT32F405
2025-10-25dcd/dwc2: clear pending suspend interrupt before usb resetpeppapighs
2025-10-24fix more warningshathach
2025-10-15refactor spresense into cxd56. there is no orphan board in bsp.hathach
2025-10-15fix more warningshathach
2025-10-15refactor all nuc to familyhathach
2025-10-15update nuc121/125hathach
2025-10-15fix unused warningshathach
2025-10-15merge samd2x and saml2x bsp, add OPT_MCU_SAML2X to replace OPT_MCU_SAML21 & ↵hathach
OPT_MCU_SAML22
2025-10-14fix lots of warnings for missing-prototypes for irqhandlerhathach
2025-10-14Merge pull request #3299 from hathach/initial-nrf54h20Ha Thach
Initial nrf54h20 support
2025-10-13get cmake build with 54h20 not tested on actual hw, probably not runninghathach
2025-10-10try to enable ohci for lpc55 but not working, probably clock issuehathach
2025-10-10successfullypoornadharshan13-rgb
2025-10-09Merge pull request #3292 from tangpipi/fix_at32_remapHa Thach
at32_fsdev: Fix dcd_int_enable when remapping the USB interrupt
2025-10-09fix todo size in list_reverse()hathach
2025-10-09Fix dcd_int_enable when remapping the USB interrupt唐皮皮
2025-10-09centralize hcd_dcache_uncached() for EDhathach
2025-10-09Merge branch 'master' into fork/ArcaneNibble/ohci-upstreamhathach
2025-10-07dcd/dwc2: cleanup previous pending EP0 IN transfer if a SETUP packet is receivedMengsk
Signed-off-by: Mengsk <[email protected]>
2025-10-06Merge remote-tracking branch 'tinyusb/master' into dwc2_ep0Mengsk
2025-10-06dcd/dwc2: fix enumration when EP0 size=8Mengsk
Signed-off-by: Mengsk <[email protected]>
2025-10-06remove dcd_esp32sx which is replaced by dwc2hathach
2025-09-29Fix warningMengsk
Signed-off-by: Mengsk <[email protected]>
2025-09-29Disable SBUF_ISO for U0Mengsk
Signed-off-by: Mengsk <[email protected]>
2025-09-29Fix PMA size for U0Mengsk
Signed-off-by: Mengsk <[email protected]>
2025-09-17Fix address translation functionsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-17Replace old delay functions by tusb_time_delay_ms_apiHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-16Add ESP32-H4 as a supported MCU in TinyUSB and wire it into build/runtime:igor.masar
- tusb_option.h: define OPT_MCU_ESP32H4 - tusb_mcu.h: enable DWC2 USBIP for H4 - dcd_dwc2.c: add H4 USB_WRAP field aliases (wrap_* → legacy names) - dwc2_esp32.h: add H4 controller entry (FS base/IRQ, ep caps) - family.c: include H4 in USB init/PHY setup
2025-09-15add nrf54 to dwc2 infohathach
2025-09-15dwc2: wait for ahb idle before core resethathach
2025-09-13ohci: Use uncached alias to access EDsR
This code is written very carefully to always use an uncached view of memory to read/write EDs. An uncached view must *always* be used, or else cache behavior can corrupt the ED. As part of this change, combine access into as few word-sized accesses as possible. This makes the code perform better. Doing this involves giving type names to the bitfields that make up the ED's data words.
2025-09-13Merge pull request #3246 from HiFiPhile/nxp_hostHa Thach
ehci: fix device removal and endpoint open on next plug
2025-09-13ohci: Perform explicit cache operations on TDs, buffersR
2025-09-13ohci: Re-implement TD allocation, matching the specificationR
The initial motivation for doing this is to remove the `used` flag in the TD. If we use this flag, we end up being required to read from TDs that the OHCI controller might be modifying (i.e. the OHCI controller logically owns the TD). This happens when we try to allocate a new, empty TD while the OHCI host controller is working on a transfer. Move the `used` flag to `gtd_extra_data_t`. This data is only used by the CPU, and the OHCI controller never accesses it. The existing allocation method for TDs does *not* put an empty TD onto each ED (i.e it does *not* do what is shown in Figure 5-6 of the OHCI specification). Instead, the NextTD field of the last TD is set to 0. The TailP field of the ED is also set to 0. This works in many cases. However, this implementation means that the CPU may end up trying to write to the NextTD field of an in-progress transfer while the OHCI host controller logically owns it. Change the implementation to use an empty TD, as suggested by the specification, for endpoints other than EP0. This avoids the above issue. It is not necessary to make the change for EP0 because only at most one TD can ever be pending at a time. The above change should also remove the need for the stall workaround. In the future, we want to modify the code to access EDs through an uncached mapping. Because uncached mappings are slow, we want to access EDs as little as possible. Currently, when a TD completes, we access an ED in order to figure out the device address and endpoint number of the TD which was completed. Because moving `used` to `gtd_extra_data_t` necessitates expanding it, we have enough room to also store the device address and endpoint number of the TD. This patch does so. With the above two changes, we no longer need to access an ED when a TD completes. Also remove the `index` field from TDs as it is no longer necessary.
2025-09-12ohci: Align TDs to cache linesR
2025-09-12ohci: Add functions used for explicit cache operationsR
2025-09-12Fix AT32 compile after #3152HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12Update commentHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12Merge branch 'master' into sb-epHiFiPhile
2025-09-12ehci: fix removed qhd get reusedHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>