* [U-Boot] [PATCH 1/2] arm: socfpga: Enable USB driver model support
@ 2015-08-12 20:19 Marek Vasut
2015-08-12 20:19 ` [U-Boot] [PATCH 2/2] arm: socfpga: Zap hardcoded USB address from CV and AV SoCDK Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2015-08-12 20:19 UTC (permalink / raw)
To: u-boot
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
/*
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 2/2] arm: socfpga: Zap hardcoded USB address from CV and AV SoCDK
2015-08-12 20:19 [U-Boot] [PATCH 1/2] arm: socfpga: Enable USB driver model support Marek Vasut
@ 2015-08-12 20:19 ` Marek Vasut
2015-08-12 20:33 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2015-08-12 20:19 UTC (permalink / raw)
To: u-boot
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 */
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 2/2] arm: socfpga: Zap hardcoded USB address from CV and AV SoCDK
2015-08-12 20:19 ` [U-Boot] [PATCH 2/2] arm: socfpga: Zap hardcoded USB address from CV and AV SoCDK Marek Vasut
@ 2015-08-12 20:33 ` Marek Vasut
0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2015-08-12 20:33 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-12 20:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12 20:19 [U-Boot] [PATCH 1/2] arm: socfpga: Enable USB driver model support Marek Vasut
2015-08-12 20:19 ` [U-Boot] [PATCH 2/2] arm: socfpga: Zap hardcoded USB address from CV and AV SoCDK Marek Vasut
2015-08-12 20:33 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox