]> git.dujemihanovic.xyz Git - u-boot.git/commit
common/board_f: make sure to call fix_fdt() before reserve_fdt()
authorPragnesh Patel <pragnesh.patel@sifive.com>
Thu, 13 Aug 2020 04:42:26 +0000 (10:12 +0530)
committerAndes <uboot@andestech.com>
Fri, 14 Aug 2020 06:39:47 +0000 (14:39 +0800)
commit313981c2d9437f31b2a0f3838591a5fb0e5d8ebe
treeb1e7f289c00fe53b02ee5f11894e4d47a7697f83
parent7c6ca03eaed0035ca6676e9bc7f5f1dfcaae7e8f
common/board_f: make sure to call fix_fdt() before reserve_fdt()

There may be a chance that board specific fix_fdt() will change the
size of FDT blob so it's safe to call reserve_fdt() after fix_fdt()
otherwise global data (gd) will overwrite with FDT blob values.

Fixes: a8492e25ac71 ("riscv: Expand the DT size before copy reserved memory node")
Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
common/board_f.c