riscv: set fdtfile on VisionFive 2
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 7 Sep 2023 11:21:28 +0000 (13:21 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 26 Sep 2023 02:43:02 +0000 (10:43 +0800)
commit16dbe3d9d45527f67d479535a22dc4054ae93e99
treeaaee8dd0669563e3d9d2ca9b69a6da5c86035084
parent15155ab0a3d1f839509bcac620bfb38f950bead6
riscv: set fdtfile on VisionFive 2

Multiple revisions of the StarFive VisionFive 2 board exist. They can be
identified by reading their EEPROM.

Linux uses two differently named device-tree files. To load the correct
device-tree we need to set $fdtfile to the device-tree file name that
matches the board revision.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Tested-by: Milan P. Stanić <mps@arvanta.net>
arch/riscv/Kconfig
board/starfive/visionfive2/starfive_visionfive2.c