crypto: inside-secure - add an invalidation flag

Add a flags field in the private structure, and a first flag for engines
needing context invalidation (currently only the eip197b). The
invalidation is needed when the engine includes a TRC cache, which will
also be true for the upcoming addition of the eip197d engine.

Suggested-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Antoine Tenart
2018-06-28 17:15:35 +02:00
committed by Herbert Xu
parent 998d2abb0c
commit 53c83e915c
4 changed files with 20 additions and 12 deletions

View File

@@ -546,6 +546,10 @@ struct safexcel_register_offsets {
u32 pe;
};
enum safexcel_flags {
EIP197_TRC_CACHE = BIT(0),
};
struct safexcel_crypto_priv {
void __iomem *base;
struct device *dev;
@@ -555,6 +559,7 @@ struct safexcel_crypto_priv {
enum safexcel_eip_version version;
struct safexcel_register_offsets offsets;
u32 flags;
/* context DMA pool */
struct dma_pool *context_pool;