Skip to content

Commit ef492d0

Browse files
Victoria Milhoanherbertx
authored andcommitted
crypto: caam - adjust RNG timing to support more devices
Adjust RNG timing parameters to support more i.MX6 devices. Signed-off-by: Victoria Milhoan <[email protected]> Signed-off-by: Dan Douglass <[email protected]> Signed-off-by: Vipul Kumar <[email protected]> Signed-off-by: Horia Geantă <[email protected]> Reviewed-by: Gaurav Jain <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent d614dcb commit ef492d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/caam/ctrl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ static void kick_trng(struct device *dev, int ent_delay)
389389
wr_reg32(&r4tst->rtsdctl, val);
390390
/* min. freq. count, equal to 1/4 of the entropy sample length */
391391
wr_reg32(&r4tst->rtfrqmin, ent_delay >> 2);
392-
/* disable maximum frequency count */
393-
wr_reg32(&r4tst->rtfrqmax, RTFRQMAX_DISABLE);
392+
/* max. freq. count, equal to 16 times the entropy sample length */
393+
wr_reg32(&r4tst->rtfrqmax, ent_delay << 4);
394394
/* read the control register */
395395
val = rd_reg32(&r4tst->rtmctl);
396396
start_rng:

0 commit comments

Comments
 (0)