]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: xilinx: add support for new SMC call format
authorRonak Jain <ronak.jain@amd.com>
Fri, 20 Sep 2024 05:55:01 +0000 (22:55 -0700)
committerMichal Simek <michal.simek@amd.com>
Wed, 2 Oct 2024 10:54:45 +0000 (12:54 +0200)
commit92fb71333d5737d0296fb968a653dfda4b225175
tree727e53c21fe616dc2ee7b9f032624fe43674308b
parente8415a8aecdb73cadfcfd1f1e1307d84413a5eb8
firmware: xilinx: add support for new SMC call format

Added zynqmp_pm_invoke_fw_fn() to use new SMC format in which
lower 12 bits of SMC id are fixed and firmware header is moved to
subsequent SMC arguments. The new SMC format supports full request and
response buffers.

Added zynqmp_pm_get_sip_svc_version() to get SiP SVC version
number to check if TF-A is newer or older and use the SMC format
accordingly to handle backward compatibility.

Used new SMC format for PM_QUERY_DATA API as more response values are
required in it.

Signed-off-by: Ronak Jain <ronak.jain@amd.com>
Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@amd.com>
Link: https://lore.kernel.org/r/20240920055501.2658642-1-ronak.jain@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/firmware/xilinx/zynqmp.c
include/linux/firmware/xlnx-zynqmp.h