u-boot-brain/drivers/rng
Neil Armstrong 02d249f99e rng: meson: make core clock optional
This fixes HWRNG support on Amlogic GXL, GXM, G12A, G12B & SM1
based boards dues to the lack of the core clock in the device tree.

It was reported breaking EFI boot in the Linux EFI stub, because the
EFI_RNG_PROTOCOL didn't check for the RNG device presence before
installing itself.

The Linux amlogic,meson-rng.yaml doesn't mandate the core clock,
this the clock should be ignores if not present.

Nevertheless, the clock should be present and this should be fixed
on the Linux meson-gxl.dtsi & meson-g12-common.dtsi then synced
with U-Boot.

The change has been tested on a Khadas VIM3, which uses the common
meson-g12-common.dtsi like the Odroid-C4 & Odroid-N2 in Scott's
report, along with the RNG cmd.

Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reported-by: Scott K Logan <logans@cottsay.net>
Fixes: bc40eb278b ("drivers/rng: add Amlogic hardware RNG driver")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2020-09-28 09:38:11 +02:00
..
Kconfig rockchip: rng: Add a driver for random number generator(rng) device 2020-04-29 10:30:55 +08:00
Makefile rockchip: rng: Add a driver for random number generator(rng) device 2020-04-29 10:30:55 +08:00
meson-rng.c rng: meson: make core clock optional 2020-09-28 09:38:11 +02:00
rng-uclass.c dm: rng: Add random number generator(rng) uclass 2020-01-07 18:08:21 +01:00
rockchip_rng.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sandbox_rng.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
stm32mp1_rng.c rng: stm32mp1: use log() instead of printf() 2020-09-18 22:23:58 +02:00