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