summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/brya/bootblock.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainboard/google/brya/bootblock.c b/src/mainboard/google/brya/bootblock.c
index d391cd1de5..d293c5855d 100644
--- a/src/mainboard/google/brya/bootblock.c
+++ b/src/mainboard/google/brya/bootblock.c
@@ -29,7 +29,12 @@ static void configure_pmc_descriptor(void)
return;
}
- if (si_desc_buf[PMC_DESC_7_BYTE3] == 0x40) {
+ if (si_desc_buf[PMC_DESC_7_BYTE3] != 0x40) {
+ printk(BIOS_DEBUG, "Update of PMC Descriptor is not required!\n");
+ return;
+ }
+
+ {
si_desc_buf[PMC_DESC_7_BYTE3] = 0x44;
if (rdev_eraseat(&desc_rdev, 0, SI_DESC_REGION_SZ) != SI_DESC_REGION_SZ) {
@@ -49,8 +54,6 @@ static void configure_pmc_descriptor(void)
do_full_reset();
die("Failed to trigger GLOBAL RESET\n");
}
-
- printk(BIOS_DEBUG, "Update of PMC Descriptor is not required!\n");
}
void bootblock_mainboard_early_init(void)