summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/intel_regs.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-11 22:06:55 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-03-17 10:27:24 +0800
commit06d336cca284cc767a095ce40afca79b4aa0ecb0 (patch)
tree4ffb6481ff02ed6f29d1767fd05c2d186aa3d9ff /arch/x86/include/asm/intel_regs.h
parent9e66506d33eac67bfa814ccba1c9ccd06bb5b107 (diff)
downloadu-boot-imx-06d336cca284cc767a095ce40afca79b4aa0ecb0.zip
u-boot-imx-06d336cca284cc767a095ce40afca79b4aa0ecb0.tar.gz
u-boot-imx-06d336cca284cc767a095ce40afca79b4aa0ecb0.tar.bz2
x86: Create a common header for Intel register access
There are several blocks of registers that are accessed from all over the code on Intel CPUs. These don't currently have their own driver and it is not clear whether having a driver makes sense. An example is the Memory Controller Hub (MCH). We map it to a known location on some Intel chips (mostly those without FSP - Firmware Support Package). Add a new header file for these registers, and move MCH into it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/intel_regs.h')
-rw-r--r--arch/x86/include/asm/intel_regs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/include/asm/intel_regs.h b/arch/x86/include/asm/intel_regs.h
new file mode 100644
index 0000000..9725738
--- /dev/null
+++ b/arch/x86/include/asm/intel_regs.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2016 Google, Inc
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef __ASM_INTEL_REGS_H
+#define __ASM_INTEL_REGS_H
+
+/* Access the memory-controller hub */
+#define MCH_BASE_ADDRESS 0xfed10000
+#define MCH_BASE_SIZE 0x8000
+#define MCHBAR_REG(reg) (MCH_BASE_ADDRESS + (reg))
+
+#endif