diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-04-11 09:45:20 -0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-04-21 00:58:37 +0800 |
commit | 654f2b937b389295581bcb4aa26011a63db7bc8f (patch) | |
tree | 70d6c4ac40b00e5a33d44b02b07c8807c254b561 /lib/test_parman.c | |
parent | b0039c00fbbbc3cb9c4b25852d81a2b4c193371d (diff) | |
download | blackbird-op-linux-654f2b937b389295581bcb4aa26011a63db7bc8f.tar.gz blackbird-op-linux-654f2b937b389295581bcb4aa26011a63db7bc8f.zip |
crypto: caam - allow retrieving 'era' from register
The 'era' information can be retrieved from CAAM registers, so
introduce a caam_get_era_from_hw() function that gets it via register
reads in case the 'fsl,sec-era' property is not passed in the device
tree.
This function is based on the U-Boot implementation from
drivers/crypto/fsl/sec.c
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Tested-by: Breno Lima <breno.lima@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/test_parman.c')
0 files changed, 0 insertions, 0 deletions