Skip to content

Commit c8ce435

Browse files
committed
[ot] hw/riscv: ot_earlgrey: 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 bf0fed5 commit c8ce435

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hw/riscv/ot_earlgrey.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
12281228
OT_EG_SOC_GPIO_ALERT(1, 52)
12291229
),
12301230
.link = IBEXDEVICELINKDEFS(
1231-
OT_EG_SOC_DEVLINK("random_src", ENTROPY_SRC),
1231+
OT_EG_SOC_DEVLINK("entropy-src", ENTROPY_SRC),
12321232
OT_EG_SOC_DEVLINK("otp_ctrl", OTP_CTRL)
12331233
),
12341234
},
@@ -1246,9 +1246,12 @@ static const IbexDeviceDef ot_eg_soc_devices[] = {
12461246
OT_EG_SOC_GPIO_ALERT(1, 54)
12471247
),
12481248
.link = IBEXDEVICELINKDEFS(
1249-
OT_EG_SOC_DEVLINK("ast", AST),
1249+
OT_EG_SOC_DEVLINK("noise-src", AST),
12501250
OT_EG_SOC_DEVLINK("otp_ctrl", OTP_CTRL)
12511251
),
1252+
.prop = IBEXDEVICEPROPDEFS(
1253+
IBEX_DEV_UINT_PROP("version", 2)
1254+
),
12521255
},
12531256
[OT_EG_SOC_DEV_EDN0] = {
12541257
.type = TYPE_OT_EDN,

0 commit comments

Comments
 (0)