| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <types.h> |
| 4 | #include <cpu/x86/msr.h> |
| 5 | #include <cpu/intel/speedstep.h> |
| 6 | |
| 7 | #include "model_2065x.h" |
| 8 | |
| 9 | /* MSR Documentation based on |
| 10 | * "Sandy Bridge Processor Family BIOS Writer's Guide (BWG)" |
| 11 | * Document Number 504790 |
| 12 | * Revision 1.6.0, June 2012 */ |
| 13 | |
| 14 | void intel_model_2065x_finalize_smm(void) |
| 15 | { |
| 16 | /* Lock C-State MSR */ |
| 17 | msr_set(MSR_PKG_CST_CONFIG_CONTROL, BIT(15)); |
| 18 | |
| 19 | /* Lock TM interrupts - route thermal events to all processors */ |
| 20 | msr_set(MSR_MISC_PWR_MGMT, BIT(22)); |
| 21 | } |