diff options
| -rw-r--r-- | drivers/crypto/caam/ctrl.c | 3 | ||||
| -rw-r--r-- | drivers/crypto/caam/regs.h | 4 | 
2 files changed, 6 insertions, 1 deletions
| diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 1c56f63524f2..19faea2c31d1 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -304,6 +304,9 @@ static int caam_probe(struct platform_device *pdev)  			caam_remove(pdev);  			return ret;  		} + +		/* Enable RDB bit so that RNG works faster */ +		setbits32(&topregs->ctrl.scfgr, SCFGR_RDBENABLE);  	}  	/* NOTE: RTIC detection ought to go here, around Si time */ diff --git a/drivers/crypto/caam/regs.h b/drivers/crypto/caam/regs.h index 3223fc6d647c..cd6fedad9935 100644 --- a/drivers/crypto/caam/regs.h +++ b/drivers/crypto/caam/regs.h @@ -252,7 +252,8 @@ struct caam_ctrl {  	/* Read/Writable					        */  	u32 rsvd1;  	u32 mcr;		/* MCFG      Master Config Register  */ -	u32 rsvd2[2]; +	u32 rsvd2; +	u32 scfgr;		/* SCFGR, Security Config Register */  	/* Bus Access Configuration Section			010-11f */  	/* Read/Writable                                                */ @@ -299,6 +300,7 @@ struct caam_ctrl {  #define MCFGR_WDFAIL		0x20000000 /* DECO watchdog force-fail */  #define MCFGR_DMA_RESET		0x10000000  #define MCFGR_LONG_PTR		0x00010000 /* Use >32-bit desc addressing */ +#define SCFGR_RDBENABLE		0x00000400  /* AXI read cache control */  #define MCFGR_ARCACHE_SHIFT	12 | 
