diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2019-02-28 22:15:35 +0100 |
---|---|---|
committer | Dimitris Papastamos <dimitris.papastamos@arm.com> | 2019-03-08 15:35:30 +0000 |
commit | 78d58519de0e918125fb019b6a882001a6f203aa (patch) | |
tree | 9e868da9791fb75e342ad3361de56f337c8e81ab /plat/xilinx | |
parent | e2b717e6bde966392676a2993c8384b8153b34fc (diff) |
zynqmp: pm: Add support for setting PMU configuration object
Allow EL2 (e.g. U-Boot) to load the configuration object at runtime
into the Xilinx ZynqMP PMU firmware. This allows booting with U-Boot
and U-Boot SPL with PMU FW without hard-coding the configuration
object.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Diffstat (limited to 'plat/xilinx')
-rw-r--r-- | plat/xilinx/zynqmp/pm_service/pm_api_sys.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plat/xilinx/zynqmp/pm_service/pm_api_sys.c b/plat/xilinx/zynqmp/pm_service/pm_api_sys.c index f651880c..e0b9816e 100644 --- a/plat/xilinx/zynqmp/pm_service/pm_api_sys.c +++ b/plat/xilinx/zynqmp/pm_service/pm_api_sys.c @@ -356,7 +356,10 @@ enum pm_ret_status pm_get_api_version(unsigned int *version) */ enum pm_ret_status pm_set_configuration(unsigned int phys_addr) { - return PM_RET_ERROR_NOTSUPPORTED; + uint32_t payload[PAYLOAD_ARG_CNT]; + + PM_PACK_PAYLOAD2(payload, PM_SET_CONFIGURATION, phys_addr); + return pm_ipi_send_sync(primary_proc, payload, NULL, 0); } /** |