Skip to content

Update/dwc3 restructure v0.19.0 - #2

Open
MuhammedZamroodh wants to merge 17 commits into
v0.19.0from
update/dwc3_restructure_v0.19.0
Open

MuhammedZamroodh wants to merge 17 commits into
v0.19.0from
update/dwc3_restructure_v0.19.0

Conversation

@MuhammedZamroodh

Copy link
Copy Markdown
Collaborator

Moving the DWC3/2 implementation inside the TinyUSB stack
Adding support for multiple HCD peripherals

 * 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>
Comment thread apps/usb_main.c

/* Host controllers in this build, set by hw/bsp/socfpga/family.cmake (SOCFPGA_HCD) */
#ifndef SOCFPGA_HCD_DWC2
#define SOCFPGA_HCD_DWC2 1

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Comment thread apps/usb_main.c

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ?

Comment thread apps/msc_app.c

#define MSC_BLOCK_SIZE (512)

void hcd_device_close(uint8_t rhport, uint8_t dev_addr);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants