Skip to content

Commit 4bdf712

Browse files
Pascal van Leeuwenherbertx
authored andcommitted
crypto: inside-secure - Enable extended algorithms on newer HW
This patch enables algorithms that did not fit the original 32 bit FUNCTION_EN register anymore via the FUNCTION2_EN extension reg. Signed-off-by: Pascal van Leeuwen <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f9d131d commit 4bdf712

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/crypto/inside-secure/safexcel.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ static int safexcel_hw_init(struct safexcel_crypto_priv *priv)
505505
/* H/W capabilities selection: just enable everything */
506506
writel(EIP197_FUNCTION_ALL,
507507
EIP197_PE(priv) + EIP197_PE_EIP96_FUNCTION_EN(pe));
508+
writel(EIP197_FUNCTION_ALL,
509+
EIP197_PE(priv) + EIP197_PE_EIP96_FUNCTION2_EN(pe));
508510
}
509511

510512
/* Command Descriptor Rings prepare */

drivers/crypto/inside-secure/safexcel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
#define EIP197_PE_EIP96_FUNCTION_EN(n) (0x1004 + (0x2000 * (n)))
158158
#define EIP197_PE_EIP96_CONTEXT_CTRL(n) (0x1008 + (0x2000 * (n)))
159159
#define EIP197_PE_EIP96_CONTEXT_STAT(n) (0x100c + (0x2000 * (n)))
160+
#define EIP197_PE_EIP96_FUNCTION2_EN(n) (0x1030 + (0x2000 * (n)))
160161
#define EIP197_PE_EIP96_OPTIONS(n) (0x13f8 + (0x2000 * (n)))
161162
#define EIP197_PE_EIP96_VERSION(n) (0x13fc + (0x2000 * (n)))
162163
#define EIP197_PE_OUT_DBUF_THRES(n) (0x1c00 + (0x2000 * (n)))

0 commit comments

Comments
 (0)