diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2021-04-13 14:45:59 +0530 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-04-22 17:31:30 +1000 |
commit | 0bc42311cdff4ee8bdf08f68b28b0307895df90b (patch) | |
tree | 6affe453fe0dd58a88c6a6948e185e8eaff84bd9 /drivers/crypto/sa2ul.h | |
parent | e8a4529d4598467577b847a8ace14ecc479e4f64 (diff) | |
download | linux-0bc42311cdff4ee8bdf08f68b28b0307895df90b.tar.gz linux-0bc42311cdff4ee8bdf08f68b28b0307895df90b.tar.bz2 linux-0bc42311cdff4ee8bdf08f68b28b0307895df90b.zip |
crypto: sa2ul - Add support for AM64
The sa2ul module in am64 have limited support for algorithms, and the
priv and priv_id used on the platform is different compared to AM654 or
j721e.
Use match data to get the SoC specific information and use it throughout
the driver.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vaibhav Gupta <v_gupta@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/sa2ul.h')
-rw-r--r-- | drivers/crypto/sa2ul.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/crypto/sa2ul.h b/drivers/crypto/sa2ul.h index f597ddecde34..ed66d1f111db 100644 --- a/drivers/crypto/sa2ul.h +++ b/drivers/crypto/sa2ul.h @@ -171,9 +171,12 @@ struct sa_tfm_ctx; #define SA_UNSAFE_DATA_SZ_MIN 240 #define SA_UNSAFE_DATA_SZ_MAX 256 +struct sa_match_data; + /** * struct sa_crypto_data - Crypto driver instance data * @base: Base address of the register space + * @soc_data: Pointer to SoC specific data * @pdev: Platform device pointer * @sc_pool: security context pool * @dev: Device pointer @@ -189,6 +192,7 @@ struct sa_tfm_ctx; */ struct sa_crypto_data { void __iomem *base; + const struct sa_match_data *match_data; struct platform_device *pdev; struct dma_pool *sc_pool; struct device *dev; |