diff options
author | Subrata Banik <subratabanik@google.com> | 2022-12-05 20:52:38 +0530 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2022-12-08 07:38:02 +0000 |
commit | 85e619c51472940f8350ceee8c487f4e54d7a2d9 (patch) | |
tree | 97f25588f452dbddfddeb3ad0c7f12f5f53f3c56 /src | |
parent | 0fbbdfe60e515bcb360bf1c4d5089f6496c98bfb (diff) |
soc/intel/meteorlake: Implement SoC override to set CPU privilege level
This patch implements SoC overrides to set CPU privilege level for
Meteor Lake SoC.
Change-Id: I33794f51e57dd8e0ffe61dfd2f91c6ef3f9187c9
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70352
Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/meteorlake/cpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/meteorlake/cpu.c b/src/soc/intel/meteorlake/cpu.c index 55ab15c419..fbf625e1c2 100644 --- a/src/soc/intel/meteorlake/cpu.c +++ b/src/soc/intel/meteorlake/cpu.c @@ -29,6 +29,15 @@ bool cpu_soc_is_in_untrusted_mode(void) return !!(msr.lo & ENABLE_IA_UNTRUSTED); } +void cpu_soc_bios_done(void) +{ + msr_t msr; + + msr = rdmsr(MSR_BIOS_DONE); + msr.lo |= ENABLE_IA_UNTRUSTED; + wrmsr(MSR_BIOS_DONE, msr); +} + uint8_t get_supported_lpm_mask(void) { return LPM_S0i2_0 | LPM_S0i2_1 | LPM_S0i2_2; |