summaryrefslogtreecommitdiff
path: root/plat/st/stm32mp1/stm32mp1_common.c
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2018-07-24 17:18:19 +0200
committerYann Gautier <yann.gautier@st.com>2018-07-24 17:18:19 +0200
commit10a511ceaa108dd37dbac377d760e4dd784ea28a (patch)
treeb92cdc75458ec3e03af8a8e7d31fc25ce45f0d42 /plat/st/stm32mp1/stm32mp1_common.c
parente4f559ff54e5df54969d35de32cd3975c87fa497 (diff)
stm32mp1: Add DDR support and its security with TZC400
The DDR driver is under dual license, BSD and GPLv2. The configuration parameters are taken from device tree. Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Diffstat (limited to 'plat/st/stm32mp1/stm32mp1_common.c')
-rw-r--r--plat/st/stm32mp1/stm32mp1_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plat/st/stm32mp1/stm32mp1_common.c b/plat/st/stm32mp1/stm32mp1_common.c
index 9f1126b9..e2f90d28 100644
--- a/plat/st/stm32mp1/stm32mp1_common.c
+++ b/plat/st/stm32mp1/stm32mp1_common.c
@@ -36,10 +36,18 @@
MT_SECURE | \
MT_EXECUTE_NEVER)
+#define MAP_DDR MAP_REGION_FLAT(STM32MP1_DDR_BASE, \
+ STM32MP1_DDR_MAX_SIZE, \
+ MT_MEMORY | \
+ MT_RW | \
+ MT_SECURE | \
+ MT_EXECUTE_NEVER)
+
static const mmap_region_t stm32mp1_mmap[] = {
MAP_SRAM,
MAP_DEVICE1,
MAP_DEVICE2,
+ MAP_DDR,
{0}
};