firmware: zynqmp: Separate function for sending message via mailbox

U-Boot running in EL3 can't use SMC that's why there is a need to talk to
PMUFW directly via mailbox. The same logic is applied to all functions
which need to talk to PMUFW that's why move this logic to separate function
to avoid code duplication.

Also SMC request ID can be composed from PM_SIP_SVC offset that's why
ZYNQMP_SIP_SVC_GET_API_VERSION macro can be removed completely.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Michal Simek
2019-09-27 14:08:41 +02:00
parent 325a22dc19
commit b6039aad2d
2 changed files with 10 additions and 11 deletions

View File

@@ -15,8 +15,6 @@ enum pm_api_id {
};
#define PM_SIP_SVC 0xc2000000
#define ZYNQMP_SIP_SVC_GET_API_VERSION \
(PM_SIP_SVC + PM_GET_API_VERSION)
#define ZYNQMP_SIP_SVC_PM_SECURE_IMG_LOAD \
(PM_SIP_SVC + PM_SECURE_IMAGE)