rockchip: add driver for hardware RNG
authorDaniel Golle <daniel@makrotopia.org>
Sat, 4 May 2024 02:01:39 +0000 (03:01 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 4 May 2024 12:59:48 +0000 (13:59 +0100)
commitd9d7286279157dfc3cfe010423566f7d2ce5d238
tree7c0000253e0fa1f1fa5767c854758860d2d36d16
parent3f28c422ba7ca06efd41686fd2f9e664f7e8a12e
rockchip: add driver for hardware RNG

Rockchip SoCs used to have a random number generator as part of their
crypto device, and support for it has to be added to the corresponding
driver.

Newer Rockchip SoCs like the RK3568 have an independent True Random
Number Generator device. Import pending patchset which adds a driver for
it, include it in Kconfig and enable it in the device tree.

Doing so significantly reduces the time needed to boot devices based on
those SoCs, from about 27 seconds until Ethernet is up and running to
less than 13 seconds with a minimal snapshot image.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/rockchip/armv8/config-6.1
target/linux/rockchip/patches-6.1/300-hwrng-add-Rockchip-SoC-hwrng-driver.patch [new file with mode: 0644]
target/linux/rockchip/patches-6.1/301-arm64-dts-rockchip-add-DT-entry-for-RNG-to-RK356x.patch [new file with mode: 0644]