aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/inside-secure/safexcel.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/inside-secure/safexcel.h')
-rw-r--r--drivers/crypto/inside-secure/safexcel.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/crypto/inside-secure/safexcel.h b/drivers/crypto/inside-secure/safexcel.h
index 2db2a9636eb7..33e5f663c249 100644
--- a/drivers/crypto/inside-secure/safexcel.h
+++ b/drivers/crypto/inside-secure/safexcel.h
@@ -136,8 +136,10 @@
136#define EIP197_PE_IN_TBUF_THRES(n) (0x0100 + (0x2000 * (n))) 136#define EIP197_PE_IN_TBUF_THRES(n) (0x0100 + (0x2000 * (n)))
137#define EIP197_PE_ICE_SCRATCH_RAM(n) (0x0800 + (0x2000 * (n))) 137#define EIP197_PE_ICE_SCRATCH_RAM(n) (0x0800 + (0x2000 * (n)))
138#define EIP197_PE_ICE_PUE_CTRL(n) (0x0c80 + (0x2000 * (n))) 138#define EIP197_PE_ICE_PUE_CTRL(n) (0x0c80 + (0x2000 * (n)))
139#define EIP197_PE_ICE_PUTF_CTRL(n) (0x0d00 + (0x2000 * (n)))
139#define EIP197_PE_ICE_SCRATCH_CTRL(n) (0x0d04 + (0x2000 * (n))) 140#define EIP197_PE_ICE_SCRATCH_CTRL(n) (0x0d04 + (0x2000 * (n)))
140#define EIP197_PE_ICE_FPP_CTRL(n) (0x0d80 + (0x2000 * (n))) 141#define EIP197_PE_ICE_FPP_CTRL(n) (0x0d80 + (0x2000 * (n)))
142#define EIP197_PE_ICE_PPTF_CTRL(n) (0x0e00 + (0x2000 * (n)))
141#define EIP197_PE_ICE_RAM_CTRL(n) (0x0ff0 + (0x2000 * (n))) 143#define EIP197_PE_ICE_RAM_CTRL(n) (0x0ff0 + (0x2000 * (n)))
142#define EIP197_PE_EIP96_TOKEN_CTRL(n) (0x1000 + (0x2000 * (n))) 144#define EIP197_PE_EIP96_TOKEN_CTRL(n) (0x1000 + (0x2000 * (n)))
143#define EIP197_PE_EIP96_FUNCTION_EN(n) (0x1004 + (0x2000 * (n))) 145#define EIP197_PE_EIP96_FUNCTION_EN(n) (0x1004 + (0x2000 * (n)))
@@ -228,6 +230,11 @@
228#define EIP197_DxE_THR_CTRL_EN BIT(30) 230#define EIP197_DxE_THR_CTRL_EN BIT(30)
229#define EIP197_DxE_THR_CTRL_RESET_PE BIT(31) 231#define EIP197_DxE_THR_CTRL_RESET_PE BIT(31)
230 232
233/* EIP197_PE_ICE_PUE/FPP_CTRL */
234#define EIP197_PE_ICE_UENG_START_OFFSET(n) ((n) << 16)
235#define EIP197_PE_ICE_UENG_INIT_ALIGN_MASK 0x7ff0
236#define EIP197_PE_ICE_UENG_DEBUG_RESET BIT(3)
237
231/* EIP197_HIA_AIC_G_ENABLED_STAT */ 238/* EIP197_HIA_AIC_G_ENABLED_STAT */
232#define EIP197_G_IRQ_DFE(n) BIT((n) << 1) 239#define EIP197_G_IRQ_DFE(n) BIT((n) << 1)
233#define EIP197_G_IRQ_DSE(n) BIT(((n) << 1) + 1) 240#define EIP197_G_IRQ_DSE(n) BIT(((n) << 1) + 1)
@@ -503,6 +510,11 @@ struct safexcel_command_desc {
503 * Internal structures & functions 510 * Internal structures & functions
504 */ 511 */
505 512
513#define EIP197_FW_TERMINAL_NOPS 2
514#define EIP197_FW_START_POLLCNT 16
515#define EIP197_FW_PUE_READY 0x14
516#define EIP197_FW_FPP_READY 0x18
517
506enum eip197_fw { 518enum eip197_fw {
507 FW_IFPP = 0, 519 FW_IFPP = 0,
508 FW_IPUE, 520 FW_IPUE,