blob: 1dfc19b1c6d3c0e5bf6a410327c686d080897875 [file] [log] [blame]
Andrew Geisslerea144b032023-01-27 16:03:57 -06001From 46cadb787a3b13da39419706fae7d1ba703f4b68 Mon Sep 17 00:00:00 2001
2From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
3Date: Fri, 23 Sep 2022 15:17:21 +0100
4Subject: [PATCH 10/25] arm_ffa: efi: corstone1000: enable MM communication
5
6turn on EFI MM communication
7
8On corstone1000 platform MM communication between u-boot
9and the secure world (Optee) is done using the FF-A bus.
10
11Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
12Cc: Tom Rini <trini@konsulko.com>
13Cc: Simon Glass <sjg@chromium.org>
14Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
15Cc: Jens Wiklander <jens.wiklander@linaro.org>
16Upstream-Status: Submitted [cover letter: https://lore.kernel.org/all/20221122131751.22747-1-abdellatif.elkhlifi@arm.com/]
17
18Changelog:
19===============
20
21v8:
22
23* drop OP-TEE configs from Corstone-1000 defconfig
24
25v7:
26
27* improve the definition of FFA_SHARED_MM_BUFFER_ADDR and
28 FFA_SHARED_MM_BUFFER_OFFSET
29* update FFA_SHARED_MM_BUFFER_ADDR value
30
31v6:
32
33* corstone-1000: enable optee driver
34* corstone-1000: remove CONFIG_ARM_FFA_EFI_RUNTIME_MODE from the defconfig
35
36v4:
37
38* corstone-1000: turn on EFI MM communication
39---
40 configs/corstone1000_defconfig | 2 ++
41 include/configs/corstone1000.h | 9 +++++++++
42 2 files changed, 11 insertions(+)
43
44diff --git a/configs/corstone1000_defconfig b/configs/corstone1000_defconfig
45index ed2e0fe70a..c26f99e7e5 100644
46--- a/configs/corstone1000_defconfig
47+++ b/configs/corstone1000_defconfig
48@@ -52,3 +52,5 @@ CONFIG_DM_SERIAL=y
49 CONFIG_USB=y
50 CONFIG_USB_ISP1760=y
51 CONFIG_ERRNO_STR=y
52+CONFIG_EFI_MM_COMM_TEE=y
53+CONFIG_ARM_FFA_TRANSPORT=y
54diff --git a/include/configs/corstone1000.h b/include/configs/corstone1000.h
55index 8e0230c135..0362d29ac2 100644
56--- a/include/configs/corstone1000.h
57+++ b/include/configs/corstone1000.h
58@@ -14,6 +14,15 @@
59
60 #include <linux/sizes.h>
61
62+#define FFA_SHARED_MM_BUFFER_SIZE SZ_4K /* 4 KB */
63+
64+/*
65+ * shared buffer physical address used for communication between
66+ * u-boot and the MM SP
67+ */
68+#define FFA_SHARED_MM_BUFFER_ADDR 0x02000000UL
69+#define FFA_SHARED_MM_BUFFER_OFFSET 0
70+
71 #define V2M_BASE 0x80000000
72
73 #define CONFIG_PL011_CLOCK 50000000
74--
752.17.1
76