summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-05-23 16:12:33 (GMT)
committerSimon Glass <sjg@chromium.org>2015-06-04 08:39:39 (GMT)
commitcc7debc7199b3c637ceead92bc103aeb6eb10a38 (patch)
treede112df94797be76277cf31e18024687748b1549 /arch/x86/include/asm
parent5466983200e6f059b3af40eb17b2cd18497a869d (diff)
downloadu-boot-fsl-qoriq-cc7debc7199b3c637ceead92bc103aeb6eb10a38.tar.xz
x86: qemu: Turn on legacy segments decode
By default the legacy segments C/D/E/F do not decode to system RAM. Turn on the decode via Programmable Attribute Map (PAM) registers so that we can write configuration tables in the F segment. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/arch-qemu/qemu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/arch-qemu/qemu.h b/arch/x86/include/asm/arch-qemu/qemu.h
index 8d7e986..7a9901d 100644
--- a/arch/x86/include/asm/arch-qemu/qemu.h
+++ b/arch/x86/include/asm/arch-qemu/qemu.h
@@ -7,6 +7,12 @@
#ifndef _ARCH_QEMU_H_
#define _ARCH_QEMU_H_
+/* Programmable Attribute Map (PAM) Registers */
+#define I440FX_PAM 0x59
+#define Q35_PAM 0x90
+#define PAM_NUM 7
+#define PAM_RW 0x33
+
/* I/O Ports */
#define CMOS_ADDR_PORT 0x70
#define CMOS_DATA_PORT 0x71