summaryrefslogtreecommitdiff
path: root/include/fsl_sec.h
diff options
context:
space:
mode:
authorAlex Porosanu <alexandru.porosanu@freescale.com>2016-04-29 15:18:00 +0300
committerYork Sun <york.sun@nxp.com>2016-05-18 08:51:46 -0700
commit76394c9c9139b82e21a6e52da0e7341a3374f4be (patch)
tree3b4bc18b9b9d5424f2d556b2c4b17008386c2b0c /include/fsl_sec.h
parent404bf4547ecb4c1409ae0936444fe02ba978e510 (diff)
crypto/fsl: add support for multiple SEC engines initialization
For SoCs that contain multiple SEC engines, each of them needs to be initialized (by means of initializing among others the random number generator). Signed-off-by: Alex Porosanu <alexandru.porosanu@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/fsl_sec.h')
-rw-r--r--include/fsl_sec.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/fsl_sec.h b/include/fsl_sec.h
index a52110a625c..bffabc89b99 100644
--- a/include/fsl_sec.h
+++ b/include/fsl_sec.h
@@ -294,8 +294,6 @@ struct sg_entry {
#endif
-int sec_init(void);
-
/* blob_dek:
* Encapsulates the src in a secure blob and stores it dst
* @src: reference to the plaintext
@@ -305,6 +303,10 @@ int sec_init(void);
*/
int blob_dek(const u8 *src, u8 *dst, u8 len);
+#if defined(CONFIG_PPC_C29X)
+int sec_init_idx(uint8_t);
+#endif
+int sec_init(void);
#endif
#endif /* __FSL_SEC_H */