]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
x86: Rename MMCONF_BASE_ADDRESS and make it common across x86
authorSimon Glass <sjg@chromium.org>
Wed, 28 Jan 2015 05:13:33 +0000 (22:13 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 10:59:06 +0000 (12:59 +0200)
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>
arch/x86/Kconfig
arch/x86/cpu/ivybridge/sdram.c
arch/x86/include/asm/arch-ivybridge/sandybridge.h
board/google/chromebook_link/Kconfig

index 90e828a26ee4b02290724868cceec5b6683a71b3..928fc60863c81bfe57f6da6e7a071647b2e7ed79 100644 (file)
@@ -356,4 +356,18 @@ source "board/google/chromebook_link/Kconfig"
 
 source "board/intel/crownbay/Kconfig"
 
+config PCIE_ECAM_BASE
+       hex
+    default 0xe0000000
+       help
+         This is the memory-mapped address of PCI configuration space, which
+         is only available through the Enhanced Configuration Access
+         Mechanism (ECAM) with PCI Express. It can be set up almost
+         anywhere. Before it is set up, it is possible to access PCI
+         configuration space through I/O access, but memory access is more
+         convenient. Using this, PCI can be scanned and configured. This
+         should be set to a region that does not conflict with memory
+         assigned to PCI devices - i.e. the memory and prefetch regions, as
+         passed to pci_set_region().
+
 endmenu
index 49634485f3e249cdba4ac793537506baac1ba2bb..766b385c252a553262aeb4b5d8cf7003aa3e63fa 100644 (file)
@@ -757,7 +757,7 @@ int dram_init(void)
                .mchbar = DEFAULT_MCHBAR,
                .dmibar = DEFAULT_DMIBAR,
                .epbar = DEFAULT_EPBAR,
-               .pciexbar = CONFIG_MMCONF_BASE_ADDRESS,
+               .pciexbar = CONFIG_PCIE_ECAM_BASE,
                .smbusbar = SMBUS_IO_BASE,
                .wdbbar = 0x4000000,
                .wdbsize = 0x1000,
index cf7457f42dc61e33635b4c4359b4686ff6d2f86f..c9605258b59160853566518c0de5fea96d8e6586 100644 (file)
@@ -43,7 +43,7 @@
 #define DEFAULT_EPBAR          0xfed19000      /* 4 KB */
 #define DEFAULT_RCBABASE       0xfed1c000
 /* 4 KB per PCIe device */
-#define DEFAULT_PCIEXBAR       CONFIG_MMCONF_BASE_ADDRESS
+#define DEFAULT_PCIEXBAR       CONFIG_PCIE_ECAM_BASE
 
 /* Device 0:0.0 PCI configuration space (Host Bridge) */
 #define EPBAR          0x40
index 33a31f311fcff9e145901cd172f412563519f638..ea454721c52f44cd771b5c5b32b4e8c9cd91fac8 100644 (file)
@@ -22,8 +22,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select MARK_GRAPHICS_MEM_WRCOMB
        select BOARD_ROMSIZE_KB_8192
 
-config MMCONF_BASE_ADDRESS
-       hex
+config PCIE_ECAM_BASE
        default 0xf0000000
 
 config EARLY_POST_CROS_EC