Skip to content

Commit b36fdd8

Browse files
masz-nordicnordicjm
authored andcommitted
Revert "[nrf noup] entropy: Add fake entropy nRF PRNG driver"
This reverts commit ac886cc. Signed-off-by: Marcin Szymczyk <[email protected]>
1 parent ff9b79f commit b36fdd8

File tree

10 files changed

+0
-167
lines changed

10 files changed

+0
-167
lines changed

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
zephyr,bt-hci = &bt_hci_ipc0;
2727
nordic,802154-spinel-ipc = &ipc0;
2828
zephyr,canbus = &can120;
29-
zephyr,entropy = &prng;
3029
};
3130

3231
aliases {
@@ -107,11 +106,6 @@
107106
pwms = <&pwm130 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
108107
};
109108
};
110-
111-
prng: prng {
112-
compatible = "nordic,entropy-prng";
113-
status = "okay";
114-
};
115109
};
116110

117111
&cpuapp_ram0x_region {

boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpurad.dts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
zephyr,ieee802154 = &cpurad_ieee802154;
2828
zephyr,bt-hci-ipc = &ipc0;
2929
nordic,802154-spinel-ipc = &ipc0;
30-
zephyr,entropy = &prng;
31-
};
32-
prng: prng {
33-
compatible = "nordic,entropy-prng";
34-
status = "okay";
3530
};
3631
aliases {
3732
ipc-to-cpusys = &cpurad_cpusys_ipc;

boards/nordic/nrf9280pdk/nrf9280pdk_nrf9280_cpuapp.dts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
zephyr,bt-hci = &bt_hci_ipc0;
2929
nordic,802154-spinel-ipc = &ipc0;
3030
zephyr,canbus = &can120;
31-
zephyr,entropy = &prng;
3231
};
3332

3433
aliases {
@@ -109,11 +108,6 @@
109108
pwms = <&pwm130 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
110109
};
111110
};
112-
113-
prng: prng {
114-
compatible = "nordic,entropy-prng";
115-
status = "okay";
116-
};
117111
};
118112

119113
&cpuapp_ram0x_region {

boards/nordic/nrf9280pdk/nrf9280pdk_nrf9280_cpurad.dts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
zephyr,ieee802154 = &cpurad_ieee802154;
2929
zephyr,bt-hci-ipc = &ipc0;
3030
nordic,802154-spinel-ipc = &ipc0;
31-
zephyr,entropy = &prng;
32-
};
33-
prng: prng {
34-
compatible = "nordic,entropy-prng";
35-
status = "okay";
3631
};
3732
aliases {
3833
ipc-to-cpusys = &cpurad_cpusys_ipc;

drivers/entropy/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,4 @@ zephyr_library_sources_ifdef(CONFIG_ENTROPY_NPCX_DRBG entropy_npcx_drbg.c)
3636
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAX32_TRNG entropy_max32.c)
3737
zephyr_library_sources_ifdef(CONFIG_ENTROPY_RENESAS_RA entropy_renesas_ra.c)
3838

39-
if (CONFIG_FAKE_ENTROPY_NRF_PRNG)
40-
zephyr_library_sources(fake_entropy_nrf_prng.c)
41-
42-
message(WARNING "\nA nRF PRNG is used, which does not produce real random bits."
43-
"This is not secure and should therefore never be used in a product.")
44-
endif()
45-
4639
zephyr_library_link_libraries_ifdef(CONFIG_BUILD_WITH_TFM tfm_api)

drivers/entropy/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ source "drivers/entropy/Kconfig.psa_crypto"
3838
source "drivers/entropy/Kconfig.npcx"
3939
source "drivers/entropy/Kconfig.max32"
4040
source "drivers/entropy/Kconfig.renesas_ra"
41-
source "drivers/entropy/Kconfig.nrf_prng"
4241

4342
config ENTROPY_HAS_DRIVER
4443
bool

drivers/entropy/Kconfig.nrf_prng

Lines changed: 0 additions & 19 deletions
This file was deleted.

drivers/entropy/fake_entropy_nrf_prng.c

Lines changed: 0 additions & 101 deletions
This file was deleted.

dts/arm/nordic/nrf54l20_enga_cpuapp.dtsi

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ nvic: &cpuapp_nvic {};
1616
/delete-node/ &cpuflpr_clic;
1717

1818
/ {
19-
chosen {
20-
zephyr,entropy = &prng;
21-
};
22-
2319
soc {
2420
compatible = "simple-bus";
2521
interrupt-parent = <&cpuapp_nvic>;
@@ -30,11 +26,6 @@ nvic: &cpuapp_nvic {};
3026
compatible = "zephyr,psa-crypto-rng";
3127
status = "disabled";
3228
};
33-
34-
prng: prng {
35-
compatible = "nordic,entropy-prng";
36-
status = "okay";
37-
};
3829
};
3930

4031
&cpuflpr_vpr {

dts/bindings/rng/nordic,nrf-prng.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)