Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame^] | 1 | From b7fb62e512e00a5fdbb4321bb0b4109261518481 Mon Sep 17 00:00:00 2001 |
| 2 | From: Rui Miguel Silva <rui.silva@linaro.org> |
| 3 | Date: Thu, 3 Mar 2022 16:52:02 +0000 |
| 4 | Subject: [PATCH 05/27] corstone1000: enable isp1763 usb controller |
| 5 | |
| 6 | MPS3 board have a ISP1763 usb controller, add the |
| 7 | correspondent mmio area and enable it to be used for mass |
| 8 | storage access for example. |
| 9 | |
| 10 | Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> |
| 11 | --- |
| 12 | configs/corstone1000_defconfig | 1 + |
| 13 | include/configs/corstone1000.h | 6 ++++++ |
| 14 | 2 files changed, 7 insertions(+) |
| 15 | |
| 16 | diff --git a/configs/corstone1000_defconfig b/configs/corstone1000_defconfig |
| 17 | index 02f931b0d469..e573fe6fe6a2 100644 |
| 18 | --- a/configs/corstone1000_defconfig |
| 19 | +++ b/configs/corstone1000_defconfig |
| 20 | @@ -42,6 +42,7 @@ CONFIG_REGMAP=y |
| 21 | CONFIG_DM_SERIAL=y |
| 22 | CONFIG_USB=y |
| 23 | CONFIG_DM_USB=y |
| 24 | +CONFIG_USB_ISP1760=y |
| 25 | CONFIG_USB_STORAGE=y |
| 26 | CONFIG_EFI_MM_COMM_TEE=y |
| 27 | # CONFIG_OPTEE is not set |
| 28 | diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h |
| 29 | index cf166f107efd..8ba0effb0ab2 100644 |
| 30 | --- a/include/configs/corstone1000.h |
| 31 | +++ b/include/configs/corstone1000.h |
| 32 | @@ -55,7 +55,13 @@ |
| 33 | #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ |
| 34 | #define CONFIG_SYS_MAXARGS 64 /* max command args */ |
| 35 | |
| 36 | +#define BOOT_TARGET_DEVICES(func) \ |
| 37 | + func(USB, usb, 0) |
| 38 | + |
| 39 | +#include <config_distro_bootcmd.h> |
| 40 | + |
| 41 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 42 | + BOOTENV \ |
| 43 | "usb_pgood_delay=250\0" \ |
| 44 | "boot_bank_flag=0x08002000\0" \ |
| 45 | "kernel_addr_bank_0=0x083EE000\0" \ |
| 46 | -- |
| 47 | 2.30.2 |
| 48 | |