crypto: caam - add support for SEC v5.x RNG4
The SEC v4.x' RNGB h/w block self-initialized. RNG4, available on SEC versions 5 and beyond, is based on a different standard that requires manual initialization. Also update any new errors From the SEC v5.2 reference manual: The SEC v5.2's RNG4 unit reuses some error IDs, thus the addition of rng_err_id_list over the CHA-independent err_id_list. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:

committad av
Herbert Xu

förälder
e13af18a3e
incheckning
281922a1d4
@@ -1172,6 +1172,11 @@ struct sec4_sg_entry {
|
||||
#define OP_ALG_AAI_GSM (0x10 << OP_ALG_AAI_SHIFT)
|
||||
#define OP_ALG_AAI_EDGE (0x20 << OP_ALG_AAI_SHIFT)
|
||||
|
||||
/* RNG4 set */
|
||||
#define OP_ALG_RNG4_SHIFT 4
|
||||
#define OP_ALG_RNG4_MASK (0x1f3 << OP_ALG_RNG4_SHIFT)
|
||||
|
||||
#define OP_ALG_RNG4_SK (0x100 << OP_ALG_RNG4_SHIFT)
|
||||
|
||||
#define OP_ALG_AS_SHIFT 2
|
||||
#define OP_ALG_AS_MASK (0x3 << OP_ALG_AS_SHIFT)
|
||||
|
Referens i nytt ärende
Block a user