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>
This commit is contained in:
Luca Ceresoli 2019-02-28 22:15:35 +01:00 committed by Dimitris Papastamos
parent e2b717e6bd
commit 78d58519de
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
/**