]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: board: Add a helper to get the SPL DT name
authorSamuel Holland <samuel@sholland.org>
Sat, 24 Oct 2020 15:21:50 +0000 (10:21 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 17 Nov 2020 00:42:20 +0000 (00:42 +0000)
commit467b7e52ec8920034b0d5ffb23a9ed72cd26bad3
tree1394f89b836075cdc34fb41ea06378a4a2ae2d78
parent2fcd74899c940f5bd474dab0c4f53b5d6e2185b3
sunxi: board: Add a helper to get the SPL DT name

This moves the validity checking and typecasts all to one place away
from the string comparison logic, and it detangles the compile-time
and runtime control flow.

The new helper will also be used by U-Boot proper in a future commit.

Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
[Andre: protect new function with CONFIG_SPL_LOAD_FIT]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
board/sunxi/board.c