Skip to contentSkip to conversation

arm: socfpga: Enable USB driver model support

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm: socfpga: Enable USB driver model support

This patch enables the USB DM support, which in turn lets us probe the DWC2 USB from device tree. Thus, we again trim down on the amount of hard-coded stuff.

---
 include/configs/socfpga_common.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/socfpga_common.h +1 -0
index 5ca45a9..67f86f9 100644
@@ -238,6 +238,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
  * USB
  */
 #ifdef CONFIG_CMD_USB
+#define CONFIG_DM_USB
 #define CONFIG_USB_DWC2
 #define CONFIG_USB_STORAGE
 /*
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 arm: socfpga: Zap hardcoded USB address from CV and AV SoCDK

There is no longer any need to hard-code the USB controller address into the board config file, since the address and all other config for the USB controller are now retrieved from device tree.

---
 include/configs/socfpga_arria5.h   | 3 ---
 include/configs/socfpga_cyclone5.h | 3 ---
 2 files changed, 6 deletions(-)
include/configs/socfpga_arria5.h +0 -3
index 3193684..88b3086 100644
@@ -60,9 +60,6 @@
 #endif
 
 /* USB */
-#ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2_REG_ADDR	SOCFPGA_USB1_ADDRESS
-#endif
 #define CONFIG_G_DNL_MANUFACTURER      "Altera"
 
 /* Extra Environment */
include/configs/socfpga_cyclone5.h +0 -3
index 9e733e5..9a67f0f 100644
@@ -60,9 +60,6 @@
 #endif
 
 /* USB */
-#ifdef CONFIG_CMD_USB
-#define CONFIG_USB_DWC2_REG_ADDR	SOCFPGA_USB1_ADDRESS
-#endif
 #define CONFIG_G_DNL_MANUFACTURER      "Altera"
 
 /* Extra Environment */
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 arm: socfpga: Zap hardcoded USB address from CV and AV SoCDK

Quoted 5 lines · Marek Vasut

There is no longer any need to hard-code the USB controller address into the board config file, since the address and all other config for the USB controller are now retrieved from device tree.

Please ignore this particular patch.

Best regards,
Marek Vasut