Repository navigation
Update/dwc3 restructure v0.19.0 - #2
MuhammedZamroodh wants to merge 17 commits into
Conversation
* Support for DWC3 controller with xHCI host mode support Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
* remove dwc3.c and ll.c and move the content to hcd_dwc3.c Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
* portable layer is moved to synopsys and xHCI layers Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
* Use xhci bitfield structures from xhci_type.h to make it compatible with tinyusb Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
* Replace board specific log macros and cache APIs with tinyusb apis Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
|
|
||
| /* Host controllers in this build, set by hw/bsp/socfpga/family.cmake (SOCFPGA_HCD) */ | ||
| #ifndef SOCFPGA_HCD_DWC2 | ||
| #define SOCFPGA_HCD_DWC2 1 |
There was a problem hiding this comment.
We need either DWC2 , DWC3 or both defined, Lets error if that is not the case
Rather than defining if not set, let logically setup macro errors here (#error)
There was a problem hiding this comment.
Does this file make sense in TinyUSB (if we are trying to mainline this)
This should be along side the apps, right?
|
|
||
| #include "host/hcd.h" | ||
| #include "common/tusb_private.h" | ||
|
|
There was a problem hiding this comment.
What can be done to make this generic, not bounded to Agilex devices
Even the comments above points towards the agilex devicec
If makes sense, can we move this logic to be applications burden ?
|
|
||
| #define MSC_BLOCK_SIZE (512) | ||
|
|
||
| void hcd_device_close(uint8_t rhport, uint8_t dev_addr); |
There was a problem hiding this comment.
why not include "host/hcd.h" ?
Then we need not have this prototype redefined here
* Consolidate the interrupt handling implementation by moving the contents of xhci_interrupt.c into xhci.c. Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
| return true; | ||
| } | ||
|
|
||
| #if 0 |
There was a problem hiding this comment.
Remove if not needed
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
* samlple freertos application for msc Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Signed-off-by: Sourav Raj K K <sourav.raj@ignitarium.com>
Moving the DWC3/2 implementation inside the TinyUSB stack
Adding support for multiple HCD peripherals