5 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_LIB_INDIVIDUALIZE_SW_CFG_H_
6 #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_LIB_INDIVIDUALIZE_SW_CFG_H_
8 #include "sw/device/lib/base/status.h"
11 #include "sw/device/silicon_creator/manuf/lib/otp_img_types.h"
16 extern const size_t kOtpKvCreatorSwCfgSize;
17 extern const otp_kv_t kOtpKvCreatorSwCfg[];
18 extern const uint32_t kCreatorSwCfgFlashDataDefaultCfgValue;
19 extern const uint32_t kCreatorSwCfgManufStateValue;
20 extern const uint32_t kCreatorSwCfgImmutableRomExtEnValue;
25 extern const size_t kOtpKvOwnerSwCfgSize;
26 extern const otp_kv_t kOtpKvOwnerSwCfg[];
27 extern const uint32_t kOwnerSwCfgRomBootstrapDisValue;
32 extern const size_t kOtpKvRotCreatorAuthCodesignSize;
33 extern const otp_kv_t kOtpKvRotCreatorAuthCodesign[];
38 extern const size_t kOtpKvRotCreatorAuthStateSize;
39 extern const otp_kv_t kOtpKvRotCreatorAuthState[];
68 status_t manuf_individualize_device_creator_sw_cfg(
80 status_t manuf_individualize_device_field_cfg(
const dif_otp_ctrl_t *otp_ctrl,
81 uint32_t field_offset);
91 status_t manuf_individualize_device_flash_data_default_cfg_check(
92 const dif_otp_ctrl_t *otp_ctrl);
104 status_t manuf_individualize_device_creator_sw_cfg_lock(
105 const dif_otp_ctrl_t *otp_ctrl);
113 status_t manuf_individualize_device_creator_sw_cfg_check(
114 const dif_otp_ctrl_t *otp_ctrl);
136 status_t manuf_individualize_device_owner_sw_cfg(
137 const dif_otp_ctrl_t *otp_ctrl);
149 status_t manuf_individualize_device_owner_sw_cfg_lock(
150 const dif_otp_ctrl_t *otp_ctrl);
158 status_t manuf_individualize_device_owner_sw_cfg_check(
159 const dif_otp_ctrl_t *otp_ctrl);
170 status_t manuf_individualize_device_partition_expected_read(
183 status_t manuf_individualize_device_rot_creator_auth_codesign(
184 const dif_otp_ctrl_t *otp_ctrl);
192 status_t manuf_individualize_device_rot_creator_auth_codesign_check(
193 const dif_otp_ctrl_t *otp_ctrl);
205 status_t manuf_individualize_device_rot_creator_auth_state(
206 const dif_otp_ctrl_t *otp_ctrl);
214 status_t manuf_individualize_device_rot_creator_auth_state_check(
215 const dif_otp_ctrl_t *otp_ctrl);