Commit 78d58519 authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Dimitris Papastamos
Browse files

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: default avatarLuca Ceresoli <luca@lucaceresoli.net>
parent e2b717e6
...@@ -356,7 +356,10 @@ enum pm_ret_status pm_get_api_version(unsigned int *version) ...@@ -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) 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);
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment