sunxi: board.c: refactor SPL header checks
authorAndre Przywara <andre.przywara@arm.com>
Thu, 25 Oct 2018 09:23:04 +0000 (17:23 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 29 Oct 2018 15:11:15 +0000 (20:41 +0530)
commitcff5c138495a4d68fa6e16953517087732b76662
treeeb5f09b3ce5e38f5b5dc8efacf23e12744a72447
parent55d481d2014f79a692ac82a10a439dc71acc732c
sunxi: board.c: refactor SPL header checks

So far we have two users which want to look at the SPL header. We will
get more in the future.
Refactor the existing SPL header checks into a common function, to
simplify reusing the code.
Now that this is easy, add proper version checks to the DT name parsing.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Jagan Teki <jagan@openedev.com>
board/sunxi/board.c