blob: 6ebba568f9b4f6673d56d03492cb0530cf151934 [file] [log] [blame]
Patrick Williams8dd68482022-10-04 07:57:18 -05001From 8717357eff3f4172c74f0b10078c31cdff9bcc41 Mon Sep 17 00:00:00 2001
Brad Bishopbec4ebc2022-08-03 09:55:16 -04002From: Rui Miguel Silva <rui.silva@linaro.org>
3Date: Thu, 3 Mar 2022 16:52:02 +0000
Patrick Williams8dd68482022-10-04 07:57:18 -05004Subject: [PATCH 05/26] corstone1000: enable isp1763 usb controller
Brad Bishopbec4ebc2022-08-03 09:55:16 -04005
6MPS3 board have a ISP1763 usb controller, add the
7correspondent mmio area and enable it to be used for mass
8storage access for example.
9
10Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Patrick Williams8dd68482022-10-04 07:57:18 -050011Upstream-Status: Accepted [2022.10-rc1]
Brad Bishopbec4ebc2022-08-03 09:55:16 -040012---
13 configs/corstone1000_defconfig | 1 +
14 include/configs/corstone1000.h | 6 ++++++
15 2 files changed, 7 insertions(+)
16
17diff --git a/configs/corstone1000_defconfig b/configs/corstone1000_defconfig
Patrick Williams8dd68482022-10-04 07:57:18 -050018index 02f931b0d4..e573fe6fe6 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040019--- a/configs/corstone1000_defconfig
20+++ b/configs/corstone1000_defconfig
21@@ -42,6 +42,7 @@ CONFIG_REGMAP=y
22 CONFIG_DM_SERIAL=y
23 CONFIG_USB=y
24 CONFIG_DM_USB=y
25+CONFIG_USB_ISP1760=y
26 CONFIG_USB_STORAGE=y
27 CONFIG_EFI_MM_COMM_TEE=y
28 # CONFIG_OPTEE is not set
29diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h
Patrick Williams8dd68482022-10-04 07:57:18 -050030index cf166f107e..8ba0effb0a 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040031--- a/include/configs/corstone1000.h
32+++ b/include/configs/corstone1000.h
33@@ -55,7 +55,13 @@
34 #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
35 #define CONFIG_SYS_MAXARGS 64 /* max command args */
36
37+#define BOOT_TARGET_DEVICES(func) \
38+ func(USB, usb, 0)
39+
40+#include <config_distro_bootcmd.h>
41+
42 #define CONFIG_EXTRA_ENV_SETTINGS \
43+ BOOTENV \
44 "usb_pgood_delay=250\0" \
45 "boot_bank_flag=0x08002000\0" \
46 "kernel_addr_bank_0=0x083EE000\0" \
47--
Patrick Williams8dd68482022-10-04 07:57:18 -0500482.17.1
Brad Bishopbec4ebc2022-08-03 09:55:16 -040049