]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3399: Enable random generator on all boards
authorJonas Karlman <jonas@kwiboo.se>
Tue, 30 Apr 2024 15:30:14 +0000 (15:30 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 7 May 2024 07:56:08 +0000 (15:56 +0800)
The RK3399 SoC contain a crypto engine block that can generate random
numbers.

Imply DM_RNG and RNG_ROCKCHIP Kconfig options to take advantage of the
random generator on all RK3399 boards. Also remove the unnecessary use
of a status = "okay" prop.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
12 files changed:
arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi
arch/arm/dts/rk3399-u-boot.dtsi
arch/arm/mach-rockchip/Kconfig
configs/chromebook_bob_defconfig
configs/chromebook_kevin_defconfig
configs/evb-rk3399_defconfig
configs/firefly-rk3399_defconfig
configs/pinebook-pro-rk3399_defconfig
configs/pinephone-pro-rk3399_defconfig
configs/roc-pc-rk3399_defconfig
configs/rock960-rk3399_defconfig
configs/rockpro64-rk3399_defconfig

index cabf0a9dae89d054c655e50b94084c00c6b8ea81..0e46e87e1fa01a9b5bce4265cb5ce2a49af7a1c9 100644 (file)
        };
 };
 
-&rng {
-       status = "okay";
-};
-
 &sdhci {
        max-frequency = <25000000>;
        bootph-all;
index 87b173e59579c48edf38c38c1b771edcc52841b0..0b0a90acf4318dbd2510bda0c8bd34fda2cec9ce 100644 (file)
@@ -32,7 +32,6 @@
        rng: rng@ff8b8000 {
                compatible = "rockchip,rk3399-crypto";
                reg = <0x0 0xff8b8000 0x0 0x1000>;
-               status = "okay";
        };
 
        dmc: dmc {
index 7c0116da4921dc0090c256f97b60964b1c0a0493..f580d69ed879d4f232796eddbfedb0f5a8c863da 100644 (file)
@@ -265,12 +265,14 @@ config ROCKCHIP_RK3399
        imply ARMV8_SET_SMPEN
        imply BOOTSTD_FULL
        imply CMD_BOOTCOUNT if BOOTCOUNT_LIMIT
+       imply DM_RNG
        imply LEGACY_IMAGE_FORMAT
        imply MISC
        imply MISC_INIT_R
        imply OF_LIVE
        imply PARTITION_TYPE_GUID
        imply PRE_CONSOLE_BUFFER
+       imply RNG_ROCKCHIP
        imply ROCKCHIP_COMMON_BOARD
        imply ROCKCHIP_EFUSE
        imply ROCKCHIP_SDRAM_COMMON
index 400b2d7ed7dec717d18732e07f173826e2c201db..5ffd5195ea19383d5a039e6c1b20d2baf8af28af 100644 (file)
@@ -89,8 +89,6 @@ CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_CROS_EC=y
 CONFIG_PWM_ROCKCHIP=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550_MEM32=y
 CONFIG_ROCKCHIP_SPI=y
index a881028cc7eba005c2531f828f35bcffde502dd3..bacdcc367bdacbd9a060d06278603fb2acb53b69 100644 (file)
@@ -90,8 +90,6 @@ CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_CROS_EC=y
 CONFIG_PWM_ROCKCHIP=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550_MEM32=y
 CONFIG_ROCKCHIP_SPI=y
index d81c7f9604e162449babe4b27a83bc2d631ea0e2..c4936768ffb6ce9de3a64f7d74fb816285e8649f 100644 (file)
@@ -47,8 +47,6 @@ CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550_MEM32=y
index 545c047c6df86f266161770ce3e919df92d0215f..8f68ffbd3a4966df3e4f5269f69e99c51fd2b93c 100644 (file)
@@ -45,8 +45,6 @@ CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550_MEM32=y
index 23ac24a0bffe5376c0abbb353ffbcc825303d36a..e4aad1b710cbcadee042c5dcc4cd74c88956ada0 100644 (file)
@@ -75,8 +75,6 @@ CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_ROCKCHIP_LPDDR4=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550_MEM32=y
index 8c6323f6c516adc88f10322ccfb46d5fa1dd670a..285c47d76b6e1b62b682bec6ab883c49c6976a34 100644 (file)
@@ -65,8 +65,6 @@ CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_ROCKCHIP_LPDDR4=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_ROCKCHIP_SPI=y
index a41f71d9e1670bf7b54ca7ba1c3b1657f2ea1bd2..5d6e6b17091fbcae263a66ac7aa32b93a91d1ce9 100644 (file)
@@ -60,8 +60,6 @@ CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 # CONFIG_RAM_ROCKCHIP_DEBUG is not set
 CONFIG_RAM_ROCKCHIP_LPDDR4=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550_MEM32=y
index 13575c5800547eb73c21faf6ab38ff544b6ce54c..7a4a3df85b1be4ff8739bb7ec2e11faf6c57993b 100644 (file)
@@ -52,8 +52,6 @@ CONFIG_PMIC_RK8XX=y
 CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550_MEM32=y
index 062477286708c6a4ee94fa21761ef71fcd4f9e22..368ef7c4b5dbc943a2b5b6c2f557a15df333bb56 100644 (file)
@@ -68,8 +68,6 @@ CONFIG_REGULATOR_PWM=y
 CONFIG_REGULATOR_RK8XX=y
 CONFIG_PWM_ROCKCHIP=y
 CONFIG_RAM_ROCKCHIP_LPDDR4=y
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
 CONFIG_SCSI=y
 CONFIG_BAUDRATE=1500000
 CONFIG_DEBUG_UART_SHIFT=2