MLK-22045-3 cdns3: Add cdns3_generic_peripheral DM gadget driver
authorSherry Sun <sherry.sun@nxp.com>
Wed, 19 Jun 2019 20:44:15 +0000 (16:44 -0400)
committerSherry Sun <sherry.sun@nxp.com>
Thu, 27 Jun 2019 18:55:38 +0000 (14:55 -0400)
commit29fb70a91c67bba4d3218598dbeef9e17045bd36
tree0b6ec94d09cfe30592a246df6f68ff67508370b9
parent22b59b69af0bfc0a2aeff9a995252d58c77c3955
MLK-22045-3 cdns3: Add cdns3_generic_peripheral DM gadget driver

Add cdns3_generic_peripheral DM gadget driver for i.MX8QM and QXP.

The driver flag is set to CONFIG_DM_USB_GADGET and
CONFIG_SPL_DM_USB_GADGET while using SPL, and the driver is belong to
UCLASS_USB_GADGET_GENERIC uclass.

For the DM gadget driver, it will parse the reg, clocks and usbphy
properties from node in DTS. So the power and clks of cdns3 controller
and cdns3 phy will be both enabled in DM gadget driver.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
drivers/usb/cdns3/Makefile
drivers/usb/cdns3/cdns3-generic.c [new file with mode: 0644]
drivers/usb/cdns3/core.c
drivers/usb/cdns3/core.h
drivers/usb/cdns3/gadget.c
drivers/usb/cdns3/gadget.h