[U-Boot] [PATCH 1/2] usb: dwc2: Add original Synopsys compat string

Add the Synopsys compatible string. This is used in SoCFPGA DT files.
Signed-off-by: Marek Vasut marex@denx.de --- drivers/usb/host/dwc2.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 09f91f1..7b29134 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -1113,6 +1113,7 @@ struct dm_usb_ops dwc2_usb_ops = {
static const struct udevice_id dwc2_usb_ids[] = { { .compatible = "brcm,bcm2835-usb" }, + { .compatible = "snps,dwc2" }, { } };

This driver is not used only on exynos, but also on Altera SoCFPGA, HiSilicon SoCs, RPi etc, so rename it accordingly to prevent confusion.
Signed-off-by: Marek Vasut marex@denx.de --- drivers/usb/host/dwc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 7b29134..85236ae 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -1118,7 +1118,7 @@ static const struct udevice_id dwc2_usb_ids[] = { };
U_BOOT_DRIVER(usb_dwc2) = { - .name = "dwc2_exynos", + .name = "dwc2_usb", .id = UCLASS_USB, .of_match = dwc2_usb_ids, .ofdata_to_platdata = dwc2_usb_ofdata_to_platdata,

On Wednesday, August 12, 2015 at 10:19:14 PM, Marek Vasut wrote:
Add the Synopsys compatible string. This is used in SoCFPGA DT files.
Signed-off-by: Marek Vasut marex@denx.de
Applied both, thanks.
Best regards, Marek Vasut
participants (1)
-
Marek Vasut