summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2020-05-12 09:12:40 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-06-28 21:44:27 +0000
commitd4698d94af65db0b85871c09e46832df330f582d (patch)
tree30e6f9356787267cfdd67435e655c9a579598330 /src/soc/intel/xeon_sp
parentdb654eae79840f759c5645005d77770186513a5f (diff)
downloadcoreboot-d4698d94af65db0b85871c09e46832df330f582d.tar.xz
soc/xeon_sp/cpx: Define MSR PPIN related registers
These changes are in accordance with the documentation: [*] page 208-209 Intel(R) 64 and IA-32 Architectures, Software Developer’s Manual, Volume 4: Model-Specific Registers. May 2019. Order Number: 335592-070US Tested on OCP DeltaLake with change https://review.coreboot.org/c/coreboot/+/40308/ Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Change-Id: I87134b2e98c9b0c031be9375b75a2aa1284ae9bb Reviewed-on: https://review.coreboot.org/c/coreboot/+/41278 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Diffstat (limited to 'src/soc/intel/xeon_sp')
-rw-r--r--src/soc/intel/xeon_sp/cpx/include/soc/msr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/include/soc/msr.h b/src/soc/intel/xeon_sp/cpx/include/soc/msr.h
index f9d59f1192..922bce94b6 100644
--- a/src/soc/intel/xeon_sp/cpx/include/soc/msr.h
+++ b/src/soc/intel/xeon_sp/cpx/include/soc/msr.h
@@ -96,4 +96,13 @@
#define EPB_ENERGY_POLICY_SHIFT 3
#define EPB_ENERGY_POLICY_MASK (0xf << EPB_ENERGY_POLICY_SHIFT)
+/* MSR Protected Processor Inventory Number */
+#define MSR_PPIN_CTL 0x04e
+#define MSR_PPIN_CTL_LOCK 0x1
+#define MSR_PPIN_CTL_ENABLE_SHIFT 1
+#define MSR_PPIN_CTL_ENABLE (0x1 << MSR_PPIN_CTL_ENABLE_SHIFT)
+#define MSR_PPIN 0x04f
+#define MSR_PPIN_CAP_SHIFT 23
+#define MSR_PPIN_CAP (0x1 << MSR_PPIN_CAP_SHIFT)
+
#endif /* _SOC_MSR_H_ */