Skip to contentSkip to conversation

usb: dwc2: Add original Synopsys compat string

PATCH New Marek Vasut 1 participant 3 messages Aug 12, 2015 – Aug 19, 2015 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 usb: dwc2: Add original Synopsys compat string

Add the Synopsys compatible string. This is used in SoCFPGA DT files.

---
 drivers/usb/host/dwc2.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/host/dwc2.c +1 -0
index 09f91f1..7b29134 100644
@@ -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" },
 	{ }
 };
 
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 usb: dwc2: Rename to dwc2_usb

This driver is not used only on exynos, but also on Altera SoCFPGA, HiSilicon SoCs, RPi etc, so rename it accordingly to prevent confusion.

---
 drivers/usb/host/dwc2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/dwc2.c +1 -1
index 7b29134..85236ae 100644
@@ -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,
Signature · 1 line
2.1.4