Move K8_ALLOCATE_IO_RANGE to Kconfig.
authorPatrick Georgi <patrick@georgi-clan.de>
Sun, 7 Nov 2010 18:20:51 +0000 (18:20 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Sun, 7 Nov 2010 18:20:51 +0000 (18:20 +0000)
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Patrick Georgi <patrick@georgi-clan.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6036 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

27 files changed:
src/mainboard/amd/serengeti_cheetah/romstage.c
src/mainboard/gigabyte/ga_2761gxdk/Kconfig
src/mainboard/gigabyte/ga_2761gxdk/romstage.c
src/mainboard/gigabyte/m57sli/Kconfig
src/mainboard/gigabyte/m57sli/romstage.c
src/mainboard/hp/dl145_g3/Kconfig
src/mainboard/hp/dl145_g3/romstage.c
src/mainboard/iwill/dk8_htx/romstage.c
src/mainboard/iwill/dk8s2/romstage.c
src/mainboard/iwill/dk8x/romstage.c
src/mainboard/msi/ms7260/Kconfig
src/mainboard/msi/ms7260/romstage.c
src/mainboard/msi/ms9185/romstage.c
src/mainboard/nvidia/l1_2pvv/Kconfig
src/mainboard/nvidia/l1_2pvv/romstage.c
src/mainboard/sunw/ultra40/Kconfig
src/mainboard/sunw/ultra40/romstage.c
src/mainboard/supermicro/h8dme/Kconfig
src/mainboard/supermicro/h8dme/romstage.c
src/mainboard/supermicro/h8dmr/Kconfig
src/mainboard/supermicro/h8dmr/romstage.c
src/mainboard/tyan/s2895/Kconfig
src/mainboard/tyan/s2895/romstage.c
src/mainboard/tyan/s2912/Kconfig
src/mainboard/tyan/s2912/romstage.c
src/northbridge/amd/amdk8/Kconfig
src/northbridge/amd/amdk8/incoherent_ht.c

index 20bf06e9dc10ace95fbd455630a4ce18bb64fe4c..69d7dcdaab5fab558974a60bec643bd1181d91ee 100644 (file)
@@ -1,8 +1,5 @@
 #define SET_NB_CFG_54 1
 
 #define SET_NB_CFG_54 1
 
-//used by incoherent_ht
-//#define K8_ALLOCATE_IO_RANGE 1
-
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
index 5e31f5b51cd73af224cf84c0e4fd0b3f6c571c67..395c75e5bc3f257ba5825108df5deeaa2328d4a9 100644 (file)
@@ -20,6 +20,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index 30fde6507a40c2cbfc7633e6539d8c2bb53a1b14..69d068dd3bbec44e117db351b5cca1722580dff5 100644 (file)
@@ -21,9 +21,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index 19855671d6d037662ce36a3d3a5adb952b3bf5f0..db8465ee9321a22e5e727e25dfc50022eba0dcb0 100644 (file)
@@ -24,6 +24,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index 3d5f8f9f29bbef982b7b2a484c64231930a740fe..1045a573abeadb93a1049f54a6204ad7ac4e2432 100644 (file)
@@ -19,9 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index 0312a0c93fa52e9ef89fabd7a6baa5b21ffe4a13..b5b75a53f4898993f579549418f62614405fb11d 100644 (file)
@@ -22,6 +22,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select RAMINIT_SYSINFO
        select SB_HT_CHAIN_UNITID_OFFSET_ONLY
        select QRANK_DIMM_SUPPORT
        select RAMINIT_SYSINFO
        select SB_HT_CHAIN_UNITID_OFFSET_ONLY
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index fc7b4310a528bdcca9101f661f11b40bc10bd0f5..883ee32a2f634f1d01b02721f7b39c3caa0974bb 100644 (file)
@@ -25,9 +25,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index 36a350b3c1bcc84f361c8c3d1d132124fff50856..fb5a6b547445aa9932860905980944887c0a91d1 100644 (file)
@@ -1,8 +1,5 @@
 #define SET_NB_CFG_54 1
 
 #define SET_NB_CFG_54 1
 
-//used by incoherent_ht
-//#define K8_ALLOCATE_IO_RANGE 1
-
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
index 5c9d8251d69ea929ab561eba2dac36f9611ae799..39f60e006ec21d279187fa723f3593c6060a07f9 100644 (file)
@@ -1,8 +1,5 @@
 #define SET_NB_CFG_54 1
 
 #define SET_NB_CFG_54 1
 
-//used by incoherent_ht
-//#define K8_ALLOCATE_IO_RANGE 1
-
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
index 5c9d8251d69ea929ab561eba2dac36f9611ae799..39f60e006ec21d279187fa723f3593c6060a07f9 100644 (file)
@@ -1,8 +1,5 @@
 #define SET_NB_CFG_54 1
 
 #define SET_NB_CFG_54 1
 
-//used by incoherent_ht
-//#define K8_ALLOCATE_IO_RANGE 1
-
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
 //used by init_cpus and fidvid
 #define SET_FIDVID 0
 //if we want to wait for core1 done before DQS training, set it to 0
index 06ab891cd65f27c41bdffe7b2bf60e59cafc0982..bd9bbe072b662f60b9d0261c4325f8d4b8c90556 100644 (file)
@@ -22,6 +22,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index 568dd40e5ce637ada2fdd4671af108af0c84d645..9804518c0d2533a2377bc59639ddc8ff17ea993c 100644 (file)
@@ -24,7 +24,6 @@
 // #define DQS_TRAIN_DEBUG 1
 // #define RES_DEBUG 1
 
 // #define DQS_TRAIN_DEBUG 1
 // #define RES_DEBUG 1
 
-#define K8_ALLOCATE_IO_RANGE 1
 #if CONFIG_LOGICAL_CPUS == 1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS == 1
 #define SET_NB_CFG_54 1
 #endif
index 64fc9cf5fca1ca3841fc700dde70587bb0e0b017..bc6ead6a754b5c728f1c860fbe293453ad3af59e 100644 (file)
@@ -25,9 +25,6 @@
 
 #define SET_NB_CFG_54 1
 
 
 #define SET_NB_CFG_54 1
 
-//used by incoherent_ht
-//#define K8_ALLOCATE_IO_RANGE 1
-
 //used by init_cpus and fidvid
 #define SET_FIDVID 1
 //if we want to wait for core1 done before DQS training, set it to 0
 //used by init_cpus and fidvid
 #define SET_FIDVID 1
 //if we want to wait for core1 done before DQS training, set it to 0
index 65fe514ad9571c45900957253ecea8cbab807866..1dead70a425c1af6ca92a9b49ed879143a8df241 100644 (file)
@@ -23,6 +23,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index 64d7f8ad37e94327284c00e65d5a5944f91e7e64..5cc933d4c0575ce5872838ef512ae4bd9e0092ee 100644 (file)
@@ -19,9 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index bbdc0952cf14e1cdc82d352336a1067e83c0fd5b..3b8544b1b0f2e5982134f4fb8c031235c0c11258 100644 (file)
@@ -17,6 +17,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select CK804_USE_NIC
        select CK804_USE_ACI
        select QRANK_DIMM_SUPPORT
        select CK804_USE_NIC
        select CK804_USE_ACI
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index fcdddfb23f7a175df2fdd65bd923afa69563af1f..b79c49298c28f1d2a6a097303355bfe0daa7b3d3 100644 (file)
@@ -1,6 +1,3 @@
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index 2dd3542e6723ab92975f0ff146e3d96f9070c61e..10fcbb368e820ecc2caae63c902a6e3c1abc228b 100644 (file)
@@ -23,6 +23,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select BOARD_ROMSIZE_KB_1024
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
        select BOARD_ROMSIZE_KB_1024
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index 1f300ed90f95b54bcf9f8f421f6e883934ec6f0d..cb6d8ecddb1e7dad627dfa8b5c8bb088d4a0654f 100644 (file)
@@ -16,9 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index a1520058205a94e3c0d5f59ffc3b141f91b75f2f..5056446328fb76a4de02013a8298bd33e15d7418 100644 (file)
@@ -22,6 +22,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select BOARD_ROMSIZE_KB_1024
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
        select BOARD_ROMSIZE_KB_1024
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index fcfe0d871cc1a172ba0eddf390ff436bd555dada..4abb4d099e4bf81e850c7d3e194e2b747fb57ac5 100644 (file)
@@ -19,9 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index 94cdb4b9fc791142acfd4bb8e878d7afb61ebe2b..0f8482be2ea5d3f33b616416c391981e8d3733cc 100644 (file)
@@ -18,6 +18,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select HAVE_ACPI_TABLES
        select BOARD_ROMSIZE_KB_1024
        select QRANK_DIMM_SUPPORT
        select HAVE_ACPI_TABLES
        select BOARD_ROMSIZE_KB_1024
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index 8d2abb097b2b39054cb094d2f3c63899a0a10daa..a6eac1bf2b7ef827596c8b16111785988976b1ce 100644 (file)
@@ -1,6 +1,3 @@
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index 8b519c6d617262a4901918714f21af397ceded15..4eadd39d1bb9d5e41b6d4851a3f2cd287fd246ca 100644 (file)
@@ -22,6 +22,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
        select BOARD_ROMSIZE_KB_512
        select RAMINIT_SYSINFO
        select QRANK_DIMM_SUPPORT
+       select K8_ALLOCATE_IO_RANGE
 
 config MAINBOARD_DIR
        string
 
 config MAINBOARD_DIR
        string
index d632a22c3fe0ea098f15ff4ed2a3d7a86cb183d2..2f0ef209164c0f36ecc51497c1f820bba98ec1c8 100644 (file)
@@ -19,9 +19,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define K8_ALLOCATE_IO_RANGE 1
-
-
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
 #if CONFIG_LOGICAL_CPUS==1
 #define SET_NB_CFG_54 1
 #endif
index 4146239e0dc5b8a456bd75f1628eddec12ce473c..60b89d30357323d5a337e04102d96ee5cf781087 100644 (file)
@@ -53,6 +53,10 @@ config QRANK_DIMM_SUPPORT
        bool
        default n
 
        bool
        default n
 
+config K8_ALLOCATE_IO_RANGE
+       bool
+       default n
+
 if K8_REV_F_SUPPORT
 
 config DIMM_DDR2
 if K8_REV_F_SUPPORT
 
 config DIMM_DDR2
index 46e696adbf9ff20185f0cc63959cd9fa459b1266..534951aa6e8335d142a9f4bcb896919ab980188c 100644 (file)
        #define CONFIG_K8_HT_FREQ_1G_SUPPORT 0
 #endif
 
        #define CONFIG_K8_HT_FREQ_1G_SUPPORT 0
 #endif
 
-#ifndef K8_ALLOCATE_IO_RANGE
-       #define K8_ALLOCATE_IO_RANGE 0
-#endif
-
 // Do we need allocate MMIO? Current We direct last 64M to sblink only, We can not lose access to last 4M range to ROM
 #ifndef K8_ALLOCATE_MMIO_RANGE
        #define K8_ALLOCATE_MMIO_RANGE 0
 // Do we need allocate MMIO? Current We direct last 64M to sblink only, We can not lose access to last 4M range to ROM
 #ifndef K8_ALLOCATE_MMIO_RANGE
        #define K8_ALLOCATE_MMIO_RANGE 0
@@ -720,7 +716,7 @@ static int ht_setup_chains_x(void)
        uint8_t next_busn;
        uint8_t ht_c_num;
        uint8_t nodes;
        uint8_t next_busn;
        uint8_t ht_c_num;
        uint8_t nodes;
-#if K8_ALLOCATE_IO_RANGE == 1
+#if CONFIG_K8_ALLOCATE_IO_RANGE
        unsigned next_io_base;
 #endif
 
        unsigned next_io_base;
 #endif
 
@@ -740,7 +736,7 @@ static int ht_setup_chains_x(void)
 
        next_busn=0x3f+1; /* 0 will be used ht chain with SB we need to keep SB in bus0 in auto stage*/
 
 
        next_busn=0x3f+1; /* 0 will be used ht chain with SB we need to keep SB in bus0 in auto stage*/
 
-#if K8_ALLOCATE_IO_RANGE == 1
+#if CONFIG_K8_ALLOCATE_IO_RANGE
        /* io range allocation */
        tempreg = 0 | (((reg>>8) & 0x3) << 4 )|  (0x3<<12); //limit
        pci_write_config32(PCI_DEV(0, 0x18, 1), 0xC4, tempreg);
        /* io range allocation */
        tempreg = 0 | (((reg>>8) & 0x3) << 4 )|  (0x3<<12); //limit
        pci_write_config32(PCI_DEV(0, 0x18, 1), 0xC4, tempreg);
@@ -753,7 +749,7 @@ static int ht_setup_chains_x(void)
        for(ht_c_num=1;ht_c_num<4; ht_c_num++) {
                pci_write_config32(PCI_DEV(0, 0x18, 1), 0xe0 + ht_c_num * 4, 0);
 
        for(ht_c_num=1;ht_c_num<4; ht_c_num++) {
                pci_write_config32(PCI_DEV(0, 0x18, 1), 0xe0 + ht_c_num * 4, 0);
 
-#if K8_ALLOCATE_IO_RANGE == 1
+#if CONFIG_K8_ALLOCATE_IO_RANGE
                /* io range allocation */
                pci_write_config32(PCI_DEV(0, 0x18, 1), 0xc4 + ht_c_num * 8, 0);
                pci_write_config32(PCI_DEV(0, 0x18, 1), 0xc0 + ht_c_num * 8, 0);
                /* io range allocation */
                pci_write_config32(PCI_DEV(0, 0x18, 1), 0xc4 + ht_c_num * 8, 0);
                pci_write_config32(PCI_DEV(0, 0x18, 1), 0xc0 + ht_c_num * 8, 0);
@@ -786,7 +782,7 @@ static int ht_setup_chains_x(void)
                        pci_write_config32(PCI_DEV(0, 0x18, 1), 0xe0 + ht_c_num * 4, tempreg);
                        next_busn+=0x3f+1;
 
                        pci_write_config32(PCI_DEV(0, 0x18, 1), 0xe0 + ht_c_num * 4, tempreg);
                        next_busn+=0x3f+1;
 
-#if K8_ALLOCATE_IO_RANGE == 1
+#if CONFIG_K8_ALLOCATE_IO_RANGE
                        /* io range allocation */
                        tempreg = nodeid | (linkn<<4) |  ((next_io_base+0x3)<<12); //limit
                        pci_write_config32(PCI_DEV(0, 0x18, 1), 0xC4 + ht_c_num * 8, tempreg);
                        /* io range allocation */
                        tempreg = nodeid | (linkn<<4) |  ((next_io_base+0x3)<<12); //limit
                        pci_write_config32(PCI_DEV(0, 0x18, 1), 0xC4 + ht_c_num * 8, tempreg);
@@ -810,7 +806,7 @@ static int ht_setup_chains_x(void)
                        pci_write_config32(dev, regpos, reg);
                }
 
                        pci_write_config32(dev, regpos, reg);
                }
 
-#if K8_ALLOCATE_IO_RANGE == 1
+#if CONFIG_K8_ALLOCATE_IO_RANGE
                /* io range allocation */
                for(i = 0; i< 4; i++) {
                        unsigned regpos;
                /* io range allocation */
                for(i = 0; i< 4; i++) {
                        unsigned regpos;