arm-trusted-firmware/plat/allwinner/common
Andre Przywara 4153893055 allwinner: Find DTB in BL33 image
The initial PMIC setup for the Allwinner platform is quite board
specific, and used to be guarded by reading the .dtb stub *name* from the
SPL image in the legacy ATF port. This doesn't scale particularly well,
and requires constant maintainance.
Instead having the actual .dtb available would be much better, as the PMIC
setup requirements could be read from there directly.
The only available BL33 for Allwinner platforms so far is U-Boot, and
fortunately U-Boot comes with the full featured .dtb, appended to the
end of the U-Boot image.

Introduce some code that scans the beginning of the BL33 image to look
for the load address, which is followed by the image size. Adding those
two values together gives us the end of the image and thus the .dtb
address. Verify that this heuristic is valid by sanitising some values
and checking the DTB magic.

Print out the DTB address and the model name, if specified in the root
node.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2018-10-20 16:23:59 +01:00
..
include allwinner: Find DTB in BL33 image 2018-10-20 16:23:59 +01:00
allwinner-common.mk allwinner: Find DTB in BL33 image 2018-10-20 16:23:59 +01:00
plat_helpers.S allwinner: Introduce basic platform support 2018-06-15 11:45:24 +01:00
sunxi_bl31_setup.c allwinner: Find DTB in BL33 image 2018-10-20 16:23:59 +01:00
sunxi_common.c allwinner: H6: Factor out I2C platform setup 2018-10-20 16:23:59 +01:00
sunxi_cpu_ops.c allwinner: Export sunxi_private.h 2018-10-20 16:23:59 +01:00
sunxi_pm.c allwinner: Export sunxi_private.h 2018-10-20 16:23:59 +01:00
sunxi_security.c allwinner: Export sunxi_private.h 2018-10-20 16:23:59 +01:00
sunxi_topology.c allwinner: Introduce basic platform support 2018-06-15 11:45:24 +01:00