SHA256
1
0
forked from pool/u-boot
u-boot/add_snow_usb_boot.patch

44 lines
1.3 KiB
Diff

diff --git a/include/configs/exynos-common.h b/include/configs/exynos-common.h
index 1f3ee55..4fcb04e 100644
--- a/include/configs/exynos-common.h
+++ b/include/configs/exynos-common.h
@@ -66,6 +66,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_MMC
+#define CONFIG_CMD_USB
#define CONFIG_CMD_EXT4_WRITE
#define CONFIG_FAT_WRITE
#define CONFIG_CMD_FS_GENERIC
diff --git a/include/configs/exynos5-common.h b/include/configs/exynos5-common.h
index 8f9b780..cbba7b2 100644
--- a/include/configs/exynos5-common.h
+++ b/include/configs/exynos5-common.h
@@ -188,6 +188,7 @@
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 1) \
func(MMC, mmc, 0) \
+ func(USB, usb, 0) \
func(PXE, pxe, na) \
func(DHCP, dhcp, na)
diff --git a/include/configs/snow.h b/include/configs/snow.h
index fe802f2..0ebddad 100644
--- a/include/configs/snow.h
+++ b/include/configs/snow.h
@@ -25,8 +25,14 @@
#define CONFIG_BOARD_COMMON
#define CONFIG_ARCH_EARLY_INIT_R
+/* Enable USB2 since first u-boot in eMMC does not support USB3, but only USB2 */
+#define CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_EXYNOS
+
+#ifndef CONFIG_USB_EHCI
#define CONFIG_USB_XHCI
#define CONFIG_USB_XHCI_EXYNOS
+#endif /* CONFIG_USB_EHCI */
#define CONFIG_SYS_PROMPT "snow # "
#define CONFIG_IDENT_STRING " for snow"