summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/flashrom_tester/flashrom/src/lib.rs8
-rw-r--r--util/flashrom_tester/src/main.rs2
-rw-r--r--util/flashrom_tester/src/tests.rs4
3 files changed, 7 insertions, 7 deletions
diff --git a/util/flashrom_tester/flashrom/src/lib.rs b/util/flashrom_tester/flashrom/src/lib.rs
index 41393e841..e2c91499e 100644
--- a/util/flashrom_tester/flashrom/src/lib.rs
+++ b/util/flashrom_tester/flashrom/src/lib.rs
@@ -51,19 +51,19 @@ pub use libflashrom::{
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum FlashChip {
- HOST,
+ INTERNAL,
}
impl FlashChip {
pub fn from(s: &str) -> Result<FlashChip, &str> {
match s {
- "host" => Ok(FlashChip::HOST),
+ "internal" => Ok(FlashChip::INTERNAL),
_ => Err("cannot convert str to enum"),
}
}
pub fn to(fc: FlashChip) -> &'static str {
match fc {
- FlashChip::HOST => "host",
+ FlashChip::INTERNAL => "internal",
}
}
@@ -80,7 +80,7 @@ impl FlashChip {
/// disabled.
pub fn can_control_hw_wp(&self) -> bool {
match self {
- FlashChip::HOST => true,
+ FlashChip::INTERNAL => true,
}
}
}
diff --git a/util/flashrom_tester/src/main.rs b/util/flashrom_tester/src/main.rs
index b8a2581ac..3035ae5f3 100644
--- a/util/flashrom_tester/src/main.rs
+++ b/util/flashrom_tester/src/main.rs
@@ -82,7 +82,7 @@ fn main() {
.arg(
Arg::with_name("ccd_target_type")
.required(true)
- .possible_values(&["host"]),
+ .possible_values(&["internal"]),
)
.arg(
Arg::with_name("print-layout")
diff --git a/util/flashrom_tester/src/tests.rs b/util/flashrom_tester/src/tests.rs
index 721a789d5..d1e9d6194 100644
--- a/util/flashrom_tester/src/tests.rs
+++ b/util/flashrom_tester/src/tests.rs
@@ -219,8 +219,8 @@ fn hwwp_locks_swwp_test(env: &mut TestEnv) -> TestResult {
/// is actually able to write to the Flash. This only makes sense for chips
/// running Coreboot, which we assume is just host.
fn elog_sanity_test(env: &mut TestEnv) -> TestResult {
- if env.chip_type() != FlashChip::HOST {
- info!("Skipping ELOG sanity check for non-host chip");
+ if env.chip_type() != FlashChip::INTERNAL {
+ info!("Skipping ELOG sanity check for non-internal chip");
return Ok(());
}
// flash should be back in the golden state