1
0
Fork 0
Commit Graph

3 Commits (redonkable)

Author SHA1 Message Date
Peter Chen d7326a7d62 MLK-17062 usb: cdns3: gadget: add test mode support for USB2
Add USB2 device test mode support for CDNS3 IP

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit 1c43fc49a38a1d9996f195b4c2e4301562b49386)
2019-11-25 15:55:44 +08:00
Peter Chen f48063ca20 MLK-16221-4 usb: cdns3: gadget: disable device mode when the gadget is stopped
After USB_CONF.DEVDS is set, the device mode will be disabled, and the
host will set the disconnection, this bit is just like DP pullup bit
at USB2.

And we add disable/enable device mode logic at .pullup function for
UDC core.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit 5847b6c6e62d9c8a11dd49305c1186c2abe9ccd9)
2019-11-25 15:55:35 +08:00
Peter Chen 2c6ecd731b MLK-16065-7 usb: cdns3: add Cadence USB3 controller driver
Add Cadence USB3 IP driver, this is the 1st version for this driver,
so wrapper layer and PHY layer are still IP core file (core.c).
Below functions are supported:

- Basic host function
- Limited gadget function, only ACM (old g_seiral) are supported, and
mass_storage support is not very well.
- Role switch between host and device through extcon design
(Eg, Type-C application NXP PTN5150).

Below functions are missing:
- Multi-queue support at gadget function, without this feature, many
gadget function are missing.
- Low power mode support, including system PM and runtime PM
- Wakeup support

Signed-off-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit ef808bfac1ca34311d5dd49e847b5e45a69e75ee)
2019-11-25 15:55:32 +08:00