]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commita6afd093ab205592eff0290df9031eeac49e7228
treeeb5f09b3ce5e38f5b5dc8efacf23e12744a72447
parent80d4a623eb23062f5b6921ad17cc96c34957c407
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