Skip to content

Commit

Permalink
zynqmp: pm: Add support for setting PMU configuration object
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lucaceresoli authored and Dimitris Papastamos committed Mar 8, 2019
1 parent e2b717e commit 78d5851
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plat/xilinx/zynqmp/pm_service/pm_api_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 78d5851

Please sign in to comment.