[U-Boot] [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.
Signed-off-by: Marek Vasut marex@denx.de --- include/configs/socfpga_common.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h index 5ca45a9..67f86f9 100644 --- a/include/configs/socfpga_common.h +++ b/include/configs/socfpga_common.h @@ -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 /*

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 marex@denx.de --- include/configs/socfpga_arria5.h | 3 --- include/configs/socfpga_cyclone5.h | 3 --- 2 files changed, 6 deletions(-)
diff --git a/include/configs/socfpga_arria5.h b/include/configs/socfpga_arria5.h index 3193684..88b3086 100644 --- a/include/configs/socfpga_arria5.h +++ b/include/configs/socfpga_arria5.h @@ -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 */ diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h index 9e733e5..9a67f0f 100644 --- a/include/configs/socfpga_cyclone5.h +++ b/include/configs/socfpga_cyclone5.h @@ -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 */

On Wednesday, August 12, 2015 at 10:19:30 PM, Marek Vasut wrote:
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 marex@denx.de
Please ignore this particular patch.
Best regards, Marek Vasut
participants (1)
-
Marek Vasut