Arthur Heymans | be91398 | 2016-10-15 18:00:22 +0200 | [diff] [blame^] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2007-2009 coresystems GmbH |
| 5 | ## Copyright (C) 2016 Arthur Heymans arthur@aheymans.xyz |
| 6 | ## |
| 7 | ## This program is free software; you can redistribute it and/or |
| 8 | ## modify it under the terms of the GNU General Public License as |
| 9 | ## published by the Free Software Foundation; version 2 of the License. |
| 10 | ## |
| 11 | ## This program is distributed in the hope that it will be useful, |
| 12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ## GNU General Public License for more details. |
| 15 | ## |
| 16 | |
| 17 | chip northbridge/intel/i945 |
| 18 | |
| 19 | device cpu_cluster 0 on |
| 20 | chip cpu/intel/socket_LGA775 |
| 21 | device lapic 0 on end |
| 22 | end |
| 23 | chip cpu/intel/model_1067x |
| 24 | device lapic 0xACAC off end |
| 25 | end |
| 26 | end |
| 27 | |
| 28 | device domain 0 on |
| 29 | device pci 00.0 on # host bridge |
| 30 | subsystemid 0x1458 0x5000 |
| 31 | end |
| 32 | device pci 01.0 on # i945 PCIe root port |
| 33 | subsystemid 0x1458 0x5000 |
| 34 | ioapic_irq 2 INTA 0x10 |
| 35 | end |
| 36 | device pci 02.0 on # vga controller |
| 37 | subsystemid 0x1458 0xd000 |
| 38 | ioapic_irq 2 INTA 0x10 |
| 39 | end |
| 40 | |
| 41 | chip southbridge/intel/i82801gx |
| 42 | register "pirqa_routing" = "0x8c" |
| 43 | register "pirqb_routing" = "0x8a" |
| 44 | register "pirqc_routing" = "0x83" |
| 45 | register "pirqd_routing" = "0x8b" |
| 46 | register "pirqe_routing" = "0x80" |
| 47 | register "pirqf_routing" = "0x80" |
| 48 | register "pirqg_routing" = "0x80" |
| 49 | register "pirqh_routing" = "0x85" |
| 50 | |
| 51 | # GPI routing |
| 52 | # 0 No effect (default) |
| 53 | # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set) |
| 54 | # 2 SCI (if corresponding GPIO_EN bit is also set) |
| 55 | register "gpi0_routing" = "1" |
| 56 | register "gpi1_routing" = "1" |
| 57 | register "gpi2_routing" = "1" |
| 58 | register "gpi3_routing" = "1" |
| 59 | register "gpi4_routing" = "1" |
| 60 | register "gpi5_routing" = "1" |
| 61 | register "gpi6_routing" = "1" |
| 62 | register "gpi7_routing" = "1" |
| 63 | register "gpi8_routing" = "1" |
| 64 | register "gpi9_routing" = "1" |
| 65 | register "gpi10_routing" = "1" |
| 66 | register "gpi11_routing" = "1" |
| 67 | register "gpi12_routing" = "1" |
| 68 | register "gpi13_routing" = "2" |
| 69 | register "gpi14_routing" = "1" |
| 70 | register "gpi15_routing" = "1" |
| 71 | |
| 72 | register "gpe0_en" = "0" |
| 73 | |
| 74 | register "ide_legacy_combined" = "0x0" |
| 75 | register "ide_enable_primary" = "0x1" |
| 76 | register "ide_enable_secondary" = "0x0" |
| 77 | register "sata_ahci" = "0x0" |
| 78 | register "c3_latency" = "85" |
| 79 | |
| 80 | register "p_cnt_throttling_supported" = "0" |
| 81 | |
| 82 | device pci 1b.0 on # High Definition Audio |
| 83 | ioapic_irq 2 INTA 0x10 |
| 84 | end |
| 85 | device pci 1c.0 on end # PCIe |
| 86 | device pci 1c.1 on end # PCIe |
| 87 | #device pci 1c.2 off end # PCIe port 3 |
| 88 | #device pci 1c.3 off end # PCIe port 4 |
| 89 | #device pci 1c.4 off end # PCIe port 5 |
| 90 | #device pci 1c.5 off end # PCIe port 6 |
| 91 | device pci 1d.0 on # USB UHCI |
| 92 | ioapic_irq 2 INTA 0x10 |
| 93 | end |
| 94 | device pci 1d.1 on # USB UHCI |
| 95 | ioapic_irq 2 INTB 0x11 |
| 96 | end |
| 97 | device pci 1d.2 on # USB UHCI |
| 98 | ioapic_irq 2 INTC 0x12 |
| 99 | end |
| 100 | device pci 1d.3 on # USB UHCI |
| 101 | ioapic_irq 2 INTD 0x13 |
| 102 | end |
| 103 | device pci 1d.7 on # USB2 EHCI |
| 104 | ioapic_irq 2 INTA 0x10 |
| 105 | end |
| 106 | device pci 1e.0 on end # PCI bridge |
| 107 | |
| 108 | device pci 1f.0 on # LPC bridge |
| 109 | ioapic_irq 2 INTA 0x10 |
| 110 | chip superio/ite/it8718f # Super I/O |
| 111 | device pnp 2e.0 off end # Floppy |
| 112 | device pnp 2e.1 on # COM1 |
| 113 | io 0x60 = 0x3f8 |
| 114 | irq 0x70 = 4 |
| 115 | end |
| 116 | device pnp 2e.2 off end # COM2 |
| 117 | device pnp 2e.3 on # Parallel port |
| 118 | io 0x60 = 0x378 |
| 119 | irq 0x70 = 7 |
| 120 | io 0x62 = 0 |
| 121 | drq 0x74 = 4 |
| 122 | irq 0xf0 = 0x08 |
| 123 | end |
| 124 | device pnp 2e.4 on # Environment controller |
| 125 | io 0x60 = 0x290 |
| 126 | irq 0x70 = 0x00 |
| 127 | io 0x62 = 0x000 |
| 128 | irq 0xf0 = 0x00 |
| 129 | irq 0xf1 = 0x00 |
| 130 | irq 0xf2 = 0x0a |
| 131 | irq 0xf3 = 0x00 |
| 132 | irq 0xf4 = 0x80 |
| 133 | irq 0xf5 = 0x20 |
| 134 | irq 0xf6 = 0x3e |
| 135 | end |
| 136 | device pnp 2e.5 on # Keyboard |
| 137 | io 0x60 = 0x60 |
| 138 | irq 0x70 = 1 |
| 139 | io 0x62 = 0x64 |
| 140 | irq 0xf0 = 0x48 |
| 141 | end |
| 142 | device pnp 2e.6 on # Mouse |
| 143 | irq 0x70 = 0 |
| 144 | irq 0x71 = 2 |
| 145 | irq 0xf0 = 0 |
| 146 | end |
| 147 | end |
| 148 | end |
| 149 | device pci 1f.1 on # IDE |
| 150 | ioapic_irq 2 INTB 0x11 |
| 151 | end |
| 152 | device pci 1f.2 on # SATA |
| 153 | ioapic_irq 2 INTC 0x12 |
| 154 | end |
| 155 | device pci 1f.3 on # SMBus |
| 156 | ioapic_irq 2 INTD 0x13 |
| 157 | end |
| 158 | end |
| 159 | end |
| 160 | end |