From: Jaehoon Chung Date: Sun, 10 May 2020 22:36:32 +0000 (+0900) Subject: [WIP] meson: board-g12a: add COFNIG_TIZEN about reserved memory X-Git-Tag: accepted/tizen/unified/20231106.171643~279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5badebc3613046c5530e187d978a92f0725073b;p=platform%2Fkernel%2Fu-boot.git [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 --- diff --git a/arch/arm/mach-meson/board-g12a.c b/arch/arm/mach-meson/board-g12a.c index d5a830f..85b5c1d 100644 --- a/arch/arm/mach-meson/board-g12a.c +++ b/arch/arm/mach-meson/board-g12a.c @@ -30,6 +30,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; @@ -56,6 +57,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 */