]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
config: Enable iProc RNG200 driver in RPi4 configs
authorMatthias Brugger <mbrugger@suse.com>
Tue, 15 Dec 2020 09:49:24 +0000 (10:49 +0100)
committerMatthias Brugger <mbrugger@suse.com>
Thu, 18 Feb 2021 10:56:20 +0000 (11:56 +0100)
We find the iProc RNG200 in the Raspberry Pi 4. Add it to all it's
config so that it can be used.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
[mb: drop rpi_4_32b_defconfig]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
configs/rpi_4_defconfig
configs/rpi_arm64_defconfig
drivers/rng/iproc_rng200.c

index 2590d0a696473c87c043218318df68b95d82683b..46b6cc3046bc3b472810ea832bd9020a05600907 100644 (file)
@@ -36,6 +36,8 @@ CONFIG_PCI_BRCMSTB=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 CONFIG_DM_RESET=y
+CONFIG_DM_RNG=y
+CONFIG_RNG_IPROC200=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
 CONFIG_USB=y
 CONFIG_DM_USB=y
index 2639219a1aa1165856d818d0830ca75a9222d5c5..b75144036dcd946f5d75a64fe7b8fec45ab63be7 100644 (file)
@@ -33,6 +33,8 @@ CONFIG_PCI_BRCMSTB=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 CONFIG_DM_RESET=y
+CONFIG_DM_RNG=y
+CONFIG_RNG_IPROC200=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
 CONFIG_USB=y
 CONFIG_DM_USB=y
index de6672e955fa044afcbc770f2526224ff6a3be3b..f71f285f536f6010302f936aa7e8bbb240e6dfd3 100644 (file)
@@ -50,7 +50,6 @@ static void iproc_rng200_enable(struct iproc_rng200_platdata *pdata, bool enable
                val &= ~RNG_CTRL_RNG_RBGEN_ENABLE;
 
        writel(val, rng_base + RNG_CTRL_OFFSET);
-
 }
 
 static void iproc_rng200_restart(struct iproc_rng200_platdata *pdata)