Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: caam - adjust RNG timing to support more devices

Adjust RNG timing parameters to support more i.MX6 devices.

Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com>
Signed-off-by: Dan Douglass <dan.douglass@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Victoria Milhoan and committed by
Herbert Xu
ef492d08 d614dcb2

+2 -2
+2 -2
drivers/crypto/caam/ctrl.c
··· 389 389 wr_reg32(&r4tst->rtsdctl, val); 390 390 /* min. freq. count, equal to 1/4 of the entropy sample length */ 391 391 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); 394 394 /* read the control register */ 395 395 val = rd_reg32(&r4tst->rtmctl); 396 396 start_rng: