Commit 2d934e5703b712686c3ec67f6d5eeb137c68805d
1 parent
eea0f11278
Exists in
v2017.01-smarct4x
and in
37 other branches
x86: Rename MMCONF_BASE_ADDRESS and make it common across x86
This setting will be used by more than just ivybridge so make it common. Also rename it to PCIE_ECAM_BASE which is a more descriptive name. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Showing 4 changed files with 17 additions and 4 deletions Side-by-side Diff
arch/x86/Kconfig
... | ... | @@ -356,5 +356,19 @@ |
356 | 356 | |
357 | 357 | source "board/intel/crownbay/Kconfig" |
358 | 358 | |
359 | +config PCIE_ECAM_BASE | |
360 | + hex | |
361 | + default 0xe0000000 | |
362 | + help | |
363 | + This is the memory-mapped address of PCI configuration space, which | |
364 | + is only available through the Enhanced Configuration Access | |
365 | + Mechanism (ECAM) with PCI Express. It can be set up almost | |
366 | + anywhere. Before it is set up, it is possible to access PCI | |
367 | + configuration space through I/O access, but memory access is more | |
368 | + convenient. Using this, PCI can be scanned and configured. This | |
369 | + should be set to a region that does not conflict with memory | |
370 | + assigned to PCI devices - i.e. the memory and prefetch regions, as | |
371 | + passed to pci_set_region(). | |
372 | + | |
359 | 373 | endmenu |
arch/x86/cpu/ivybridge/sdram.c
... | ... | @@ -757,7 +757,7 @@ |
757 | 757 | .mchbar = DEFAULT_MCHBAR, |
758 | 758 | .dmibar = DEFAULT_DMIBAR, |
759 | 759 | .epbar = DEFAULT_EPBAR, |
760 | - .pciexbar = CONFIG_MMCONF_BASE_ADDRESS, | |
760 | + .pciexbar = CONFIG_PCIE_ECAM_BASE, | |
761 | 761 | .smbusbar = SMBUS_IO_BASE, |
762 | 762 | .wdbbar = 0x4000000, |
763 | 763 | .wdbsize = 0x1000, |
arch/x86/include/asm/arch-ivybridge/sandybridge.h
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | #define DEFAULT_EPBAR 0xfed19000 /* 4 KB */ |
44 | 44 | #define DEFAULT_RCBABASE 0xfed1c000 |
45 | 45 | /* 4 KB per PCIe device */ |
46 | -#define DEFAULT_PCIEXBAR CONFIG_MMCONF_BASE_ADDRESS | |
46 | +#define DEFAULT_PCIEXBAR CONFIG_PCIE_ECAM_BASE | |
47 | 47 | |
48 | 48 | /* Device 0:0.0 PCI configuration space (Host Bridge) */ |
49 | 49 | #define EPBAR 0x40 |
board/google/chromebook_link/Kconfig