aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/msr-index.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-06 21:42:34 -0700
committerBin Meng <bmeng.cn@gmail.com>2019-12-15 11:44:20 +0800
commit86c70e9ca65fcb84fd7751fbd5e153e3aa2e544d (patch)
treeb5cd69cb0593441293a59a19b6ab4eb02ff15acc /arch/x86/include/asm/msr-index.h
parentdf81abda0e95b28a0eff201ac3faa375f061f367 (diff)
downloadu-boot-86c70e9ca65fcb84fd7751fbd5e153e3aa2e544d.zip
u-boot-86c70e9ca65fcb84fd7751fbd5e153e3aa2e544d.tar.gz
u-boot-86c70e9ca65fcb84fd7751fbd5e153e3aa2e544d.tar.bz2
x86: Make MSR_PKG_POWER_SKU common
This is used on several boards so add it to the common file. Also add a useful power-limit value while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/msr-index.h')
-rw-r--r--arch/x86/include/asm/msr-index.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h
index 5bc8b6c..79a9369 100644
--- a/arch/x86/include/asm/msr-index.h
+++ b/arch/x86/include/asm/msr-index.h
@@ -241,10 +241,17 @@
#define PKG_POWER_LIMIT_CLAMP (1 << 16)
#define PKG_POWER_LIMIT_TIME_SHIFT 17
#define PKG_POWER_LIMIT_TIME_MASK 0x7f
+/*
+ * For Mobile, RAPL default PL1 time window value set to 28 seconds.
+ * RAPL time window calculation defined as follows:
+ * Time Window = (float)((1+X/4)*(2*^Y), X Corresponds to [23:22],
+ * Y to [21:17] in MSR 0x610. 28 sec is equal to 0x6e.
+ */
+#define MB_POWER_LIMIT1_TIME_DEFAULT 0x6e
#define MSR_PKG_ENERGY_STATUS 0x00000611
#define MSR_PKG_PERF_STATUS 0x00000613
-#define MSR_PKG_POWER_INFO 0x00000614
+#define MSR_PKG_POWER_SKU 0x614
#define MSR_DRAM_POWER_LIMIT 0x00000618
#define MSR_DRAM_ENERGY_STATUS 0x00000619