summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2018-09-05 11:56:07 +0100
committerStefano Babic <sbabic@denx.de>2018-10-22 14:37:28 +0200
commita612e25e13d35656630440a191ddd851319737ff (patch)
treed91cf651f44011f1d60567003ae9478dfabe10e7 /include/configs
parentc7b3a7ee53512380a80a029e8a993ff470ff5b61 (diff)
warp7: include: configs: set skip low level init
If we have defined the OPTEE ram size and not OPTEE means that we are in the case where OPTEE is loaded already (maybe by ARM Trusted Firmware) and that most of the low level initialization is already done and that we may/should skip it doing them here. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: u-boot@lists.denx.de
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/warp7.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/warp7.h b/include/configs/warp7.h
index 1b656a5aaf6..a391dfb5c10 100644
--- a/include/configs/warp7.h
+++ b/include/configs/warp7.h
@@ -13,6 +13,17 @@
#define PHYS_SDRAM_SIZE SZ_512M
+/*
+ * If we have defined the OPTEE ram size and not OPTEE it means that we were
+ * launched by OPTEE, because of that we shall skip all the low level
+ * initialization since it was already done by ATF or OPTEE
+ */
+#ifdef CONFIG_OPTEE_TZDRAM_SIZE
+#ifndef CONFIG_OPTEE
+#define CONFIG_SKIP_LOWLEVEL_INIT
+#endif
+#endif
+
#define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
/* Size of malloc() pool */