fdt: support to skip checking fdt
authorChanho Park <chanho61.park@samsung.com>
Tue, 31 May 2016 05:48:20 +0000 (14:48 +0900)
committerjino.cho <jino.cho@samsung.com>
Mon, 5 Dec 2016 08:00:42 +0000 (17:00 +0900)
This patch is required to skip fdt checking because this
u-boot version does not support OF_EMBED.

Change-Id: Ibb6299fd09ff2df7b7edf5f5cf7f65d1cdb67ee9
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
lib/fdtdec.c

index cc09e06c730d993c06f3cc5798ef02077807d979..070278d09856a08643b2ada7e481d53ea507e2bc 100644 (file)
@@ -316,10 +316,12 @@ int fdtdec_check_fdt(void)
 int fdtdec_prepare_fdt(void)
 {
        if (((uintptr_t)gd->fdt_blob & 3) || fdt_check_header(gd->fdt_blob)) {
+#ifndef CONFIG_OF_SKIP_CHECK
                printf("No valid FDT found - please append one to U-Boot "
                        "binary, use u-boot-dtb.bin or define "
                        "CONFIG_OF_EMBED\n");
                return -1;
+#endif
        }
        return 0;
 }