Skip to content

Commit

Permalink
[manuf] remove raw unlock step from CP stage
Browse files Browse the repository at this point in the history
The CP provisioning program does not need to perform a raw unlock
operation as this is already done during chip calibration.

Signed-off-by: Tim Trippel <[email protected]>
  • Loading branch information
timothytrippel committed Dec 12, 2023
1 parent 7fbd19e commit f485d6d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion hw/ip/otp_ctrl/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ load("//rules:autogen.bzl", "autogen_hjson_header")
load(
"//rules:otp.bzl",
"STD_OTP_OVERLAYS",
"STD_OTP_OVERLAYS_WITHOUT_SECRET_PARTITIONS",
"otp_alert_classification",
"otp_alert_digest",
"otp_bytestring",
Expand Down
1 change: 0 additions & 1 deletion hw/ip/otp_ctrl/data/earlgrey_a0_skus/sival_bringup/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ cc_library(
otp_image(
name = "otp_img_test_unlocked0_manuf_empty",
src = "//hw/ip/otp_ctrl/data:otp_json_test_unlocked0",
visibility = ["//visibility:private"],
)

# `MANUF_INITIALIZED` configuration. This configuration will be generally used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ opentitan_test(
name = "cp_provision",
cw310 = cw310_jtag_params(
binaries = {":sram_cp_provision": "sram_cp_provision"},
bitstream = "//hw/bitstream:rom_with_fake_keys_otp_raw",
otp = "//hw/ip/otp_ctrl/data/earlgrey_a0_skus/sival_bringup:otp_img_test_unlocked0_manuf_empty",
tags = ["manuf"],
test_cmd = _CP_PROVISIONING_CMD_ARGS,
test_harness = "//sw/host/tests/manuf/provisioning/cp",
),
exec_env = {
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys": None,
"//hw/top_earlgrey:fpga_cw310_sival": None,
"//hw/top_earlgrey:silicon_creator": None,
},
silicon = silicon_jtag_params(
Expand Down
7 changes: 1 addition & 6 deletions sw/host/tests/manuf/provisioning/cp/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::time::Duration;
use anyhow::Result;
use clap::Parser;

use cp_lib::{reset_and_lock, run_sram_cp_provision, unlock_raw, ManufCpProvisioningDataInput};
use cp_lib::{reset_and_lock, run_sram_cp_provision, ManufCpProvisioningDataInput};
use opentitanlib::test_utils::init::InitializeTest;
use opentitanlib::test_utils::load_sram_program::SramProgramParams;
use ujson_lib::provisioning_data::ManufCpProvisioningData;
Expand Down Expand Up @@ -48,11 +48,6 @@ fn main() -> Result<()> {
)?,
};

unlock_raw(
&transport,
&opts.init.jtag_params,
opts.init.bootstrap.options.reset_delay,
)?;
run_sram_cp_provision(
&transport,
&opts.init.jtag_params,
Expand Down

0 comments on commit f485d6d

Please sign in to comment.