]> git.sur5r.net Git - u-boot/commit
sunxi: SPL: add FIT config selector for Pine64 boards
authorAndre Przywara <andre.przywara@arm.com>
Wed, 26 Apr 2017 00:32:44 +0000 (01:32 +0100)
committerJagan Teki <jagan@openedev.com>
Wed, 17 May 2017 17:51:46 +0000 (23:21 +0530)
commit9ea3c35a32f1a89a86945e3c541a085df9195701
treeaddf86fcde4af92889fc68d0481c948b37b7be11
parent414eb6fd86762d1689ec906e3c42c1279031efec
sunxi: SPL: add FIT config selector for Pine64 boards

For a board or platform to support FIT loading in the SPL, it has to
provide a board_fit_config_name_match() routine, which helps to select
one of possibly multiple DTBs contained in a FIT image.
Provide a simple function which chooses the DT name U-Boot was
configured with.
If the DT name is one of the two Pine64 versions, determine the exact
model by checking the DRAM size.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@openedev.com>
board/sunxi/board.c