aboutsummaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-10-11 09:52:50 +0200
committerPatrice Chotard <patrice.chotard@foss.st.com>2021-11-10 17:07:31 +0100
commitf42045b2e75036330741c3fd3a1b5ca64867aaa0 (patch)
treea227d4c2c942ff3cf531fd919cd2ec5df93ee203 /include/configs
parent17aeb589fa9ddb70acaef069732746c4d8fb4021 (diff)
downloadu-boot-f42045b2e75036330741c3fd3a1b5ca64867aaa0.zip
u-boot-f42045b2e75036330741c3fd3a1b5ca64867aaa0.tar.gz
u-boot-f42045b2e75036330741c3fd3a1b5ca64867aaa0.tar.bz2
stm32mp15: replace CONFIG_TFABOOT when it is possible
In some part of STM32MP15 support the CONFIG_TFABOOT can be replaced by other config: CONFIG_ARMV7_PSCI and CONFIG_ARM_SMCCC. This patch also simplifies the code in cpu.c, stm32mp1_ram.c and clk_stml32mp1.c as execution of U-Boot in sysram (boot without SPL and without TFA) is not supported: the associated initialization code is present only in SPL. This cleanup patch is a preliminary step to support SPL load of OP-TEE in secure world, with SPL in secure world and U-Boot in no-secure world. Reported-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/stm32mp15_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/configs/stm32mp15_common.h b/include/configs/stm32mp15_common.h
index 46a92a0..4e2cabf 100644
--- a/include/configs/stm32mp15_common.h
+++ b/include/configs/stm32mp15_common.h
@@ -10,7 +10,7 @@
#include <linux/sizes.h>
#include <asm/arch/stm32.h>
-#ifndef CONFIG_TFABOOT
+#ifdef CONFIG_ARMV7_PSCI
/* PSCI support */
#define CONFIG_ARMV7_SECURE_BASE STM32_SYSRAM_BASE
#define CONFIG_ARMV7_SECURE_MAX_SIZE STM32_SYSRAM_SIZE