arm64: xilinx: Move firmware functions from platform to driver
authorMichal Simek <michal.simek@xilinx.com>
Fri, 4 Oct 2019 13:45:29 +0000 (15:45 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 24 Oct 2019 11:37:01 +0000 (13:37 +0200)
commit866225f394a9b3174d9ea39d2d19ac0d2c07a516
tree888ed3852c5fb966b3468dbbfb7687d7cab76721
parent0f3604a2b3882bc0f6c66cfd5acbd074703a5814
arm64: xilinx: Move firmware functions from platform to driver

versal_pm_request() and invoke_smc() are almost the same. Only one
difference is that versal_pm_request is adding PM_SIP_SVC offset to api_id.
The patch is moving platform implementation to firmware driver code for
synchronization.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
arch/arm/mach-versal/cpu.c
arch/arm/mach-versal/include/mach/sys_proto.h
arch/arm/mach-zynqmp/cpu.c
arch/arm/mach-zynqmp/include/mach/sys_proto.h
drivers/firmware/firmware-zynqmp.c
drivers/fpga/versalpl.c
include/zynqmp_firmware.h