summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/fsp/fsp_dram.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-07-22 01:21:15 -0700
committerSimon Glass <sjg@chromium.org>2015-07-28 10:36:25 -0600
commit1ed6648be08e4da76a08a09317932c73db0745ff (patch)
treef49ac261eae9a6a19304bf8bddf1fd74ee7ed0d8 /arch/x86/lib/fsp/fsp_dram.c
parent9830d2ebb4f1683ff7f50b3420374a1843839378 (diff)
downloadtalos-obmc-uboot-1ed6648be08e4da76a08a09317932c73db0745ff.tar.gz
talos-obmc-uboot-1ed6648be08e4da76a08a09317932c73db0745ff.zip
x86: Reserve PCIe ECAM address range in the E820 table
We should mark PCIe ECAM address range in the E820 table as reserved otherwise kernel will not attempt to use ECAM. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/fsp/fsp_dram.c')
-rw-r--r--arch/x86/lib/fsp/fsp_dram.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c
index 4c0a7c82ca..28552fa15a 100644
--- a/arch/x86/lib/fsp/fsp_dram.c
+++ b/arch/x86/lib/fsp/fsp_dram.c
@@ -77,5 +77,11 @@ unsigned install_e820_map(unsigned max_entries, struct e820entry *entries)
num_entries++;
}
+ /* Mark PCIe ECAM address range as reserved */
+ entries[num_entries].addr = CONFIG_PCIE_ECAM_BASE;
+ entries[num_entries].size = CONFIG_PCIE_ECAM_SIZE;
+ entries[num_entries].type = E820_RESERVED;
+ num_entries++;
+
return num_entries;
}
OpenPOWER on IntegriCloud