]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: meson: board-g12a: Setup VPU in fdt
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 30 Aug 2019 12:09:26 +0000 (14:09 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 18 Oct 2019 09:48:29 +0000 (11:48 +0200)
If VIDEO_MESON is enabled, we need to setup the fdt for the framebuffer.

Call meson_vpu_rsv_fb() which reserves the framebuffer memory region for
EFI, and sets up simple-framebuffer nodes if simplefb support is
enabled.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
arch/arm/mach-meson/board-g12a.c

index 546b9f60392dc11ecb86a86dadc8a37ae127b742..24786df6cdd1142f985b7fc2dad1e01ae5ea9f95 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/arch/eth.h>
 #include <asm/arch/g12a.h>
 #include <asm/arch/mem.h>
+#include <asm/arch/meson-vpu.h>
 #include <asm/io.h>
 #include <asm/armv8/mmu.h>
 #include <linux/sizes.h>
@@ -57,6 +58,10 @@ 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);
+
+#if defined(CONFIG_VIDEO_MESON)
+       meson_vpu_rsv_fb(fdt);
+#endif
 }
 
 phys_size_t get_effective_memsize(void)