]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: dts: rk3328: Add rng details to u-boot.dtsi
authorPeter Robinson <pbrobinson@gmail.com>
Wed, 14 Jun 2023 12:43:13 +0000 (13:43 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 12 Aug 2023 02:13:14 +0000 (10:13 +0800)
Add the rk3328 rng details to the u-boot.dtsi and
enable the RNG on the Rock64 to be able to provide
a random seed via UEFI.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
(Fix typo message)
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3328-u-boot.dtsi
configs/rock64-rk3328_defconfig

index ce96ce40a73b69368aa4c52eeaf60add732db7db..a9f2536de2a21c87603502b0317683e54198c8b9 100644 (file)
                       0x0 0xff720000 0x0 0x1000
                       0x0 0xff798000 0x0 0x1000>;
        };
+
+       rng: rng@ff060000 {
+               compatible = "rockchip,cryptov1-rng";
+               reg = <0x0 0xff060000 0x0 0x4000>;
+               status = "okay";
+       };
 };
 
 &cru {
index e9f0415bbd05b948d62d46e8b89a1fdc9a256eef..c2641f65b5075a27723a4e611c93691996ce81c4 100644 (file)
@@ -75,6 +75,8 @@ CONFIG_MISC=y
 CONFIG_ROCKCHIP_EFUSE=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
+CONFIG_DM_RNG=y
+CONFIG_RNG_ROCKCHIP=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_ETH_DESIGNWARE=y
 CONFIG_GMAC_ROCKCHIP=y