arm: socfpga: Enable USB driver model support
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
@@ -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
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
@@ -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
@@ -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
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.
Signed-off-by Marek Vasut <[email protected]>
Please ignore this particular patch.
Best regards,
Marek Vasut