Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2018 Patrick Rudolph <siro@das-labor.org> |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or |
| 7 | ## modify it under the terms of the GNU General Public License as |
| 8 | ## published by the Free Software Foundation; version 2 of |
| 9 | ## 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/sandybridge |
| 18 | register "gfx.did" = "{ 0x80000100, 0x80000240, 0x80000410 }" |
| 19 | register "gfx.link_frequency_270_mhz" = "0" |
| 20 | register "gfx.ndid" = "3" |
| 21 | register "gfx.use_spread_spectrum_clock" = "0" |
| 22 | register "gpu_dp_b_hotplug" = "0" |
| 23 | register "gpu_dp_c_hotplug" = "0" |
| 24 | register "gpu_dp_d_hotplug" = "0" |
| 25 | |
| 26 | device cpu_cluster 0x0 on |
| 27 | chip cpu/intel/socket_LGA1155 |
| 28 | device lapic 0x0 on |
| 29 | end |
| 30 | end |
| 31 | chip cpu/intel/model_206ax |
| 32 | register "c1_acpower" = "1" |
| 33 | register "c1_battery" = "1" |
| 34 | register "c2_acpower" = "3" |
| 35 | register "c2_battery" = "3" |
| 36 | register "c3_acpower" = "5" |
| 37 | register "c3_battery" = "5" |
| 38 | device lapic 0xacac off |
| 39 | end |
| 40 | end |
| 41 | end |
| 42 | |
| 43 | register "pci_mmio_size" = "2048" |
| 44 | |
| 45 | device domain 0x0 on |
| 46 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
| 47 | register "c2_latency" = "0x0065" |
| 48 | register "docking_supported" = "0" |
| 49 | register "gen1_dec" = "0x00fc0601" |
| 50 | register "gen2_dec" = "0x00fc0801" |
| 51 | register "p_cnt_throttling_supported" = "1" |
| 52 | register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 0, 0 }" |
| 53 | register "pcie_port_coalesce" = "1" |
| 54 | register "sata_interface_speed_support" = "0x3" |
| 55 | register "sata_port_map" = "0x13" |
| 56 | register "spi_lvscc" = "0x2005" |
| 57 | register "spi_uvscc" = "0x0" |
| 58 | device pci 16.0 on # Management Engine Interface 1 |
| 59 | subsystemid 0x103c 0x1495 |
| 60 | end |
| 61 | device pci 16.1 off # Management Engine Interface 2 |
| 62 | end |
| 63 | device pci 16.2 off # Management Engine IDE-R |
| 64 | end |
| 65 | device pci 16.3 on # Management Engine KT |
| 66 | subsystemid 0x103c 0x1495 |
| 67 | end |
| 68 | device pci 19.0 on # Intel Gigabit Ethernet |
| 69 | subsystemid 0x103c 0x1495 |
| 70 | end |
| 71 | device pci 1a.0 on # USB2 EHCI #2 |
| 72 | subsystemid 0x103c 0x1495 |
| 73 | end |
| 74 | device pci 1b.0 on # High Definition Audio Audio controller |
| 75 | subsystemid 0x103c 0x1495 |
| 76 | end |
| 77 | device pci 1c.0 on # PCIe Port #1 |
| 78 | subsystemid 0x103c 0x1495 |
| 79 | end |
| 80 | device pci 1c.1 off # PCIe Port #2 |
| 81 | end |
| 82 | device pci 1c.2 off # PCIe Port #3 |
| 83 | end |
| 84 | device pci 1c.3 off # PCIe Port #4 |
| 85 | end |
| 86 | device pci 1c.4 on # PCIe Port #5 |
| 87 | subsystemid 0x103c 0x1495 |
| 88 | end |
| 89 | device pci 1c.5 off # PCIe Port #6 |
| 90 | end |
| 91 | device pci 1c.6 on # PCIe Port #7 |
| 92 | subsystemid 0x103c 0x1495 |
| 93 | end |
| 94 | device pci 1c.7 on # PCIe Port #8 |
| 95 | subsystemid 0x103c 0x1495 |
| 96 | end |
| 97 | device pci 1d.0 on # USB2 EHCI #1 |
| 98 | subsystemid 0x103c 0x1495 |
| 99 | end |
| 100 | device pci 1e.0 on # PCI bridge |
| 101 | subsystemid 0x103c 0x1495 |
| 102 | end |
| 103 | device pci 1f.0 on # LPC bridge PCI-LPC bridge |
| 104 | subsystemid 0x103c 0x1495 |
| 105 | chip superio/nuvoton/npcd378 |
| 106 | device pnp 2e.0 off end # Floppy |
| 107 | device pnp 2e.1 on # Parallel port |
| 108 | # global |
| 109 | |
| 110 | # serialice: Vendor writes: |
| 111 | irq 0x14 = 0x9c |
| 112 | irq 0x1c = 0xa8 |
| 113 | irq 0x1d = 0x08 |
| 114 | irq 0x22 = 0x3f |
| 115 | irq 0x1a = 0xb0 |
| 116 | # dumped from superiotool: |
| 117 | irq 0x1b = 0x1e |
| 118 | irq 0x27 = 0x04 |
| 119 | irq 0x2a = 0x00 |
| 120 | irq 0x2d = 0x01 |
| 121 | # parallel port |
| 122 | io 0x60 = 0x378 |
| 123 | irq 0x70 = 0x07 |
| 124 | drq 0x74 = 0x01 |
| 125 | end |
| 126 | device pnp 2e.2 off # COM1 |
| 127 | io 0x60 = 0x2f8 |
| 128 | irq 0x70 = 3 |
| 129 | end |
| 130 | device pnp 2e.3 on # COM2, IR |
| 131 | io 0x60 = 0x3f8 |
| 132 | irq 0x70 = 4 |
| 133 | end |
| 134 | device pnp 2e.4 on # LED control |
| 135 | io 0x60 = 0x600 |
| 136 | # IOBASE[0h] = bit0 LED red / green |
| 137 | # IOBASE[0h] = bit1-4 LED PWM duty cycle |
| 138 | # IOBASE[1h] = bit6 SWCC |
| 139 | |
| 140 | io 0x62 = 0x610 |
| 141 | # IOBASE [0h] = GPES |
| 142 | # IOBASE [1h] = GPEE |
| 143 | # IOBASE [4h:7h] = 32bit upcounter at 1Mhz |
| 144 | # IOBASE [8h:bh] = GPS |
| 145 | # IOBASE [ch:fh] = GPE |
| 146 | end |
| 147 | device pnp 2e.5 on # Mouse |
| 148 | irq 0x70 = 0xc |
| 149 | end |
| 150 | device pnp 2e.6 on # Keyboard |
| 151 | io 0x60 = 0x0060 |
| 152 | io 0x62 = 0x0064 |
| 153 | irq 0x70 = 0x01 |
| 154 | # serialice: Vendor writes: |
| 155 | drq 0xf0 = 0x40 |
| 156 | end |
| 157 | device pnp 2e.7 on # WDT ? |
| 158 | io 0x60 = 0x620 |
| 159 | end |
| 160 | device pnp 2e.8 on # HWM |
| 161 | io 0x60 = 0x800 |
| 162 | # IOBASE[0h:feh] HWM page |
| 163 | # IOBASE[ffh] bit0-bit3 page selector |
| 164 | |
| 165 | drq 0xf0 = 0x20 |
| 166 | drq 0xf1 = 0x01 |
| 167 | drq 0xf2 = 0x40 |
| 168 | drq 0xf3 = 0x01 |
| 169 | |
| 170 | drq 0xf4 = 0x66 |
| 171 | drq 0xf5 = 0x67 |
| 172 | drq 0xf6 = 0x66 |
| 173 | drq 0xf7 = 0x01 |
| 174 | end |
| 175 | device pnp 2e.f on # GPIO OD ? |
| 176 | drq 0xf1 = 0x97 |
| 177 | drq 0xf2 = 0x01 |
| 178 | drq 0xf5 = 0x08 |
| 179 | drq 0xfe = 0x80 |
| 180 | end |
| 181 | device pnp 2e.15 on # BUS ? |
| 182 | io 0x60 = 0x0680 |
| 183 | io 0x62 = 0x0690 |
| 184 | end |
| 185 | device pnp 2e.1c on # Suspend Control ? |
| 186 | io 0x60 = 0x640 |
| 187 | # writing to IOBASE[5h] |
| 188 | # 0x0: Power off |
| 189 | # 0x9: Power off and bricked until CMOS battery removed |
| 190 | end |
| 191 | device pnp 2e.1e on # GPIO ? |
| 192 | io 0x60 = 0x660 |
| 193 | drq 0xf4 = 0x01 |
| 194 | # skip the following, as it |
| 195 | # looks like remapped registers |
| 196 | #drq 0xf5 = 0x06 |
| 197 | #drq 0xf6 = 0x60 |
| 198 | #drq 0xfe = 0x03 |
| 199 | end |
| 200 | end |
Patrick Rudolph | 39d0e2a | 2018-06-01 11:53:19 +0200 | [diff] [blame] | 201 | chip drivers/pc80/tpm |
| 202 | device pnp 4e.0 on end # TPM module |
| 203 | end |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 204 | end |
| 205 | device pci 1f.2 on # SATA Controller 1 |
| 206 | subsystemid 0x103c 0x1495 |
| 207 | end |
| 208 | device pci 1f.3 on # SMBus |
| 209 | subsystemid 0x103c 0x1495 |
| 210 | end |
| 211 | device pci 1f.5 off # SATA Controller 2 |
| 212 | end |
| 213 | device pci 1f.6 off # Thermal |
| 214 | end |
| 215 | end |
| 216 | device pci 00.0 on # Host bridge Host bridge |
| 217 | subsystemid 0x103c 0x1495 |
| 218 | end |
| 219 | device pci 01.0 on # PCIe Bridge for discrete graphics |
| 220 | subsystemid 0x103c 0x1495 |
| 221 | end |
| 222 | device pci 02.0 on # Internal graphics VGA controller |
| 223 | subsystemid 0x103c 0x1495 |
| 224 | end |
| 225 | end |
| 226 | end |