From ba078fcabf77e6a94de1e9c91e37a06c02efc04b 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 2e59eee..cbf5a79 100644 --- a/arch/arm/mach-meson/board-g12a.c +++ b/arch/arm/mach-meson/board-g12a.c @@ -36,6 +36,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; @@ -62,6 +63,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 3f9e7c4..a36f9f5 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.7.4