MLK-18703: crypto: caam: Add init TRNG into SPL or U-Boot
authorAymen Sghaier <aymen.sghaier@nxp.com>
Tue, 24 Apr 2018 16:36:02 +0000 (18:36 +0200)
committerYe Li <ye.li@nxp.com>
Wed, 28 Apr 2021 20:41:04 +0000 (13:41 -0700)
commitf0f3fd9e0cbe7fc19390ed0eaec5af523e41d4af
tree2844beba49e20ffc3a99ac93e77b0ec378795a08
parentc448448951a056ce83b8d7f96c748aea344ed91d
MLK-18703: crypto: caam: Add init TRNG into SPL or U-Boot

 The following reasons lead to instantiate the TRNG into U-Boot/SPL:

 - On some i.MX platforms Linux Kernel could not instantiate RNG
 - RNG could be used/needed by M4/M0 cores before Kernel stage
 - Having the RNG instantiation implemented only once for
   almost i.MX platforms

Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
(cherry picked from commit 1f4134c85f6416cbdadaf5f4ff6321f6c685c74c)
(cherry picked from commit 20bd91de9f4b305adb15dda3a09fd9958557a82b)
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 1d7bbf924f59bb6e7401890b936c501b13222fdc)
drivers/crypto/fsl_caam.c
drivers/crypto/fsl_caam_internal.h
include/fsl_caam.h