[WIP] meson: board-g12a: add COFNIG_TIZEN about reserved memory
authorJaehoon Chung <jh80.chung@samsung.com>
Sun, 10 May 2020 22:36:32 +0000 (07:36 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:37:12 +0000 (11:37 +0100)
Add CONFIG_TIZEN about reserved-memory for secure monitor.
- This is for using only Hardkernel's kernel.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/arm/mach-meson/board-g12a.c
include/samsung/tizen_amlogic.h

index 14127ca..c62323b 100644 (file)
@@ -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);
index 3f9e7c4..a36f9f5 100644 (file)
@@ -65,4 +65,6 @@
 #undef CONFIG_SYS_PROMPT
 #define CONFIG_SYS_PROMPT      "Odroid N2> "
 
+#define CONFIG_TIZEN
+
 #endif /* __CONFIG_TIZEN_AMLOGIC_H */