rk3288: Implement support for CRYPTO module and use it in vboot hashing

Hardware / Coreboot - Julius Werner [chromium.org] - 15 April 2015 09:45 UTC

This patch implements support for the CRYPTO module in RK3288 and ties it into the new vboot vb2ex_hwcrypto API. We only implement SHA256 for now, since the engine doesn't support SHA512 and it's very unlikely that we'll ever use SHA1 for anything again.

BRANCH=None BUG=chrome-os-partner:32987 TEST=Booted Pinky, confirmed that it uses the hardware crypto engine and that firmware body hashing time dropped to about 1.5ms (from over 70ms).

Change-Id: I91d0860b42b93d690d2fa083324d343efe7da5f1

33df495 rk3288: Implement support for CRYPTO module and use it in vboot hashing
src/soc/rockchip/rk3288/Makefile.inc | 1 +
src/soc/rockchip/rk3288/bootblock.c | 2 +
src/soc/rockchip/rk3288/clock.c | 10 ++
src/soc/rockchip/rk3288/crypto.c | 134 ++++++++++++++++++++++
src/soc/rockchip/rk3288/include/soc/addressmap.h | 2 +
src/soc/rockchip/rk3288/include/soc/clock.h | 1 +
6 files changed, 150 insertions(+)

Upstream: review.coreboot.org


  • Share