uboot: zynqmp: Support loading a PMU config
authorBrandon Maier <brandon.maier@rockwellcollins.com>
Fri, 26 Jun 2020 15:59:56 +0000 (10:59 -0500)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 27 Jun 2020 17:23:18 +0000 (19:23 +0200)
commit16a522b5e0e983d42f602d4fadb2934409b83374
treeeeb6d684d0264b724c38995dbeb80fd9d629c22d
parent408bc354a9c14b3940938cfb7a3e3eefa81641a5
uboot: zynqmp: Support loading a PMU config

Before now, U-Boot SPL could only load the Platform Management Unit
(PMU) by patching the board-specific pm_cfg_obj.c file into the generic
PMU firmware, but that then requires generating a new PMU firmware for
every board configuration. To fix that, Luca Ceresoli added support to
U-Boot to load the pm_cfg_obj[1].

Like the PMU firmware, we need a way to pass the PMU cfg to U-Boot
during build. U-Boot only accepts the binary format of the cfg, so we
must convert the source file with the tool provided with U-Boot.

[1] https://lucaceresoli.net/zynqmp-uboot-spl-pmufw-cfg-load/

Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
boot/uboot/Config.in
boot/uboot/uboot.mk