summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/mtrr.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-28 20:25:13 -0600
committerSimon Glass <sjg@chromium.org>2015-04-29 21:02:34 -0600
commit1a06d2a3106f9de5a4b9bec68593593fcf930e3b (patch)
treeebd0317b5f34ead5f27b11730d2ee059ed472953 /arch/x86/include/asm/mtrr.h
parentb551173b73b4ae167c2e592a57a2e46426ebd1af (diff)
downloadblackbird-obmc-uboot-1a06d2a3106f9de5a4b9bec68593593fcf930e3b.tar.gz
blackbird-obmc-uboot-1a06d2a3106f9de5a4b9bec68593593fcf930e3b.zip
x86: Add defines for fixed MTRRs
Add MSR numbers for the fixed MTRRs. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/mtrr.h')
-rw-r--r--arch/x86/include/asm/mtrr.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h
index fda4eae10d..3841593cd5 100644
--- a/arch/x86/include/asm/mtrr.h
+++ b/arch/x86/include/asm/mtrr.h
@@ -34,6 +34,20 @@
/* Number of MTRRs supported */
#define MTRR_COUNT 8
+#define NUM_FIXED_RANGES 88
+#define RANGES_PER_FIXED_MTRR 8
+#define MTRR_FIX_64K_00000_MSR 0x250
+#define MTRR_FIX_16K_80000_MSR 0x258
+#define MTRR_FIX_16K_A0000_MSR 0x259
+#define MTRR_FIX_4K_C0000_MSR 0x268
+#define MTRR_FIX_4K_C8000_MSR 0x269
+#define MTRR_FIX_4K_D0000_MSR 0x26a
+#define MTRR_FIX_4K_D8000_MSR 0x26b
+#define MTRR_FIX_4K_E0000_MSR 0x26c
+#define MTRR_FIX_4K_E8000_MSR 0x26d
+#define MTRR_FIX_4K_F0000_MSR 0x26e
+#define MTRR_FIX_4K_F8000_MSR 0x26f
+
#if !defined(__ASSEMBLER__)
/**
OpenPOWER on IntegriCloud