]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
drivers/crypto/fsl: change starting entropy delay value
authorAlex Porosanu <alexandru.porosanu@freescale.com>
Tue, 5 May 2015 13:48:34 +0000 (16:48 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:47 +0000 (08:00 +0200)
commit913e579cc8fe63e0e008b367f8627bc70c41a172
tree12b5798c1588a44a87f48299c639822fcb605430
parent2d81b473d74dade2d524125280e36daa98c09d41
drivers/crypto/fsl: change starting entropy delay value

The entropy delay (the length in system clocks of each
entropy sample) for the RNG4 block of CAAM is dependent
on the frequency of the SoC. By elaborate methods, it
has been determined that a good starting value for all
platforms integrating the CAAM IP is 3200. Using a
higher value has additional benefit of  speeding up
the process of instantiating the RNG, since the entropy
delay will be increased and instantiation of the RNG
state handles will be reattempted by the driver. If the
starting value is low, for certain platforms, this can
lead to a quite lengthy process.
This patch changes the starting value of the length of
the entropy sample to 3200 system clocks.
In addition to this change, the attempted entropy delay
values are now printed on the console upon initialization
of the RNG block.

Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com>
Acked-by: Ruchika Gupta<ruchika.gupta@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
include/fsl_sec.h