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 |
Arthur Heymans | 33fa95c | 2018-09-13 17:39:02 +0200 | [diff] [blame^] | 60 | device pci 1c.4 off end # PCIe 5 |
| 61 | device pci 1c.5 off end # PCIe 6 |
Arthur Heymans | b7ff886 | 2017-12-30 11:06:54 +0100 | [diff] [blame] | 62 | device pci 1d.0 on # USB |
| 63 | subsystemid 0x1849 0x27c8 |
| 64 | end |
| 65 | device pci 1d.1 on # USB |
| 66 | subsystemid 0x1849 0x27c9 |
| 67 | end |
| 68 | device pci 1d.2 on # USB |
| 69 | subsystemid 0x1849 0x27ca |
| 70 | end |
| 71 | device pci 1d.3 on # USB |
| 72 | subsystemid 0x1849 0x27cb |
| 73 | end |
| 74 | device pci 1d.7 on # USB |
| 75 | subsystemid 0x1849 0x27cc |
| 76 | end |
| 77 | device pci 1e.0 on end # PCI bridge |
Arthur Heymans | 33fa95c | 2018-09-13 17:39:02 +0200 | [diff] [blame^] | 78 | device pci 1e.2 off end # AC'97 Audio |
| 79 | device pci 1e.3 off end # AC'97 Modem |
Arthur Heymans | b7ff886 | 2017-12-30 11:06:54 +0100 | [diff] [blame] | 80 | device pci 1f.0 on # ISA bridge |
| 81 | subsystemid 0x1849 0x27b8 |
| 82 | chip superio/winbond/w83627dhg |
| 83 | device pnp 2e.0 off end # Floppy |
| 84 | device pnp 2e.1 on # Parallel port |
| 85 | # global |
| 86 | irq 0x28 = 0x70 |
| 87 | irq 0x2c = 0xd2 |
| 88 | # parallel port |
| 89 | io 0x60 = 0x378 |
| 90 | irq 0x70 = 7 |
| 91 | drq 0x74 = 3 |
| 92 | end |
| 93 | device pnp 2e.2 on # COM1 |
| 94 | io 0x60 = 0x3f8 |
| 95 | irq 0x70 = 4 |
| 96 | end |
| 97 | device pnp 2e.3 off end # COM2 |
| 98 | device pnp 2e.5 on # Keyboard & MOUSE |
| 99 | io 0x60 = 0x60 |
| 100 | io 0x62 = 0x64 |
| 101 | irq 0x70 = 1 |
| 102 | irq 0x72 = 0x0C |
| 103 | end |
| 104 | device pnp 2e.6 off end # SPI |
| 105 | device pnp 2e.7 off end # GPIO6 |
| 106 | device pnp 2e.8 off end # WDT0#, PLED |
| 107 | device pnp 2e.9 on end # GPIO2 |
| 108 | device pnp 2e.109 on # GPIO3 |
| 109 | irq 0xfe = 0x07 |
| 110 | end |
| 111 | device pnp 2e.209 on # GPIO4 |
| 112 | irq 0xf4 = 0x73 |
| 113 | end |
| 114 | device pnp 2e.309 off end # GPIO5 |
| 115 | device pnp 2e.a on # ACPI |
| 116 | irq 0xe4 = 0x10 # Power dram during s3 |
| 117 | end |
| 118 | device pnp 2e.b on # HWM, front pannel LED |
| 119 | io 0x60 = 0x290 |
| 120 | irq 0x70 = 0 |
| 121 | end |
| 122 | device pnp 2e.c off end # PECI, SST |
| 123 | end |
| 124 | end |
| 125 | device pci 1f.1 on # PATA/IDE |
| 126 | subsystemid 0x1849 0x27df |
| 127 | end |
| 128 | device pci 1f.2 on # SATA |
| 129 | subsystemid 0x1849 0x27c0 |
| 130 | end |
| 131 | device pci 1f.3 on # SMbus |
| 132 | subsystemid 0x1849 0x27da |
| 133 | end |
| 134 | device pci 1f.4 off end |
| 135 | device pci 1f.5 off end |
| 136 | device pci 1f.6 off end |
| 137 | end |
| 138 | end |
| 139 | end |