Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions sw/device/silicon_creator/manuf/base/sram_ft_individualize.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ static status_t patch_ast_config_value(void) {
TRY(manuf_flash_info_field_read(
&flash_ctrl_state, kFlashInfoFieldAstIndividPatchVal, &ast_patch_value,
kFlashInfoFieldAstIndividPatchValSizeIn32BitWords));
LOG_INFO("AST patch address offset = 0x%08x", ast_patch_addr_offset);
LOG_INFO("AST patch address value = 0x%08x", ast_patch_value);

// Check the address is within range before programming.
// Check the value is non-zero and not all ones before programming.
Expand All @@ -197,14 +195,6 @@ static status_t patch_ast_config_value(void) {
TOP_EARLGREY_AST_BASE_ADDR + ast_patch_addr_offset * sizeof(uint32_t),
ast_patch_value);

// Read back AST calibration values loaded into CSRs.
LOG_INFO("AST Calibration Values (in CSRs):");
for (size_t i = 0; i < kFlashInfoAstCalibrationDataSizeIn32BitWords; ++i) {
LOG_INFO(
"Word %d = 0x%08x", i,
abs_mmio_read32(TOP_EARLGREY_AST_BASE_ADDR + i * sizeof(uint32_t)));
}

return OK_STATUS();
}

Expand Down
1 change: 0 additions & 1 deletion sw/device/silicon_creator/manuf/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ cc_library(
"//sw/device/lib/crypto/include:datatypes",
"//sw/device/lib/dif:flash_ctrl",
"//sw/device/lib/dif:otp_ctrl",
"//sw/device/lib/runtime:log",
"//sw/device/lib/testing:flash_ctrl_testutils",
"//sw/device/lib/testing:otp_ctrl_testutils",
],
Expand Down
12 changes: 0 additions & 12 deletions sw/device/silicon_creator/manuf/lib/individualize_sw_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "sw/device/lib/crypto/include/datatypes.h"
#include "sw/device/lib/dif/dif_flash_ctrl.h"
#include "sw/device/lib/dif/dif_otp_ctrl.h"
#include "sw/device/lib/runtime/log.h"
#include "sw/device/lib/testing/flash_ctrl_testutils.h"
#include "sw/device/lib/testing/otp_ctrl_testutils.h"
#include "sw/device/silicon_creator/manuf/lib/flash_info_fields.h"
Expand Down Expand Up @@ -89,9 +88,6 @@ static status_t otp_img_write(const dif_otp_ctrl_t *otp,
kv[i].offset < kInvalidAstCfgOtpAddrHigh)) {
continue;
}
LOG_INFO(
"OTP Write: Partition (%d); Idx (%d); Offset (0x%x); Num Vals (%d)",
partition, i, kv[i].offset, kv[i].num_values);
uint32_t offset;
TRY(dif_otp_ctrl_relative_address(partition, kv[i].offset, &offset));
switch (kv[i].type) {
Expand Down Expand Up @@ -301,9 +297,7 @@ status_t manuf_individualize_device_flash_data_default_cfg_check(

status_t manuf_individualize_device_creator_sw_cfg_lock(
const dif_otp_ctrl_t *otp_ctrl) {
LOG_INFO("Locking CreatorSwCfg partition.");
TRY(lock_otp_partition(otp_ctrl, kDifOtpCtrlPartitionCreatorSwCfg));
LOG_INFO("Done.");
return OK_STATUS();
}

Expand Down Expand Up @@ -346,9 +340,7 @@ status_t manuf_individualize_device_partition_expected_read(

status_t manuf_individualize_device_owner_sw_cfg_lock(
const dif_otp_ctrl_t *otp_ctrl) {
LOG_INFO("Locking OwnerSwCfg partition.");
TRY(lock_otp_partition(otp_ctrl, kDifOtpCtrlPartitionOwnerSwCfg));
LOG_INFO("Done.");
return OK_STATUS();
}

Expand All @@ -365,19 +357,15 @@ status_t manuf_individualize_device_rot_creator_auth_codesign(
TRY(otp_img_write(otp_ctrl, kDifOtpCtrlPartitionRotCreatorAuthCodesign,
kOtpKvRotCreatorAuthCodesign,
kOtpKvRotCreatorAuthCodesignSize));
LOG_INFO("Locking RotCreatorAuthCodesign partition.");
TRY(lock_otp_partition(otp_ctrl, kDifOtpCtrlPartitionRotCreatorAuthCodesign));
LOG_INFO("Done.");
return OK_STATUS();
}

status_t manuf_individualize_device_rot_creator_auth_state(
const dif_otp_ctrl_t *otp_ctrl) {
TRY(otp_img_write(otp_ctrl, kDifOtpCtrlPartitionRotCreatorAuthState,
kOtpKvRotCreatorAuthState, kOtpKvRotCreatorAuthStateSize));
LOG_INFO("Locking RotCreatorAuthState partition.");
TRY(lock_otp_partition(otp_ctrl, kDifOtpCtrlPartitionRotCreatorAuthState));
LOG_INFO("Done.");
return OK_STATUS();
}

Expand Down
Loading