blob: afdb7df200392a2fd475ab06530106d62e005bcb [file] [log] [blame]
Angel Ponsf23ae0b2020-04-02 23:48:12 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauer5c554632012-04-04 00:09:50 +02002
Michael Niewöhner90df9162020-10-13 22:58:28 +02003#include <types.h>
Stefan Reinauer5c554632012-04-04 00:09:50 +02004#include <cpu/x86/msr.h>
Elyes HAOUAS45ce5d82021-01-31 09:15:30 +01005
Stefan Reinauer5c554632012-04-04 00:09:50 +02006#include "model_206ax.h"
7
Alexander Couzensf251a6d2015-01-28 01:51:04 +01008/* 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
Stefan Reinauer5c554632012-04-04 00:09:50 +020013void intel_model_206ax_finalize_smm(void)
14{
Elyes HAOUASece26962018-08-07 12:24:16 +020015 /* Lock TM interrupts - route thermal events to all processors */
Michael Niewöhner90df9162020-10-13 22:58:28 +020016 msr_set(MSR_MISC_PWR_MGMT, BIT(22));
Alexander Couzensf251a6d2015-01-28 01:51:04 +010017
18 /* Lock memory configuration to protect SMM */
Michael Niewöhner90df9162020-10-13 22:58:28 +020019 msr_set(MSR_LT_LOCK_MEMORY, BIT(0));
Stefan Reinauer5c554632012-04-04 00:09:50 +020020}