Commit Graph

1877 Commits

Author SHA1 Message Date
hathach
91799b0df5 Merge branch 'master' into fork/HiFiPhile/rt1170 2024-12-11 16:20:02 +07:00
hathach
29fa07d2ad Merge branch 'master' into fork/HiFiPhile/rt1170 2024-12-11 15:10:12 +07:00
hathach
d502a0c481 fix correct DWC2_EP_COUNT 2024-12-11 15:02:02 +07:00
Scott Shawcroft
3653c23240 Disable DWC HCD interrupt with MAX3421 enabled
hcd_int_handler isn't found otherwise.
2024-12-02 12:35:32 -08:00
HiFiPhile
0d9a24c416 Fix HCD build.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 23:18:22 +01:00
HiFiPhile
0bca377d52 Fix typo.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 21:57:47 +01:00
HiFiPhile
3351c366ab Restore DCache clean/invalidate.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 20:48:09 +01:00
HiFiPhile
c41d9db3b1 Merge branch 'master' into rt1170
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-30 18:05:04 +01:00
Roman Leonov
239443c197 fix(dcd_dwc2): Correct usage of dwc2_controller 2024-11-28 13:11:54 +01:00
Roman Leonov
741fdaaee7 fix(dcd_dwc2): Reset allocated_epin_count on bus reset and close all ep 2024-11-28 13:01:07 +01:00
hathach
7f61a5a43b made change per reviews, remove dcd_edpt_close(), rename and move thing around 2024-11-28 15:56:47 +07:00
hathach
c514a8c879 Merge branch 'master' into fork/pschatzmann/rp2040-iso 2024-11-28 11:02:23 +07:00
David (Pololu)
568c785da1 Add support for the STM32C0 and the NUCLEO-C071RB. 2024-11-27 22:28:32 +07:00
Ha Thach
dbc2c8d972 Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order (#2889)
* change TUD_EPBUF_TYPE_DEF order
* add and fix -Wmissing-prototypes warnings  for   cmake (skip  make)
2024-11-27 18:28:12 +07:00
hathach
ae7cdcd070 fix typo 2024-11-27 12:18:54 +07:00
hathach
be25aa31f6 hcd dwc2 add dcache support, usbh correctly use cache line size with TUH_EPBUF_DEF 2024-11-26 10:20:38 +07:00
hathach
833eb7d22d change dcd_dcache_*() API return type from void to bool 2024-11-25 19:11:19 +07:00
hathach
1533e693ee TUD_EPBUF_TYPE_DEF ncm_device 2024-11-22 15:45:08 +07:00
hathach
85e54b0fc3 use TUD_EPBUF_DEF to declare buffer memory for midi 2024-11-21 19:36:15 +07:00
hathach
fa523a5682 make sure usb buffer occupies whole cache line when DCACHE is enabled for msc,cdc,hid
HIL enable device DMA for p4
2024-11-21 10:22:09 +07:00
hathach
c61b55b191 dcd wrap data to dcd_data_t, add padding for setup_packet to match cache line size 2024-11-20 22:04:55 +07:00
hathach
b3b8bd88cb add CFG_TUD_MEM_DCACHE_ENABLE, CFG_TUD_MEM_DCACHE_LINE_SIZE option 2024-11-20 21:30:29 +07:00
hathach
4da5de707b have p4 dma somewhat working but having issue with buffer that does not occupy the whole cache line 2024-11-20 20:38:20 +07:00
Roman Leonov
43a45f29cd feature(dcd_dwc2): Added cache synchronization 2024-11-20 20:35:00 +07:00
Roman Leonov
b8d31a59ee feature(dcd_dwc2): Added cache synchronization 2024-11-20 13:10:23 +01:00
Ha Thach
9e674d4fae Merge pull request #2881 from hathach/enhance-dwc2-dcd 2024-11-19 05:08:07 +07:00
hathach
3fe7e612c8 remove commented code 2024-11-18 23:38:25 +07:00
hathach
6d4a60d8ac clean up 2024-11-18 23:07:05 +07:00
hathach
d37707d6dd move handle ep slave/dma wihtin compiler macro 2024-11-18 23:02:17 +07:00
hathach
dab600bea2 merge back and improve edpt_schedule_packets 2024-11-18 17:51:56 +07:00
hathach
a2ab783db7 seperate handle_epin_dma/slave 2024-11-18 12:39:00 +07:00
hathach
db7670a3bc separate handle out dma and slave
separate edpt_schedule_packets into epout/epin xfer
2024-11-18 11:35:46 +07:00
Chintalagiri Shashank
a780071d20 Add support for STM32H7RSxx 2024-11-16 12:32:26 +05:30
hathach
a68c53fb8e clean up, add typdef for dwc2 type for device 2024-11-14 17:34:14 +07:00
hathach
daef846aa7 rename CFG_TUD_DWC2_DMA to CFG_TUD_DWC2_DMA_ENABLE 2024-11-14 13:26:11 +07:00
hathach
aeae2966a2 hil add stm32f723disco, add test flags for device/host/dual 2024-11-13 13:08:30 +07:00
hathach
57c8c223e5 correctly test dwc2 dma device for s3, disable for p4 (cache issue) and f407 fs (slave only) 2024-11-11 16:42:08 +07:00
hathach
c8d104fb47 fix warnings 2024-11-08 21:55:23 +07:00
hathach
5d00488907 get hcd work esp32p4 but only in slave mode. In DMA channel's HCDMA is increased but data transfer over USB is not correct. 2024-11-08 17:23:43 +07:00
hathach
ab8160a29b hcd work with esp32p4 in slave mode but have issue with DMA mode. In slave it enumerate device but has issue with msc bulk in 2024-11-07 16:37:33 +07:00
hathach
fe79a93594 implement split for slave, got mouse working 2024-11-06 12:09:32 +07:00
hathach
fbc193647a split interrupt work with fs mouse 2024-11-05 16:26:56 +07:00
hathach
372db1e19a implement split transaction, got control working 2024-11-05 10:37:39 +07:00
hathach
29262f3e24 improve port0_enable(), properly configure hcfg and hfir according to port speed. Enable low power UTMI+ phy mode for ls/fs device. 2024-11-04 17:22:25 +07:00
hathach
5d6d905cb0 got interrupt in working with slave 2024-11-02 20:20:27 +07:00
HiFiPhile
56f53a6132 Replace cache clean/invalidate by MPU config. 2024-11-02 12:50:32 +01:00
hathach
a0f75e5b67 fix slave in nak & ack order 2024-11-02 00:20:40 +07:00
hathach
c96e04159e implement periodic endpoint using sof 2024-11-01 21:31:01 +07:00
hathach
4f288c030a move buffer and buflen to hcd_endpoint_t to support periodic endpoint 2024-11-01 20:58:29 +07:00
hathach
b1182de872 clean up is_period 2024-11-01 19:04:32 +07:00