summaryrefslogtreecommitdiff
path: root/include/linux/firmware/xlnx-zynqmp.h
diff options
context:
space:
mode:
authorKalyani Akula <kalyani.akula@xilinx.com>2020-02-17 15:56:41 +0530
committerHerbert Xu <herbert@gondor.apana.org.au>2020-02-28 08:36:46 +0800
commit057a0fb649f3bfcd3048e22e15fa613026076119 (patch)
tree6f19bf4877d1bab60c05ea1c686eab777d189a35 /include/linux/firmware/xlnx-zynqmp.h
parentff462ddfd95b915345c3c7c037c3bfafdc58bae7 (diff)
downloadlwn-057a0fb649f3bfcd3048e22e15fa613026076119.tar.gz
lwn-057a0fb649f3bfcd3048e22e15fa613026076119.zip
firmware: xilinx: Add ZynqMP aes API for AES functionality
Add ZynqMP firmware AES API to perform encryption/decryption of given data. Signed-off-by: Kalyani Akula <kalyani.akula@xilinx.com> Acked-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/firmware/xlnx-zynqmp.h')
-rw-r--r--include/linux/firmware/xlnx-zynqmp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h
index 2cd12ebd6826..8acace459351 100644
--- a/include/linux/firmware/xlnx-zynqmp.h
+++ b/include/linux/firmware/xlnx-zynqmp.h
@@ -82,6 +82,7 @@ enum pm_api_id {
PM_CLOCK_GETRATE,
PM_CLOCK_SETPARENT,
PM_CLOCK_GETPARENT,
+ PM_SECURE_AES = 47,
PM_FEATURE_CHECK = 63,
PM_API_MAX,
};
@@ -315,6 +316,7 @@ struct zynqmp_eemi_ops {
const u32 capabilities,
const u32 qos,
const enum zynqmp_pm_request_ack ack);
+ int (*aes)(const u64 address, u32 *out);
};
int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1,