Skip to content

Commit bf0fed5

Browse files
committed
[ot] hw/riscv: ot_darjeeling: update entropy stack configuration
- configure entropy src version - replace random src interface with entropy src - replace entropy src noise source Signed-off-by: Emmanuel Blot <[email protected]>
1 parent f74dc83 commit bf0fed5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hw/riscv/ot_darjeeling.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ static const IbexDeviceDef ot_dj_soc_devices[] = {
740740
OT_DJ_SOC_GPIO_ALERT(1, 34)
741741
),
742742
.link = IBEXDEVICELINKDEFS(
743-
OT_DJ_SOC_DEVLINK("random_src", AST),
743+
OT_DJ_SOC_DEVLINK("entropy-src", ENTROPY_SRC),
744744
OT_DJ_SOC_DEVLINK("otp_ctrl", OTP_CTRL)
745745
),
746746
},
@@ -758,9 +758,12 @@ static const IbexDeviceDef ot_dj_soc_devices[] = {
758758
OT_DJ_SOC_GPIO_ALERT(1, 36)
759759
),
760760
.link = IBEXDEVICELINKDEFS(
761-
OT_DJ_SOC_DEVLINK("ast", AST),
761+
OT_DJ_SOC_DEVLINK("noise-src", AST),
762762
OT_DJ_SOC_DEVLINK("otp_ctrl", OTP_CTRL)
763763
),
764+
.prop = IBEXDEVICEPROPDEFS(
765+
IBEX_DEV_UINT_PROP("version", 3)
766+
),
764767
},
765768
[OT_DJ_SOC_DEV_EDN0] = {
766769
.type = TYPE_OT_EDN,

0 commit comments

Comments
 (0)