Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Host Driver support for synopsys dwc2 #2870

Merged
merged 49 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
10a3aa3
adding hcd dwc2
hathach Oct 15, 2024
4012e15
move core init code to dwc2 common. update/correct build for esppressif
hathach Oct 15, 2024
8d9d3d9
move gahbcfg/gintmsk with dma to dwc2 common
hathach Oct 16, 2024
b5a4f18
get hpri triggered
hathach Oct 17, 2024
42b6f30
add VBUS drive via MFX for h743 eval, but does not seems to work yet
hathach Oct 18, 2024
61b33ca
testing hcd with f723 due to h743eval issue with mfx vbus drive.
hathach Oct 18, 2024
f597887
get hprt interrupt triggered
hathach Oct 21, 2024
8461525
add tusb_time_millis(), able to reset and enable dwc2 port and get SO…
hathach Oct 21, 2024
063661e
more progress on dwc2 hcd, initial code for edpt xfer
hathach Oct 24, 2024
07abc72
hcd able to send setup packet
hathach Oct 25, 2024
77fa2f6
fix make build
hathach Oct 25, 2024
79c0a24
got In transfer working, able to get 1st device descriptor and set ad…
hathach Oct 25, 2024
dd99da9
implement hcd_edpt_abort_xfer, hcd_device_close,
hathach Oct 28, 2024
f953b6b
minor rename
hathach Oct 28, 2024
c93d3ed
restructure, add hcd endpoint, xfer to minimize footprint for managin…
hathach Oct 29, 2024
4797c4f
fix nptx fifo empty handling
hathach Oct 29, 2024
cef9bab
minor clean up
hathach Oct 29, 2024
1e16441
split handle channel slave out/in
hathach Oct 29, 2024
df55d58
update handle in/out, separate allocated and xfer result to make it e…
hathach Oct 29, 2024
074811c
refactor channel_send_in_token(), support IN token for multiple trans…
hathach Oct 29, 2024
616b577
fix pid token calculation, implement hcd_edpt_clear_stall(). msc expl…
hathach Oct 29, 2024
3c1cb0e
correct the fifo_available comparison (words not byte)
hathach Oct 29, 2024
80d8157
handle out nak slave -> halted -> retry transfer
hathach Oct 30, 2024
92e7ac6
fix bulk out and txfifo_empty(), should not rely on hcchar_bm.ep_size…
hathach Oct 31, 2024
9897a36
fix f7 ci build
hathach Oct 31, 2024
9afa640
testing hcd with dma, work well after enumeration.
hathach Oct 31, 2024
f7f80e8
do ping for slave out when nak/nyet
hathach Oct 31, 2024
4c8ce97
dma host work well with bulk/control
hathach Nov 1, 2024
b7ff10f
rename and add both CFG_TUH_DWC2_SLAVE_ENABLE/CFG_TUH_DWC2_DMA_ENABLE…
hathach Nov 1, 2024
b1182de
clean up is_period
hathach Nov 1, 2024
4f288c0
move buffer and buflen to hcd_endpoint_t to support periodic endpoint
hathach Nov 1, 2024
c96e041
implement periodic endpoint using sof
hathach Nov 1, 2024
a0f75e5
fix slave in nak & ack order
hathach Nov 1, 2024
5d6d905
got interrupt in working with slave
hathach Nov 2, 2024
80ad7c4
add tusb_time_millis_api() and default/weak tusb_time_delay_ms_api().…
hathach Nov 4, 2024
29262f3
improve port0_enable(), properly configure hcfg and hfir according to…
hathach Nov 4, 2024
5f891e0
usbh use the new tusb_time_delay_ms_api()
hathach Nov 4, 2024
372db1e
implement split transaction, got control working
hathach Nov 5, 2024
fbc1936
split interrupt work with fs mouse
hathach Nov 5, 2024
fe79a93
implement split for slave, got mouse working
hathach Nov 6, 2024
e5c2692
update bsp for f7
hathach Nov 6, 2024
772edf8
fix iar build
hathach Nov 6, 2024
4baeeeb
enable stm32f4 host
hathach Nov 7, 2024
9920ebf
update bsp for h7 to support host mode
hathach Nov 7, 2024
48b32f5
enable host dwc2 dma by default
hathach Nov 7, 2024
ab8160a
hcd work with esp32p4 in slave mode but have issue with DMA mode. In …
hathach Nov 7, 2024
5d00488
get hcd work esp32p4 but only in slave mode. In DMA channel's HCDMA i…
hathach Nov 8, 2024
c8d104f
fix warnings
hathach Nov 8, 2024
3831786
minor clean up
hathach Nov 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .idea/cmake.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/k64f.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/kl25.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/lpc1857.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/lpc4088.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/lpc54628.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/lpc55s69.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/mcx947.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/runConfigurations/nrf52840.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading