From 8c18f98f8fad688c15627655ff9e724dd300767b Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 10 Nov 2017 12:52:49 +0800 Subject: [PATCH] MLK-16753-3 imx: reserve the high 32M To i.MX6/7, the high 32M is reserved for OP-TEE case. Signed-off-by: Peng Fan --- include/configs/mx6_common.h | 4 ++++ include/configs/mx7_common.h | 3 +++ include/configs/mx7ulp_evk.h | 3 +++ 3 files changed, 10 insertions(+) diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h index 532490a1e2..9fe60abfe9 100644 --- a/include/configs/mx6_common.h +++ b/include/configs/mx6_common.h @@ -123,4 +123,8 @@ defined(CONFIG_MX6DL)) && !defined(CONFIG_MX6S) #ifndef CONFIG_MX6SLL #define CONFIG_LDO_BYPASS_CHECK #endif + +#ifdef CONFIG_IMX_OPTEE +#define CONFIG_SYS_MEM_TOP_HIDE SZ_32M +#endif #endif diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h index c90c5d247c..970c6d91da 100644 --- a/include/configs/mx7_common.h +++ b/include/configs/mx7_common.h @@ -74,4 +74,7 @@ #define CONFIG_CMD_DEKBLOB #endif +#ifdef CONFIG_IMX_OPTEE +#define CONFIG_SYS_MEM_TOP_HIDE SZ_32M +#endif #endif diff --git a/include/configs/mx7ulp_evk.h b/include/configs/mx7ulp_evk.h index 5ff06e9e17..d1bd530b68 100644 --- a/include/configs/mx7ulp_evk.h +++ b/include/configs/mx7ulp_evk.h @@ -252,4 +252,7 @@ #include "mx7ulp_evk_android.h" #endif +#ifdef CONFIG_IMX_OPTEE +#define CONFIG_SYS_MEM_TOP_HIDE SZ_32M +#endif #endif /* __CONFIG_H */ -- 2.17.1