diff options
author | Ye Li <ye.li@nxp.com> | 2021-06-07 06:31:07 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2022-04-06 18:04:26 +0800 |
commit | 73724ca71282005d37d87ea771a05fd5e20e44f4 (patch) | |
tree | ff7f3e38a595583fc290114e468888c1063ea34d /include | |
parent | eb5098ea1cbaeea9923a0fa505967b9613a43716 (diff) |
LF-3946 crypto: caam: Fix kick_trng for i.MX
Porting the RNG init relevant configurations for i.MX from fsl_caam.c
to jr.c to fix hwrng performance issue in kernel.
Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Gaurav Jain <gaurav.jain@nxp.com>
(cherry picked from commit 5ecaaa97bd6505722d21aa4e9012e680bd0ca490)
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl_sec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsl_sec.h b/include/fsl_sec.h index 8602e55364..d1b535923d 100644 --- a/include/fsl_sec.h +++ b/include/fsl_sec.h @@ -34,6 +34,7 @@ #if CONFIG_SYS_FSL_SEC_COMPAT >= 4 /* RNG4 TRNG test registers */ struct rng4tst { +#define RTMCTL_ACC 0x20 #define RTMCTL_PRGM 0x00010000 /* 1 -> program mode, 0 -> run mode */ #define RTMCTL_SAMP_MODE_VON_NEUMANN_ES_SC 0 /* use von Neumann data in both entropy shifter and |