summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorKapil Porwal <kapilporwal@google.com>2022-11-17 14:53:26 +0530
committerMartin L Roth <gaumless@gmail.com>2022-11-30 15:12:24 +0000
commit6cecb0d963dd8df9440487690c11a6da75d8b70f (patch)
treecedf0de3a2640954c9b7a6c58d64a853f2ca1a40 /src/soc
parente8f86bc5036ab73941c1dbbed365e9f87cc5e21c (diff)
soc/intel/meteorlake: Rename method is_eom to is_manufacturing_mode
BUG=none TEST=Build and boot to google/rex. Excerpt from google/rex coreboot log: [DEBUG] ME: Manufacturing Mode : YES Signed-off-by: Kapil Porwal <kapilporwal@google.com> Change-Id: I8d2de3365126ba618c987c412c4e9784012f9e0b Reviewed-on: https://review.coreboot.org/c/coreboot/+/69698 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/meteorlake/me.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/soc/intel/meteorlake/me.c b/src/soc/intel/meteorlake/me.c
index f746fe060d..4f2bc5345e 100644
--- a/src/soc/intel/meteorlake/me.c
+++ b/src/soc/intel/meteorlake/me.c
@@ -76,16 +76,15 @@ union me_hfsts6 {
} __packed fields;
};
-
-/*
- * Manufacturing mode is disabled if the descriptor is locked, fuses
- * are programmed and manufacturing variables are locked.
- * The function returns true if manufacturing mode is disabled otherwise false.
- */
-static bool is_eom(union me_hfsts1 hfsts1, union me_hfsts6 hfsts6)
+static bool is_manufacturing_mode(union me_hfsts1 hfsts1, union me_hfsts6 hfsts6)
{
- return (hfsts1.fields.mfg_mode == 0) && (hfsts6.fields.manuf_lock == 1) &&
- (hfsts6.fields.fpf_soc_lock == 1);
+ /*
+ * ME manufacturing mode is disabled if the descriptor is locked, fuses
+ * are programmed and manufacturing variables are locked.
+ */
+ return !((hfsts1.fields.mfg_mode == 0) &&
+ (hfsts6.fields.fpf_soc_lock == 1) &&
+ (hfsts6.fields.manuf_lock == 1));
}
static void dump_me_status(void *unused)
@@ -96,6 +95,7 @@ static void dump_me_status(void *unused)
union me_hfsts4 hfsts4;
union me_hfsts5 hfsts5;
union me_hfsts6 hfsts6;
+ bool manufacturing_mode;
if (!is_cse_enabled())
return;
@@ -114,8 +114,9 @@ static void dump_me_status(void *unused)
printk(BIOS_DEBUG, "ME: HFSTS5 : 0x%08X\n", hfsts5.data);
printk(BIOS_DEBUG, "ME: HFSTS6 : 0x%08X\n", hfsts6.data);
+ manufacturing_mode = is_manufacturing_mode(hfsts1, hfsts6);
printk(BIOS_DEBUG, "ME: Manufacturing Mode : %s\n",
- is_eom(hfsts1, hfsts6) ? "NO" : "YES");
+ manufacturing_mode ? "YES" : "NO");
/*
* The SPI Protection Mode bit reflects SPI descriptor