diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-05-24 00:12:33 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-06-04 02:39:39 -0600 |
commit | cc7debc7199b3c637ceead92bc103aeb6eb10a38 (patch) | |
tree | de112df94797be76277cf31e18024687748b1549 /arch/x86/include/asm/arch-qemu/qemu.h | |
parent | 5466983200e6f059b3af40eb17b2cd18497a869d (diff) | |
download | u-boot-cc7debc7199b3c637ceead92bc103aeb6eb10a38.tar.gz u-boot-cc7debc7199b3c637ceead92bc103aeb6eb10a38.tar.xz u-boot-cc7debc7199b3c637ceead92bc103aeb6eb10a38.zip |
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/arch-qemu/qemu.h')
-rw-r--r-- | arch/x86/include/asm/arch-qemu/qemu.h | 6 |
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 8d7e9861ca..7a9901d261 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 |