summaryrefslogtreecommitdiff
path: root/drivers/crypto/amcc/crypto4xx_reg_def.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2018-12-23 04:16:13 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-01-11 09:16:56 +0300
commitd072bfa4885354fff86aa1fb1dbc4f1533c9e0bf (patch)
tree10b540569a2aa47cb27da2e6f8cd6670dda4edbf /drivers/crypto/amcc/crypto4xx_reg_def.h
parent12b8567f6fa489c098024fc75caba2f6b1390a92 (diff)
downloadlinux-d072bfa4885354fff86aa1fb1dbc4f1533c9e0bf.tar.xz
crypto: crypto4xx - add prng crypto support
This patch adds support for crypto4xx's ANSI X9.17 Annex C compliant pseudo random number generator which provides a pseudo random source for the purpose of generating Initialization Vectors (IV's) for AES algorithms to the Packet Engine and other pseudo random number requirements. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/amcc/crypto4xx_reg_def.h')
-rw-r--r--drivers/crypto/amcc/crypto4xx_reg_def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_reg_def.h b/drivers/crypto/amcc/crypto4xx_reg_def.h
index 472331787e04..80c67490bbf6 100644
--- a/drivers/crypto/amcc/crypto4xx_reg_def.h
+++ b/drivers/crypto/amcc/crypto4xx_reg_def.h
@@ -100,6 +100,7 @@
#define CRYPTO4XX_ENDIAN_CFG 0x000600d8
#define CRYPTO4XX_PRNG_STAT 0x00070000
+#define CRYPTO4XX_PRNG_STAT_BUSY 0x1
#define CRYPTO4XX_PRNG_CTRL 0x00070004
#define CRYPTO4XX_PRNG_SEED_L 0x00070008
#define CRYPTO4XX_PRNG_SEED_H 0x0007000c