]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Pinebook Pro: enable rng to provide an entropy source
authorPeter Robinson <pbrobinson@gmail.com>
Mon, 8 Jun 2020 22:50:28 +0000 (23:50 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 7 Jul 2020 11:45:56 +0000 (19:45 +0800)
Enable the rng so UEFI can provide entropy for KASLR

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
configs/pinebook-pro-rk3399_defconfig

index 1a2e24d3ef5b6c6d8d05418c53a8f2e7e0b30502..296321d697527b12d465d81a9214b5ff0b75c60f 100644 (file)
        u-boot,dm-pre-reloc;
 };
 
+&rng {
+       status = "okay";
+};
+
 &sdhci {
        max-frequency = <25000000>;
        u-boot,dm-pre-reloc;
index bac09df4a38d1eaa5bd5b058898c564e12491752..cb8991aa253b74b4454c998166a143f8560c45e9 100644 (file)
        };
 };
 
+&rng {
+       status = "okay";
+};
+
 &spi1 {
        spi_flash: flash@0 {
                u-boot,dm-pre-reloc;
index 0c129b9aebb4b3e188b932071e52fbd68f1dc1ed..21eecf477c0628dc02da57741e82f45948d19dcd 100644 (file)
@@ -54,6 +54,8 @@ CONFIG_DM_PMIC_FAN53555=y
 CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
+CONFIG_DM_RNG=y
+CONFIG_RNG_ROCKCHIP=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_RK3399_LPDDR4=y
 CONFIG_DM_RESET=y