blob: dcc3ea7a1f1b79c94456b5efe1839818dfc693ba [file] [log] [blame]
Patrick Williams8dd68482022-10-04 07:57:18 -05001From 01d1487cebc37834e2a5d259e0417a610539a0f5 Mon Sep 17 00:00:00 2001
Brad Bishopbec4ebc2022-08-03 09:55:16 -04002From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
Patrick Williams8dd68482022-10-04 07:57:18 -05003Date: Thu, 9 Jun 2022 12:47:35 +0100
4Subject: [PATCH 15/26] arm_ffa: corstone1000: enable FF-A and MM support
Brad Bishopbec4ebc2022-08-03 09:55:16 -04005
6This commit allows corstone1000 platform to perform
7MM communication between u-boot and the secure world
8using FF-A transport.
9
10Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
11Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Patrick Williams8dd68482022-10-04 07:57:18 -050012Upstream-Status: Submitted [cover letter: https://lore.kernel.org/all/20220926101723.9965-1-abdellatif.elkhlifi@arm.com/]
Brad Bishopbec4ebc2022-08-03 09:55:16 -040013---
Patrick Williams8dd68482022-10-04 07:57:18 -050014 configs/corstone1000_defconfig | 2 ++
15 include/configs/corstone1000.h | 9 +++++++++
16 2 files changed, 11 insertions(+)
Brad Bishopbec4ebc2022-08-03 09:55:16 -040017
18diff --git a/configs/corstone1000_defconfig b/configs/corstone1000_defconfig
Patrick Williams8dd68482022-10-04 07:57:18 -050019index e573fe6fe6..c299dda49f 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040020--- a/configs/corstone1000_defconfig
21+++ b/configs/corstone1000_defconfig
Patrick Williams8dd68482022-10-04 07:57:18 -050022@@ -44,6 +44,8 @@ CONFIG_USB=y
Brad Bishopbec4ebc2022-08-03 09:55:16 -040023 CONFIG_DM_USB=y
24 CONFIG_USB_ISP1760=y
25 CONFIG_USB_STORAGE=y
26+CONFIG_ARM_FFA_TRANSPORT=y
Patrick Williams8dd68482022-10-04 07:57:18 -050027+CONFIG_ARM_FFA_EFI_RUNTIME_MODE=y
Brad Bishopbec4ebc2022-08-03 09:55:16 -040028 CONFIG_EFI_MM_COMM_TEE=y
29 # CONFIG_OPTEE is not set
30 # CONFIG_GENERATE_SMBIOS_TABLE is not set
31diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h
Patrick Williams8dd68482022-10-04 07:57:18 -050032index 8ba0effb0a..5960c6b4be 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040033--- a/include/configs/corstone1000.h
34+++ b/include/configs/corstone1000.h
Patrick Williams8dd68482022-10-04 07:57:18 -050035@@ -14,6 +14,15 @@
Brad Bishopbec4ebc2022-08-03 09:55:16 -040036
37 #include <linux/sizes.h>
38
Brad Bishopbec4ebc2022-08-03 09:55:16 -040039+#define FFA_SHARED_MM_BUFFER_SIZE SZ_4K /* 4 KB */
40+
41+/*
42+ * shared buffer physical address used for communication between
43+ * u-boot and the MM SP
44+ */
45+#define FFA_SHARED_MM_BUFFER_ADDR (0x023F8000)
Patrick Williams8dd68482022-10-04 07:57:18 -050046+#define FFA_SHARED_MM_BUFFER_OFFSET (0)
Brad Bishopbec4ebc2022-08-03 09:55:16 -040047+
48 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x03f00000)
49 #define CONFIG_SKIP_LOWLEVEL_INIT
50
51--
Patrick Williams8dd68482022-10-04 07:57:18 -0500522.17.1
Brad Bishopbec4ebc2022-08-03 09:55:16 -040053