crypto: caam - disable RNG oscillator maximum frequency check
authorAlex Porosanu <alexandru.porosanu@freescale.com>
Mon, 11 Aug 2014 08:40:15 +0000 (11:40 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Aug 2014 12:32:34 +0000 (20:32 +0800)
commitb061f3fefcffa0cdcdc61ae2a1123a4e7697d452
tree393357cc5eff36832f90dd9ae5a5d9f996307816
parentd4c85f9bb53f25491524839ab1610b30810ab898
crypto: caam - disable RNG oscillator maximum frequency check

The rtfrqmax & rtfrqmin set the bounds of the expected frequency of the
oscillator, when SEC runs at its maximum frequency. For certain platforms
(f.i. T2080), the oscillator is very fast and thus if the SEC runs at
a lower than normal frequency, the ring oscillator is incorrectly detected
as being out of bounds.

This patch effectively disables the maximum frequency check, by setting a
high enough maximum allowable frequency for the oscillator. The reasoning
behind this is that usually a broken oscillator will run too slow
(i.e. not run at all) rather than run too fast.

Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/regs.h