uboot: zynqmp: allow to use custom psu_init files
authorLuca Ceresoli <luca@lucaceresoli.net>
Wed, 25 Jul 2018 14:35:38 +0000 (16:35 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 28 Jul 2018 17:27:38 +0000 (19:27 +0200)
commit822c34c301986a91a24e6525df9a13aa8be1ba9c
tree16f31a62441ef022a3cc4ba8fe2fcc674eaf5072
parent86eecc46066fe01cf6c072eb4b90a71526332d7c
uboot: zynqmp: allow to use custom psu_init files

U-Boot SPL configures pinmuxes, clocks and other low-level devices. On
the Xilinx ZynqMP SoCs the code to do this resides in a file called
psu_init_gpl.c which is initially generated by the Xilinx development
tools. Add an option to pass these files from the outside (e.g. in the
board files).

For this to work properly, a patch to U-Boot is needed. However this
patch must be applied by each defconfig using
BR2_TARGET_UBOOT_ZYNQMP_PSU_INIT_DIR. If it were in boot/uboot/ to be
applied unconditionally, it would break the build for configs using a
U-Boot version where the patch is already applied.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Joel Carlson <joelsoncarl@gmail.com>
Reviewed-by: Joel Carlson <JoelsonCarl@gmail.com>
Tested-by: Joel Carlson <JoelsonCarl@gmail.com>
[Thomas: add comment about U-Boot version requirements to use this
option.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
board/zynqmp/patches/uboot/0004-arm-arm64-zynq-zynqmp-pass-the-PS-init-file-as-a-kco.patch [new file with mode: 0644]
boot/uboot/Config.in
boot/uboot/uboot.mk