Message ID | 1523522480-10819-3-git-send-email-jjhiblot@ti.com |
---|---|
State | Accepted |
Commit | cc73ba97c008e96df5799dc37acbb04344fb3ac6 |
Delegated to: | Tom Rini |
Headers | show |
Series | Add support for DM_USB for TI's DRA7 EVMs and AM57 EVMs platforms | expand |
On 04/12/2018 10:41 AM, Jean-Jacques Hiblot wrote: > Add the compatibility with "ti,dwc3" and enable it by default if DM_USB > is enabled. > > Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > 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 6ea9621..3455e81 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 DRA7XX > help > Support USB2/3 functionality in simple SoC integrations with > USB controller based on the DesignWare USB3 IP Core. > diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c > index 54a5f60..abc3928 100644 > --- a/drivers/usb/host/dwc3-of-simple.c > +++ b/drivers/usb/host/dwc3-of-simple.c > @@ -95,6 +95,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 = "ti,dwc3" }, > { } > }; > > Applied to USB , thanks
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 6ea9621..3455e81 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 DRA7XX help Support USB2/3 functionality in simple SoC integrations with USB controller based on the DesignWare USB3 IP Core. diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index 54a5f60..abc3928 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -95,6 +95,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 = "ti,dwc3" }, { } };
Add the compatibility with "ti,dwc3" and enable it by default if DM_USB is enabled. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/usb/host/Kconfig | 1 + drivers/usb/host/dwc3-of-simple.c | 1 + 2 files changed, 2 insertions(+)