[PATCH v3 3/3] corstone1000: enable isp1763 usb controller and mmc

Rui Miguel Silva rui.silva at linaro.org
Wed May 25 15:22:51 CEST 2022


MPS3 board have a ISP1763 usb controller, enable it to be used
for mass storage access for example. Enable the usb command
also and for the FVP support for mass storage enable the mmc
command.

Signed-off-by: Rui Miguel Silva <rui.silva at linaro.org>
---
 configs/corstone1000_defconfig | 3 +++
 include/configs/corstone1000.h | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/configs/corstone1000_defconfig b/configs/corstone1000_defconfig
index 4f6082770f89..d6c0dc4c5641 100644
--- a/configs/corstone1000_defconfig
+++ b/configs/corstone1000_defconfig
@@ -23,6 +23,8 @@ CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_XIMG is not set
 CONFIG_CMD_LOADM=y
 # CONFIG_CMD_LOADS is not set
+CONFIG_CMD_MMC=y
+CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 # CONFIG_CMD_NFS is not set
 CONFIG_CMD_CACHE=y
@@ -45,4 +47,5 @@ CONFIG_DM_RTC=y
 CONFIG_RTC_EMULATION=y
 CONFIG_DM_SERIAL=y
 CONFIG_USB=y
+CONFIG_USB_ISP1760=y
 CONFIG_ERRNO_STR=y
diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h
index 6bc0fc976018..ff327f59483f 100644
--- a/include/configs/corstone1000.h
+++ b/include/configs/corstone1000.h
@@ -35,7 +35,13 @@
 #define CONFIG_SYS_CBSIZE	512	/* Console I/O Buffer Size */
 #define CONFIG_SYS_MAXARGS	64	/* max command args */
 
+#define BOOT_TARGET_DEVICES(func) \
+	func(USB, usb, 0)
+
+#include <config_distro_bootcmd.h>
+
 #define CONFIG_EXTRA_ENV_SETTINGS							\
+				BOOTENV							\
 				"usb_pgood_delay=250\0"					\
 				"boot_bank_flag=0x08002000\0"				\
 				"kernel_addr_bank_0=0x083EE000\0"			\
-- 
2.36.1



More information about the U-Boot mailing list