summaryrefslogtreecommitdiff
path: root/include/fsl_sec.h
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2020-06-27 22:58:51 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2020-07-27 14:16:29 +0530
commitc269a970f23fabbb0d35708ff021bf2962780f9f (patch)
treee2168baa44310fd76c252bc1b548f7467b73f13c /include/fsl_sec.h
parent0dc596127c55e5430bd8f213e41a24c8f440c01a (diff)
downloadu-boot-c269a970f23fabbb0d35708ff021bf2962780f9f.tar.gz
u-boot-c269a970f23fabbb0d35708ff021bf2962780f9f.tar.bz2
u-boot-c269a970f23fabbb0d35708ff021bf2962780f9f.zip
crypto/fsl: don't regenerate secure keys
The secure keys (TDKEK, JDKEK, TDSK) can only be generated once after a POR. Otherwise the RNG4 will throw an error. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'include/fsl_sec.h')
-rw-r--r--include/fsl_sec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsl_sec.h b/include/fsl_sec.h
index 8dce0bbb1b..64b8751f2d 100644
--- a/include/fsl_sec.h
+++ b/include/fsl_sec.h
@@ -69,6 +69,7 @@ struct rng4tst {
#define RNG_STATE1_HANDLE_INSTANTIATED 0x00000002
#define RNG_STATE_HANDLE_MASK \
(RNG_STATE0_HANDLE_INSTANTIATED | RNG_STATE1_HANDLE_INSTANTIATED)
+#define RDSTA_SKVN 0x40000000
u32 rdsta; /*RNG DRNG Status Register*/
u32 rsvd2[15];
};