]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: do not set default fdt for VisionFive 2
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 2 Apr 2024 08:49:07 +0000 (10:49 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 9 Apr 2024 03:30:37 +0000 (11:30 +0800)
commit0f6310c7ffc6b11d57ec0fab33a04fd1a229e20e
tree41e0f0628b0806b465a2ea9646c23dd244b5b64f
parent0ba23d3daf950930d802369f32672af17458b718
riscv: do not set default fdt for VisionFive 2

Currently in set_fdtfile() we set the value of environment variable fdtfile
unconditionally. The implies that a value in the environment will be
ignored.

With the patch environment variable fdtfile will only be set if it does not
yet exist. This requires that CONFIG_DEFAULT_FDT_FILE is not set.

Now the user can either set and save fdtfile interactively or in the U-Boot
configuration to overrule the device-tree name chosen based on the
hardware in set_fdtfile().

Reported-by: E Shattow <lucent@gmail.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
board/starfive/visionfive2/starfive_visionfive2.c
configs/starfive_visionfive2_defconfig
doc/board/starfive/visionfive2.rst