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 |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 27 | chip cpu/intel/model_206ax |
| 28 | register "c1_acpower" = "1" |
| 29 | register "c1_battery" = "1" |
| 30 | register "c2_acpower" = "3" |
| 31 | register "c2_battery" = "3" |
| 32 | register "c3_acpower" = "5" |
| 33 | register "c3_battery" = "5" |
Arthur Heymans | 7e6946a | 2019-01-21 17:55:02 +0100 | [diff] [blame] | 34 | device lapic 0x0 on end |
Arthur Heymans | b3f2323 | 2019-01-21 17:48:55 +0100 | [diff] [blame] | 35 | device lapic 0xacac off end |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 36 | end |
| 37 | end |
| 38 | |
| 39 | register "pci_mmio_size" = "2048" |
| 40 | |
| 41 | device domain 0x0 on |
Angel Pons | a0a3eab | 2020-01-01 20:52:11 +0100 | [diff] [blame] | 42 | subsystemid 0x103c 0x1495 inherit |
| 43 | |
Angel Pons | 942650f | 2020-01-01 20:56:08 +0100 | [diff] [blame] | 44 | device pci 00.0 on end # Host bridge Host bridge |
| 45 | device pci 01.0 on end # PCIe Bridge for discrete graphics |
| 46 | device pci 02.0 on end # Internal graphics VGA controller |
| 47 | |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 48 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
| 49 | register "c2_latency" = "0x0065" |
| 50 | register "docking_supported" = "0" |
| 51 | register "gen1_dec" = "0x00fc0601" |
| 52 | register "gen2_dec" = "0x00fc0801" |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 53 | register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 0, 0 }" |
| 54 | register "pcie_port_coalesce" = "1" |
| 55 | register "sata_interface_speed_support" = "0x3" |
Patrick Rudolph | d379840 | 2018-11-27 10:36:33 +0100 | [diff] [blame] | 56 | register "sata_port_map" = "0xf" |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 57 | register "spi_lvscc" = "0x2005" |
| 58 | register "spi_uvscc" = "0x0" |
Angel Pons | a0a3eab | 2020-01-01 20:52:11 +0100 | [diff] [blame] | 59 | |
| 60 | device pci 16.0 on end # Management Engine Interface 1 |
| 61 | device pci 16.1 off end # Management Engine Interface 2 |
| 62 | device pci 16.2 off end # Management Engine IDE-R |
| 63 | device pci 16.3 on end # Management Engine KT |
| 64 | device pci 19.0 on end # Intel Gigabit Ethernet |
| 65 | device pci 1a.0 on end # USB2 EHCI #2 |
| 66 | device pci 1b.0 on end # High Definition Audio Audio controller |
| 67 | device pci 1c.0 on end # PCIe Port #1 |
| 68 | device pci 1c.1 off end # PCIe Port #2 |
| 69 | device pci 1c.2 off end # PCIe Port #3 |
| 70 | device pci 1c.3 off end # PCIe Port #4 |
| 71 | device pci 1c.4 on end # PCIe Port #5 |
| 72 | device pci 1c.5 off end # PCIe Port #6 |
| 73 | device pci 1c.6 on end # PCIe Port #7 |
| 74 | device pci 1c.7 on end # PCIe Port #8 |
| 75 | device pci 1d.0 on end # USB2 EHCI #1 |
| 76 | device pci 1e.0 on end # PCI bridge |
| 77 | device pci 1f.0 on # LPC bridge PCI-LPC bridge |
Patrick Rudolph | e1498ce | 2020-02-12 15:23:05 +0100 | [diff] [blame^] | 78 | chip superio/common |
| 79 | device pnp 2e.ff on # passes SIO base addr to SSDT gen |
| 80 | chip superio/nuvoton/npcd378 |
| 81 | device pnp 2e.0 off end # Floppy |
| 82 | device pnp 2e.1 on # Parallel port |
| 83 | # global |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 84 | |
Patrick Rudolph | e1498ce | 2020-02-12 15:23:05 +0100 | [diff] [blame^] | 85 | # serialice: Vendor writes: |
| 86 | irq 0x14 = 0x9c |
| 87 | irq 0x1c = 0xa8 |
| 88 | irq 0x1d = 0x08 |
| 89 | irq 0x22 = 0x3f |
| 90 | irq 0x1a = 0xb0 |
| 91 | # dumped from superiotool: |
| 92 | irq 0x1b = 0x1e |
| 93 | irq 0x27 = 0x08 |
| 94 | irq 0x2a = 0x20 |
| 95 | irq 0x2d = 0x01 |
| 96 | # parallel port |
| 97 | io 0x60 = 0x378 |
| 98 | irq 0x70 = 0x07 |
| 99 | drq 0x74 = 0x01 |
| 100 | end |
| 101 | device pnp 2e.2 off # COM1 |
| 102 | io 0x60 = 0x2f8 |
| 103 | irq 0x70 = 3 |
| 104 | end |
| 105 | device pnp 2e.3 on # COM2, IR |
| 106 | io 0x60 = 0x3f8 |
| 107 | irq 0x70 = 4 |
| 108 | end |
| 109 | device pnp 2e.4 on # LED control |
| 110 | io 0x60 = 0x600 |
| 111 | # IOBASE[0h] = bit0 LED red / green |
| 112 | # IOBASE[0h] = bit1-4 LED PWM duty cycle |
| 113 | # IOBASE[1h] = bit6 SWCC |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 114 | |
Patrick Rudolph | e1498ce | 2020-02-12 15:23:05 +0100 | [diff] [blame^] | 115 | io 0x62 = 0x610 |
| 116 | # IOBASE [0h] = GPES |
| 117 | # IOBASE [1h] = GPEE |
| 118 | # IOBASE [4h:7h] = 32bit upcounter at 1Mhz |
| 119 | # IOBASE [8h:bh] = GPS |
| 120 | # IOBASE [ch:fh] = GPE |
| 121 | end |
| 122 | device pnp 2e.5 on # Mouse |
| 123 | irq 0x70 = 0xc |
| 124 | end |
| 125 | device pnp 2e.6 on # Keyboard |
| 126 | io 0x60 = 0x0060 |
| 127 | io 0x62 = 0x0064 |
| 128 | irq 0x70 = 0x01 |
| 129 | # serialice: Vendor writes: |
| 130 | drq 0xf0 = 0x40 |
| 131 | end |
| 132 | device pnp 2e.7 on # WDT ? |
| 133 | io 0x60 = 0x620 |
| 134 | end |
| 135 | device pnp 2e.8 on # HWM |
| 136 | io 0x60 = 0x800 |
| 137 | # IOBASE[0h:feh] HWM page |
| 138 | # IOBASE[ffh] bit0-bit3 page selector |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 139 | |
Patrick Rudolph | e1498ce | 2020-02-12 15:23:05 +0100 | [diff] [blame^] | 140 | drq 0xf0 = 0x20 |
| 141 | drq 0xf1 = 0x01 |
| 142 | drq 0xf2 = 0x40 |
| 143 | drq 0xf3 = 0x01 |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 144 | |
Patrick Rudolph | e1498ce | 2020-02-12 15:23:05 +0100 | [diff] [blame^] | 145 | drq 0xf4 = 0x66 |
| 146 | drq 0xf5 = 0x67 |
| 147 | drq 0xf6 = 0x66 |
| 148 | drq 0xf7 = 0x01 |
| 149 | end |
| 150 | device pnp 2e.f on # GPIO OD ? |
| 151 | drq 0xf1 = 0x97 |
| 152 | drq 0xf2 = 0x01 |
| 153 | drq 0xf5 = 0x08 |
| 154 | drq 0xfe = 0x80 |
| 155 | end |
| 156 | device pnp 2e.15 on # BUS ? |
| 157 | io 0x60 = 0x0680 |
| 158 | io 0x62 = 0x0690 |
| 159 | end |
| 160 | device pnp 2e.1c on # Suspend Control ? |
| 161 | io 0x60 = 0x640 |
| 162 | # writing to IOBASE[5h] |
| 163 | # 0x0: Power off |
| 164 | # 0x9: Power off and bricked until CMOS battery removed |
| 165 | end |
| 166 | device pnp 2e.1e on # GPIO ? |
| 167 | io 0x60 = 0x660 |
| 168 | drq 0xf4 = 0x01 |
| 169 | # skip the following, as it |
| 170 | # looks like remapped registers |
| 171 | #drq 0xf5 = 0x06 |
| 172 | #drq 0xf6 = 0x60 |
| 173 | #drq 0xfe = 0x03 |
| 174 | end |
| 175 | end |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 176 | end |
| 177 | end |
Patrick Rudolph | 39d0e2a | 2018-06-01 11:53:19 +0200 | [diff] [blame] | 178 | chip drivers/pc80/tpm |
| 179 | device pnp 4e.0 on end # TPM module |
| 180 | end |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 181 | end |
Angel Pons | a0a3eab | 2020-01-01 20:52:11 +0100 | [diff] [blame] | 182 | device pci 1f.2 on end # SATA Controller 1 |
| 183 | device pci 1f.3 on end # SMBus |
| 184 | device pci 1f.5 off end # SATA Controller 2 |
| 185 | device pci 1f.6 off end # Thermal |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 186 | end |
Patrick Rudolph | 6308e0e | 2018-03-27 16:06:34 +0200 | [diff] [blame] | 187 | end |
| 188 | end |