]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: board: Simplify Pine A64 DT selection logic
authorSamuel Holland <samuel@sholland.org>
Sat, 24 Oct 2020 15:21:51 +0000 (10:21 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 17 Nov 2020 00:42:20 +0000 (00:42 +0000)
commit54ac5aa17461b404ff514c0276c05693069937b6
tree73eb7ea1ef1df22e10b37a594a15ab378515a1fc
parent467b7e52ec8920034b0d5ffb23a9ed72cd26bad3
sunxi: board: Simplify Pine A64 DT selection logic

Instead of using an entirely separate matching algorithm, simply update
the name of the DT we want to match. Enabling this logic does not depend
on the FIT config name, only on the initial guess of the board name.

Importantly, the initial guess must be "sun50i-a64-pine64-plus", because
otherwise the logic would trigger when "sun50i-a64-pine64-lts" was
written to the SPL header.

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>
board/sunxi/board.c