sunxi: use SPL header DT name for FIT board matching
authorAndre Przywara <andre.przywara@arm.com>
Wed, 26 Apr 2017 00:32:50 +0000 (01:32 +0100)
committerJagan Teki <jagan@openedev.com>
Wed, 17 May 2017 17:54:13 +0000 (23:24 +0530)
commit54254ba78aeb807b8eae9668b9312d8809dbf640
tree5207db2df07a28a7d1ce4f5a83e7fe53a061cbc8
parent7f0ef5a945a0a9cef773c2b05b157d2fef3ea7ad
sunxi: use SPL header DT name for FIT board matching

Now that we can store a DT name in the SPL header, use this string (if
available) when finding the right DT blob to load for U-Boot proper.
This allows a generic U-Boot (proper) image to be combined with a bunch
of supported DTs, with just the SPL (possibly only that string) to be
different.
Eventually this string can be written after the build process by some
firmware update tool.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
board/sunxi/board.c