esp32s2: drivers: entropy: add support
also needed for wifi driver support. Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
parent
d451fda467
commit
c7ce4b2016
|
@ -6,3 +6,9 @@
|
|||
config BOARD
|
||||
default "esp32s2_saola"
|
||||
depends on BOARD_ESP32S2_SAOLA
|
||||
|
||||
config ENTROPY_GENERATOR
|
||||
default y
|
||||
|
||||
config ENTROPY_ESP32_RNG
|
||||
default y if ENTROPY_GENERATOR
|
||||
|
|
|
@ -43,3 +43,7 @@
|
|||
&timer3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&trng0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
config ENTROPY_ESP32_RNG
|
||||
bool "ESP32 entropy number generator driver"
|
||||
depends on SOC_ESP32 || SOC_ESP32C3
|
||||
depends on SOC_ESP32 || SOC_ESP32C3 || SOC_ESP32S2
|
||||
select ENTROPY_HAS_DRIVER
|
||||
default y
|
||||
help
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
chosen {
|
||||
zephyr,entropy = &trng0;
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
@ -127,6 +131,12 @@
|
|||
interrupts = <TG1_T1_LEVEL_INTR_SOURCE>;
|
||||
interrupt-parent = <&intc>;
|
||||
label = "TIMG1_T1";
|
||||
};
|
||||
|
||||
trng0: trng@3f435110 {
|
||||
compatible = "espressif,esp32-trng";
|
||||
reg = <0x3f435110 0x4>;
|
||||
label = "TRNG_0";
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue