]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: blob: Instantiate RNG before running CMD_BLOB
authorBreno Lima <breno.lima@nxp.com>
Thu, 25 Mar 2021 09:30:21 +0000 (17:30 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000 (09:18 +0200)
commit28b8424dd945cd4e2589f36308eecbfc93933285
tree06abbb1a1ccf46bdf7baea91215ff952afab24c2
parent01fc6200a911c39a2568e2878162eaeb170f10b4
cmd: blob: Instantiate RNG before running CMD_BLOB

U-Boot can instantiate CAAM RNG if needed by crypto operations.
Call sec_init() prior running a blob operation to ensure
RNG is correctly instantiated.

Make sure CAAM clock is enabled and check if a job ring is
available for that operation.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
cmd/blob.c
include/fsl_sec.h