From 2907453028b159f118d34ddbec5cbb41bfddb35e Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Mon, 11 May 2020 07:36:32 +0900 Subject: [PATCH] [WIP] meson: board-g12a: add COFNIG_TIZEN about reserved memory Add CONFIG_TIZEN about reserved-memory for secure monitor. - This is for using only Hardkernel's kernel. Signed-off-by: Jaehoon Chung --- arch/arm/mach-meson/board-g12a.c | 2 ++ include/samsung/tizen_amlogic.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/mach-meson/board-g12a.c b/arch/arm/mach-meson/board-g12a.c index 14127ca737..c62323bc8a 100644 --- a/arch/arm/mach-meson/board-g12a.c +++ b/arch/arm/mach-meson/board-g12a.c @@ -35,6 +35,7 @@ int meson_get_boot_device(void) */ void meson_init_reserved_memory(void *fdt) { +#ifndef CONFIG_TIZEN u64 bl31_size, bl31_start; u64 bl32_size, bl32_start; u32 reg; @@ -61,6 +62,7 @@ void meson_init_reserved_memory(void *fdt) /* Add BL32 reserved zone */ if (bl32_start && bl32_size) meson_board_add_reserved_memory(fdt, bl32_start, bl32_size); +#endif #if defined(CONFIG_VIDEO_MESON) meson_vpu_rsv_fb(fdt); diff --git a/include/samsung/tizen_amlogic.h b/include/samsung/tizen_amlogic.h index 3f9e7c464e..a36f9f5f94 100644 --- a/include/samsung/tizen_amlogic.h +++ b/include/samsung/tizen_amlogic.h @@ -65,4 +65,6 @@ #undef CONFIG_SYS_PROMPT #define CONFIG_SYS_PROMPT "Odroid N2> " +#define CONFIG_TIZEN + #endif /* __CONFIG_TIZEN_AMLOGIC_H */ -- 2.34.1