]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: freescale: lx216x : increase fdt blob size
authorWasim Khan <wasim.khan@nxp.com>
Mon, 20 Sep 2021 13:45:33 +0000 (15:45 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 09:13:24 +0000 (14:43 +0530)
Increase fdt blob size for lx2160 and lx2162 series
to fix below errors/warnings during device tree fixup.

Unable to update property /soc/spi@2100000:status, err=FDT_ERR_NOSPACE
Unable to update property /soc/spi@2110000:status, err=FDT_ERR_NOSPACE
Unable to update property /soc/spi@2120000:status, err=FDT_ERR_NOSPACE
WARNING: could not set reg FDT_ERR_NOSPACE.
WARNING unable to set iommus: FDT_ERR_NOSPACE

Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/lx2160a/lx2160a.c

index bd5abb677ad6bb40701af55100f44bb44f856662..bda665624dcdd2772688c7fe3883e53f563a93d3 100644 (file)
@@ -825,10 +825,18 @@ int ft_board_setup(void *blob, struct bd_info *bd)
        u64 mc_memory_base = 0;
        u64 mc_memory_size = 0;
        u16 total_memory_banks;
+       int err;
 #if CONFIG_IS_ENABLED(TARGET_LX2160ARDB)
        u8 board_rev;
 #endif
 
+       err = fdt_increase_size(blob, 512);
+       if (err) {
+               printf("%s fdt_increase_size: err=%s\n", __func__,
+                      fdt_strerror(err));
+               return err;
+       }
+
        ft_cpu_setup(blob, bd);
 
        fdt_fixup_mc_ddr(&mc_memory_base, &mc_memory_size);