OF_BOARD allows to choose the internal device tree in runtime. Use it to
pass the external FDT as an internal one if it is not present. This
approach is also used by qcom-phone, and it reduces boot image size. It
is expected that an external FDT is present as U-Boot is packaged as an
Android boot image.
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
return 0;
}
+int board_fdt_blob_setup(void **fdtp)
+{
+ /* If internal FDT is not available, use the external FDT instead. */
+ if (fdt_check_header(*fdtp))
+ *fdtp = (void *)get_prev_bl_fdt_addr();
+
+ return 0;
+}
+
int timer_init(void)
{
ofnode timer_node;
CONFIG_CMD_FS_GENERIC=y
CONFIG_EFI_PARTITION=y
CONFIG_OF_UPSTREAM=y
+CONFIG_OF_BOARD=y
CONFIG_BUTTON=y
CONFIG_BUTTON_REMAP_PHONE_KEYS=y
CONFIG_CLK_EXYNOS7870=y