- Timestamp:
- 09/20/08 00:58:59 (4 months ago)
- Location:
- trunk/coreboot-v2/src/southbridge/via/k8t890
- Files:
-
- 3 modified
-
k8t890_bridge.c (modified) (2 diffs)
-
k8t890_dram.c (modified) (3 diffs)
-
k8t890_host_ctrl.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coreboot-v2/src/southbridge/via/k8t890/k8t890_bridge.c
r3183 r3587 25 25 static void bridge_enable(struct device *dev) 26 26 { 27 u8 tmp; 27 28 print_debug("B188 device dump\n"); 28 29 29 /* VIA recommends this, sorry no known info. */ 30 30 … … 45 45 writeback(dev, 0x3e, 0x16); 46 46 dump_south(dev); 47 48 /* disable I/O and memory decode, or it freezes PCI bus during BAR sizing */ 49 tmp = pci_read_config8(dev, PCI_COMMAND); 50 tmp &= ~0x3; 51 pci_write_config8(dev, PCI_COMMAND, tmp); 52 47 53 } 48 54 -
trunk/coreboot-v2/src/southbridge/via/k8t890/k8t890_dram.c
r3183 r3587 64 64 /* The Address Next to the Last Valid DRAM Address */ 65 65 pci_write_config16(dev, 0x88, (msr.lo >> 24) | reg); 66 67 } 68 69 static void dram_enable_k8m890(struct device *dev) 70 { 71 dram_enable(dev); 72 73 /* enable VGA, so the bridges gets VGA_EN and resources are set */ 74 pci_write_config8(dev, 0xa1, 0x80); 66 75 } 67 76 … … 114 123 printk_debug("VIA FB proposed base: %llx\n", proposed_base); 115 124 116 /* enable UMA but no FB */125 /* Step 1: enable UMA but no FB */ 117 126 pci_write_config8(dev, 0xa1, 0x80); 118 127 119 /* 27:21 goes to 7:1, 0 is enable CPU access */ 120 tmp = (proposed_base >> 20) | 0x1; 121 pci_write_config8(dev, 0xa0, tmp); 122 123 /* 31:28 goes to 3:0 */ 124 tmp = ((proposed_base >> 28) & 0xf); 125 tmp = ((log2(K8M890_FBSIZEMB) - 2) << 4); 126 tmp |= 0x80; 128 /* Step 2: enough is just the FB size, the CPU accessible address is not needed */ 129 tmp = ((log2(K8M890_FBSIZEMB) - 2) << 4) | 0x80; 127 130 pci_write_config8(dev, 0xa1, tmp); 128 131 … … 142 145 .set_resources = pci_dev_set_resources, 143 146 .enable_resources = pci_dev_enable_resources, 144 .enable = dram_enable ,147 .enable = dram_enable_k8m890, 145 148 .init = dram_init_fb, 146 149 .ops_pci = 0, -
trunk/coreboot-v2/src/southbridge/via/k8t890/k8t890_host_ctrl.c
r3183 r3587 106 106 pci_write_config8(dev, 0xa5, 0x3c); 107 107 108 /* Arbitration control 2 */109 pci_write_config8(dev, 0xa6, 0x8 2);108 /* Arbitration control 2, Enable C2NOW delay to PSTATECTL */ 109 pci_write_config8(dev, 0xa6, 0x83); 110 110 111 111 }
