]> git.dujemihanovic.xyz Git - u-boot.git/commit
firmware: zynqmp: Separate function for sending message via mailbox
authorMichal Simek <michal.simek@xilinx.com>
Fri, 27 Sep 2019 12:08:41 +0000 (14:08 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 8 Oct 2019 07:55:11 +0000 (09:55 +0200)
commitb6039aad2d233622729282d1ecd9963366dbf0b4
treecbbf120ef70f6f4ac92b64a9c77881da0aeabadb
parent325a22dc196a8738ba8389b8a4086345ff5e98db
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>
drivers/firmware/firmware-zynqmp.c
include/zynqmp_firmware.h