- Update Config so we now have the proper number of cpus
authorEric Biederman <ebiederm@xmission.com>
Thu, 17 Jul 2003 06:34:30 +0000 (06:34 +0000)
committerEric Biederman <ebiederm@xmission.com>
Thu, 17 Jul 2003 06:34:30 +0000 (06:34 +0000)
- Remove some debugging code from auto.c
- Update coeherent_ht.c so we get the proper broadcast routes.
- Fix the dram probing code.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@973 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/mainboard/arima/hdama/auto.c
src/northbridge/amd/amdk8/coherent_ht.c
src/northbridge/amd/amdk8/raminit.c

index c24f442c22dbaab6069638197eaf50338bcba77f..640bc495c1f06c2fc1ca56db9e7db1193ca9dd13 100644 (file)
@@ -399,18 +399,8 @@ static void main(void)
 #if 0
                init_apic_timer();
 #endif
-#if 1
                setup_default_resource_map();
-#endif
-
-#if 0
-               dump_pci_device(PCI_DEV(0, 0x18, 0));
-#endif
-
                setup_coherent_ht_domain();
-#if 1
-               disable_probes();
-#endif
                enumerate_ht_chain();
                print_pci_devices();
                enable_smbus();
index 516f0fc6ae283b12e166fe4e2212626c4866753f..5c11991646aa54fff013cea6877f65f1c3be7718 100644 (file)
@@ -526,8 +526,8 @@ static unsigned int generate_row(u8 node, u8 row, u8 maxnodes)
        u32 ret=DEFAULT;
 
        static const unsigned int rows_2p[2][2] = {
-               { 0x00030101, 0x00010404 },
-               { 0x00010404, 0x00030101 }
+               { 0x00050101, 0x00010404 },
+               { 0x00010404, 0x00050101 }
        };
 
        static const unsigned int rows_4p[4][4] = {
@@ -622,9 +622,11 @@ static void setup_remote_node(u8 node, u8 cpus)
                uint32_t value;
                uint8_t reg;
                reg = pci_reg[i];
+#if 0
                print_debug("copying reg: ");
                print_debug_hex8(reg);
                print_debug("\r\n");
+#endif
                value = pci_read_config32(NODE_MP(0), reg);
                pci_write_config32(NODE_MP(7), reg, value);
 
index fac6e1adeea78bd5d23c11556799c3c0402ef14f..fd5956743f945c6867f9514cf2cb1db255c07f0f 100644 (file)
@@ -1123,20 +1123,21 @@ static void route_dram_accesses(const struct mem_controller *ctrl,
 {
 #warning "FIXME this is hardcoded for one cpu"
        unsigned node_id;
-       unsigned link_id;
        unsigned limit;
+       unsigned base;
        node_id = 0;
-       link_id = 0;
        /* Route the addresses to node 0 */
        limit = (limit_k << 2);
        limit &= 0xffff0000;
        limit -= 0x00010000;
-       pci_write_config32(ctrl->f1, 0x44, limit | (0 << 7) | (link_id << 4) | (node_id << 0));
-       pci_write_config32(ctrl->f1, 0x40, (base_k << 2) | (0 << 8) | (1<<1) | (1<<0));
+       base = (base_k << 2);
+       base &= 0xffff0000;
+       pci_write_config32(ctrl->f1, 0x44, limit | (0 << 8) | (node_id << 0));
+       pci_write_config32(ctrl->f1, 0x40, base  | (0 << 8) | (1<<1) | (1<<0));
 
-#if 1
-       pci_write_config32(PCI_DEV(0, 0x19, 1), 0x44, limit | (0 << 7) | (link_id << 4) | (node_id << 0));
-       pci_write_config32(PCI_DEV(0, 0x19, 1), 0x40, (base_k << 2) | (0 << 8) | (1<<1) | (1<<0));
+#if 0
+       pci_write_config32(PCI_DEV(0, 0x19, 1), 0x44, limit | (0 << 8) | (1 << 4) | (node_id << 0));
+       pci_write_config32(PCI_DEV(0, 0x19, 1), 0x40, base  | (0 << 8) | (1<<1) | (1<<0));
 #endif
 }