Skip to content

Commit a5be9d3

Browse files
committed
[ot] hw/opentitan: otp_ctrl: declare scrambling properties
These are currently unused but we should declare them so that the table of constants generated by `cfggen.py` continues working. Signed-off-by: James Wainwright <[email protected]>
1 parent e807c3c commit a5be9d3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

hw/opentitan/ot_otp_eg.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,15 @@ struct OtOTPEgState {
490490
OtOtpBeIf *otp_backend;
491491
OtEDNState *edn;
492492
uint8_t edn_ep;
493+
/*
494+
* OTP scrambling property strings (currently unused).
495+
* See issue https://github.com/lowRISC/qemu/issues/121.
496+
*/
497+
char *scrmbl_key_xstr;
498+
char *digest_const_xstr;
499+
char *digest_iv_xstr;
500+
char *sram_const_xstr;
501+
char *sram_iv_xstr;
493502
};
494503
/* clang-format on */
495504

@@ -1214,6 +1223,15 @@ static Property ot_otp_eg_properties[] = {
12141223
OtOtpBeIf *),
12151224
DEFINE_PROP_LINK("edn", OtOTPEgState, edn, TYPE_OT_EDN, OtEDNState *),
12161225
DEFINE_PROP_UINT8("edn-ep", OtOTPEgState, edn_ep, UINT8_MAX),
1226+
/*
1227+
* OTP scrambling property strings (currently unused).
1228+
* See issue https://github.com/lowRISC/qemu/issues/121.
1229+
*/
1230+
DEFINE_PROP_STRING("scrmbl_key", OtOTPEgState, scrmbl_key_xstr),
1231+
DEFINE_PROP_STRING("digest_const", OtOTPEgState, digest_const_xstr),
1232+
DEFINE_PROP_STRING("digest_iv", OtOTPEgState, digest_iv_xstr),
1233+
DEFINE_PROP_STRING("sram_const", OtOTPEgState, sram_const_xstr),
1234+
DEFINE_PROP_STRING("sram_iv", OtOTPEgState, sram_iv_xstr),
12171235
DEFINE_PROP_END_OF_LIST(),
12181236
};
12191237

0 commit comments

Comments
 (0)