board: starfive: visionfive2: Order board detection logic to match config
authorE Shattow <e@freeshell.de>
Sun, 27 Apr 2025 06:02:52 +0000 (23:02 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 27 Apr 2025 13:52:05 +0000 (07:52 -0600)
commit62ea9c329a0d013993bae538c55dfea06e4551bd
tree5266b59aa1d4626d10b05ed3d1f21d1253be8dd0
parent5a0a93a768487e55ebe50a34cc90d751bf99cc56
board: starfive: visionfive2: Order board detection logic to match config

Fixup previous merge resolution of this series. Intent is to ease code
readability and logic to match ordering in CONFIG_OF_LIST

- Remove "starfive/" string math
- Remove redundant local cache of calls to get_*_from_eeprom()
- Match name before EEPROM product_id in board_fit_config_name_match()
- Remove single-consumer FDTFILE_* defines
- Do not set fdtfile for visionfive-2-* when unknown model revision

Fixes: 5a0a93a76848 ("Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-riscv")

Signed-off-by: E Shattow <e@freeshell.de>
board/starfive/visionfive2/spl.c
board/starfive/visionfive2/starfive_visionfive2.c