arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits)
authorChee Hong Ang <chee.hong.ang@intel.com>
Thu, 24 Dec 2020 10:21:00 +0000 (18:21 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Fri, 15 Jan 2021 09:48:36 +0000 (17:48 +0800)
commit0eebfab3feff9d66626e4163eb0cfa6063202e1f
treef786696d22a219cd8765725fdae581869c172ca4
parentdbdc1df877003a56b3024c1d8bc79052ca6dc321
arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits)

invoke_smc() allow U-Boot proper running in non-secure mode (EL2)
to invoke SMC call to ATF's PSCI runtime services such as
System Manager's registers access, 2nd phase bitstream FPGA
reconfiguration, Remote System Update (RSU) and etc.

smc_send_mailbox() is a send mailbox command helper function which invokes
the ATF's PSCI runtime service (function ID: INTEL_SIP_SMC_MBOX_SEND_CMD)
to send mailbox messages to Secure Device Manager (SDM).

Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
arch/arm/mach-socfpga/Makefile
arch/arm/mach-socfpga/include/mach/smc_api.h [new file with mode: 0644]
arch/arm/mach-socfpga/smc_api.c [new file with mode: 0644]