Message ID | 20190630160156.51934-3-kettenis@openbsd.org |
---|---|
State | Accepted |
Commit | aaa8d6b1492297821c52bdc5074156a40198f300 |
Delegated to: | Kever Yang |
Headers | show |
Series | rockchip: rk3399: Fix USB3 support | expand |
On 2019/7/1 上午12:01, Mark Kettenis wrote: > Add compatible string for RK3399 and enable it by default on > Rockchip platforms with USB3 support. > > Signed-off-by: Mark Kettenis <kettenis@openbsd.org> > Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Applied to u-boot-rockchip. Thanks, - Kever > --- > drivers/usb/host/Kconfig | 1 + > drivers/usb/host/dwc3-of-simple.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index b1188bcbf5..ac68aa2d27 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -24,6 +24,7 @@ config USB_XHCI_DWC3 > config USB_XHCI_DWC3_OF_SIMPLE > bool "DesignWare USB3 DRD Generic OF Simple Glue Layer" > depends on DM_USB > + default y if ARCH_ROCKCHIP > default y if DRA7XX > help > Support USB2/3 functionality in simple SoC integrations with > diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c > index b118997f6e..45df614b09 100644 > --- a/drivers/usb/host/dwc3-of-simple.c > +++ b/drivers/usb/host/dwc3-of-simple.c > @@ -92,6 +92,7 @@ static int dwc3_of_simple_remove(struct udevice *dev) > > static const struct udevice_id dwc3_of_simple_ids[] = { > { .compatible = "amlogic,meson-gxl-dwc3" }, > + { .compatible = "rockchip,rk3399-dwc3" }, > { .compatible = "ti,dwc3" }, > { } > };
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index b1188bcbf5..ac68aa2d27 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -24,6 +24,7 @@ config USB_XHCI_DWC3 config USB_XHCI_DWC3_OF_SIMPLE bool "DesignWare USB3 DRD Generic OF Simple Glue Layer" depends on DM_USB + default y if ARCH_ROCKCHIP default y if DRA7XX help Support USB2/3 functionality in simple SoC integrations with diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index b118997f6e..45df614b09 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -92,6 +92,7 @@ static int dwc3_of_simple_remove(struct udevice *dev) static const struct udevice_id dwc3_of_simple_ids[] = { { .compatible = "amlogic,meson-gxl-dwc3" }, + { .compatible = "rockchip,rk3399-dwc3" }, { .compatible = "ti,dwc3" }, { } };