Arthur Heymans | b7ff886 | 2017-12-30 11:06:54 +0100 | [diff] [blame^] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2017 Arthur Heymans <arthur@aheymans.xyz> |
| 5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation; either version 2 of the License, or |
| 9 | # (at your option) any later version. |
| 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/x4x # Northbridge |
| 18 | device cpu_cluster 0 on # APIC cluster |
| 19 | chip cpu/intel/socket_LGA775 |
| 20 | device lapic 0 on end |
| 21 | end |
| 22 | chip cpu/intel/model_1067x # CPU |
| 23 | device lapic 0xACAC off end |
| 24 | end |
| 25 | end |
| 26 | device domain 0 on # PCI domain |
| 27 | subsystemid 0x1458 0x5000 inherit |
| 28 | device pci 0.0 on # Host Bridge |
| 29 | subsystemid 0x1849 0x2e30 |
| 30 | end |
| 31 | device pci 1.0 on end # PEG |
| 32 | |
| 33 | device pci 2.0 on # Integrated graphics controller |
| 34 | subsystemid 0x1849 0x2e32 |
| 35 | end |
| 36 | device pci 3.0 off end # ME |
| 37 | device pci 3.1 off end # ME |
| 38 | chip southbridge/intel/i82801gx # Southbridge |
| 39 | register "pirqa_routing" = "0x0b" |
| 40 | register "pirqb_routing" = "0x0b" |
| 41 | register "pirqc_routing" = "0x0b" |
| 42 | register "pirqd_routing" = "0x0b" |
| 43 | register "pirqe_routing" = "0x80" |
| 44 | register "pirqf_routing" = "0x80" |
| 45 | register "pirqg_routing" = "0x80" |
| 46 | register "pirqh_routing" = "0x0b" |
| 47 | |
| 48 | register "ide_enable_primary" = "0x1" |
| 49 | register "sata_ahci" = "0x0" # AHCI not supported on this ICH7 variant |
| 50 | register "sata_ports_implemented" = "0x3" |
| 51 | register "gpe0_en" = "0x440" |
| 52 | |
| 53 | device pci 1b.0 on # Audio |
| 54 | subsystemid 0x1849 0x3662 |
| 55 | end |
| 56 | device pci 1c.0 on end # PCIe 1 |
| 57 | device pci 1c.1 on end # PCIe 2 |
| 58 | device pci 1c.2 off end # PCIe 3 |
| 59 | device pci 1c.3 off end # PCIe 4 |
| 60 | device pci 1d.0 on # USB |
| 61 | subsystemid 0x1849 0x27c8 |
| 62 | end |
| 63 | device pci 1d.1 on # USB |
| 64 | subsystemid 0x1849 0x27c9 |
| 65 | end |
| 66 | device pci 1d.2 on # USB |
| 67 | subsystemid 0x1849 0x27ca |
| 68 | end |
| 69 | device pci 1d.3 on # USB |
| 70 | subsystemid 0x1849 0x27cb |
| 71 | end |
| 72 | device pci 1d.7 on # USB |
| 73 | subsystemid 0x1849 0x27cc |
| 74 | end |
| 75 | device pci 1e.0 on end # PCI bridge |
| 76 | device pci 1f.0 on # ISA bridge |
| 77 | subsystemid 0x1849 0x27b8 |
| 78 | chip superio/winbond/w83627dhg |
| 79 | device pnp 2e.0 off end # Floppy |
| 80 | device pnp 2e.1 on # Parallel port |
| 81 | # global |
| 82 | irq 0x28 = 0x70 |
| 83 | irq 0x2c = 0xd2 |
| 84 | # parallel port |
| 85 | io 0x60 = 0x378 |
| 86 | irq 0x70 = 7 |
| 87 | drq 0x74 = 3 |
| 88 | end |
| 89 | device pnp 2e.2 on # COM1 |
| 90 | io 0x60 = 0x3f8 |
| 91 | irq 0x70 = 4 |
| 92 | end |
| 93 | device pnp 2e.3 off end # COM2 |
| 94 | device pnp 2e.5 on # Keyboard & MOUSE |
| 95 | io 0x60 = 0x60 |
| 96 | io 0x62 = 0x64 |
| 97 | irq 0x70 = 1 |
| 98 | irq 0x72 = 0x0C |
| 99 | end |
| 100 | device pnp 2e.6 off end # SPI |
| 101 | device pnp 2e.7 off end # GPIO6 |
| 102 | device pnp 2e.8 off end # WDT0#, PLED |
| 103 | device pnp 2e.9 on end # GPIO2 |
| 104 | device pnp 2e.109 on # GPIO3 |
| 105 | irq 0xfe = 0x07 |
| 106 | end |
| 107 | device pnp 2e.209 on # GPIO4 |
| 108 | irq 0xf4 = 0x73 |
| 109 | end |
| 110 | device pnp 2e.309 off end # GPIO5 |
| 111 | device pnp 2e.a on # ACPI |
| 112 | irq 0xe4 = 0x10 # Power dram during s3 |
| 113 | end |
| 114 | device pnp 2e.b on # HWM, front pannel LED |
| 115 | io 0x60 = 0x290 |
| 116 | irq 0x70 = 0 |
| 117 | end |
| 118 | device pnp 2e.c off end # PECI, SST |
| 119 | end |
| 120 | end |
| 121 | device pci 1f.1 on # PATA/IDE |
| 122 | subsystemid 0x1849 0x27df |
| 123 | end |
| 124 | device pci 1f.2 on # SATA |
| 125 | subsystemid 0x1849 0x27c0 |
| 126 | end |
| 127 | device pci 1f.3 on # SMbus |
| 128 | subsystemid 0x1849 0x27da |
| 129 | end |
| 130 | device pci 1f.4 off end |
| 131 | device pci 1f.5 off end |
| 132 | device pci 1f.6 off end |
| 133 | end |
| 134 | end |
| 135 | end |