Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/cdns: Add the cadence USB3 otg driver
- Loading branch information
1 parent
c54b707
commit bf965ce
Showing
15 changed files
with
966 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef INCLUDE_DRIVERS_USB_CDNS3_UDC_CORE_H | ||
#define INCLUDE_DRIVERS_USB_CDNS3_UDC_CORE_H | ||
|
||
#include <stdint.h> | ||
#include <drivers/usb/usbd.h> | ||
|
||
int cdns3_udc_core_init(void); | ||
int cdns3_udc_core_stop(void); | ||
int cdns3_udc_core_xfer_zlp(usb_ep_t ep); | ||
int cdns3_udc_core_set_address(uint16_t addr); | ||
int cdns3_udc_core_configure_ep(usb_ep_t ep, enum usb_ep_type ep_type, size_t pkt_sz); | ||
int cdns3_udc_core_poll_setup_pkt(struct usb_setup_packet *pkt); | ||
void cdns3_udc_core_xfer_cancel(usb_ep_t ep); | ||
int cdns3_udc_core_xfer_complete(usb_ep_t ep); | ||
int cdns3_udc_core_xfer_start(usb_ep_t ep, void *buf, size_t length); | ||
void cdns3_udc_core_set_base(uintptr_t base_); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef INCLUDE_DRIVERS_USB_IMX_CDNS3_UDC_H | ||
#define INCLUDE_DRIVERS_USB_IMX_CDNS3_UDC_H | ||
|
||
#include <stdint.h> | ||
|
||
struct imx_cdns3_udc_config { | ||
uintptr_t base; | ||
uintptr_t non_core_base; | ||
uintptr_t phy_base; | ||
}; | ||
|
||
int imx_cdns3_udc_init(const struct imx_cdns3_udc_config *cfg); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef INCLUDE_DRIVERS_USB_IMX_SALVO_PHY_H | ||
#define INCLUDE_DRIVERS_USB_IMX_SALVO_PHY_H | ||
|
||
#include <stdint.h> | ||
|
||
int imx_salvo_phy_init(uintptr_t base); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.