blob: 6823c9fd1f31900ec49625255af8d1a59da924d9 [file] [log] [blame]
Patrick Rudolph05284b62019-06-04 15:56:44 +02001##
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
17chip 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/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"
34 device lapic 0x0 on end
35 device lapic 0xacac off end
36 end
37 end
38
39 register "pci_mmio_size" = "2048"
40
41 device domain 0x0 on
Angel Ponsa0a3eab2020-01-01 20:52:11 +010042 subsystemid 0x103c 0x1791 inherit
Angel Pons942650f2020-01-01 20:56:08 +010043
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 Rudolph05284b62019-06-04 15:56:44 +020048 chip southbridge/intel/bd82x6x # Intel Series 7 PCH
49 register "c2_latency" = "0x0065"
50 register "docking_supported" = "0"
51 register "gen1_dec" = "0x00fc0601"
52 register "gen2_dec" = "0x00fc0801"
Patrick Rudolph05284b62019-06-04 15:56:44 +020053 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"
56 register "sata_port_map" = "0xf"
57 register "spi_lvscc" = "0x2005"
58 register "spi_uvscc" = "0x2005"
Angel Ponsa0a3eab2020-01-01 20:52:11 +010059
60 device pci 14.0 on end # xHCI
61 device pci 16.0 on end # Management Engine Interface 1
62 device pci 16.1 off end # Management Engine Interface 2
63 device pci 16.2 off end # Management Engine IDE-R
64 device pci 16.3 on end # Management Engine KT
65 device pci 19.0 on end # Intel Gigabit Ethernet
66 device pci 1a.0 on end # USB2 EHCI #2
67 device pci 1b.0 on end # High Definition Audio Audio controller
68 device pci 1c.0 on end # PCIe Port #1
69 device pci 1c.1 off end # PCIe Port #2
70 device pci 1c.2 off end # PCIe Port #3
71 device pci 1c.3 off end # PCIe Port #4
72 device pci 1c.4 on end # PCIe Port #5
73 device pci 1c.5 off end # PCIe Port #6
74 device pci 1c.6 on end # PCIe Port #7
75 device pci 1c.7 on end # PCIe Port #8
76 device pci 1d.0 on end # USB2 EHCI #1
77 device pci 1e.0 on end # PCI bridge
78 device pci 1f.0 on # LPC bridge PCI-LPC bridge
Patrick Rudolphe1498ce2020-02-12 15:23:05 +010079 chip superio/common
80 device pnp 2e.ff on # passes SIO base addr to SSDT gen
81 chip superio/nuvoton/npcd378
82 device pnp 2e.0 off end # Floppy
83 device pnp 2e.1 on # Parallel port
84 # global
Patrick Rudolph05284b62019-06-04 15:56:44 +020085
Patrick Rudolphe1498ce2020-02-12 15:23:05 +010086 # serialice: Vendor writes:
87 irq 0x14 = 0x9c
88 irq 0x1c = 0xa8
89 irq 0x1d = 0x08
90 irq 0x22 = 0x3f
91 irq 0x1a = 0xb0
92 # dumped from superiotool:
93 irq 0x1b = 0x1e
94 irq 0x27 = 0x08
95 irq 0x2a = 0x20
96 irq 0x2d = 0x01
97 # parallel port
98 io 0x60 = 0x378
99 irq 0x70 = 0x07
100 drq 0x74 = 0x01
101 end
102 device pnp 2e.2 off # COM1
103 io 0x60 = 0x2f8
104 irq 0x70 = 3
105 end
106 device pnp 2e.3 on # COM2, IR
107 io 0x60 = 0x3f8
108 irq 0x70 = 4
109 end
110 device pnp 2e.4 on # LED control
111 io 0x60 = 0x600
112 # IOBASE[0h] = bit0 LED red / green
113 # IOBASE[0h] = bit1-4 LED PWM duty cycle
114 # IOBASE[1h] = bit6 SWCC
Patrick Rudolph05284b62019-06-04 15:56:44 +0200115
Patrick Rudolphe1498ce2020-02-12 15:23:05 +0100116 io 0x62 = 0x610
117 # IOBASE [0h] = GPES
118 # IOBASE [1h] = GPEE
119 # IOBASE [4h:7h] = 32bit upcounter at 1Mhz
120 # IOBASE [8h:bh] = GPS
121 # IOBASE [ch:fh] = GPE
122 end
123 device pnp 2e.5 on # Mouse
124 irq 0x70 = 0xc
125 end
126 device pnp 2e.6 on # Keyboard
127 io 0x60 = 0x0060
128 io 0x62 = 0x0064
129 irq 0x70 = 0x01
130 # serialice: Vendor writes:
131 drq 0xf0 = 0x40
132 end
133 device pnp 2e.7 on # WDT ?
134 io 0x60 = 0x620
135 end
136 device pnp 2e.8 on # HWM
137 io 0x60 = 0x800
138 # IOBASE[0h:feh] HWM page
139 # IOBASE[ffh] bit0-bit3 page selector
Patrick Rudolph05284b62019-06-04 15:56:44 +0200140
Patrick Rudolphe1498ce2020-02-12 15:23:05 +0100141 drq 0xf0 = 0x20
142 drq 0xf1 = 0x01
143 drq 0xf2 = 0x40
144 drq 0xf3 = 0x01
Patrick Rudolph05284b62019-06-04 15:56:44 +0200145
Patrick Rudolphe1498ce2020-02-12 15:23:05 +0100146 drq 0xf4 = 0x66
147 drq 0xf5 = 0x67
148 drq 0xf6 = 0x66
149 drq 0xf7 = 0x01
150 end
151 device pnp 2e.f on # GPIO OD ?
152 drq 0xf1 = 0x97
153 drq 0xf2 = 0x01
154 drq 0xf5 = 0x08
155 drq 0xfe = 0x80
156 end
157 device pnp 2e.15 on # BUS ?
158 io 0x60 = 0x0680
159 io 0x62 = 0x0690
160 end
161 device pnp 2e.1c on # Suspend Control ?
162 io 0x60 = 0x640
163 # writing to IOBASE[5h]
164 # 0x0: Power off
165 # 0x9: Power off and bricked until CMOS battery removed
166 end
167 device pnp 2e.1e on # GPIO ?
168 io 0x60 = 0x660
169 drq 0xf4 = 0x01
170 # skip the following, as it
171 # looks like remapped registers
172 #drq 0xf5 = 0x06
173 #drq 0xf6 = 0x60
174 #drq 0xfe = 0x03
175 end
176 end
Patrick Rudolph05284b62019-06-04 15:56:44 +0200177 end
178 end
179 chip drivers/pc80/tpm
180 device pnp 4e.0 on end # TPM module
181 end
182 end
Angel Ponsa0a3eab2020-01-01 20:52:11 +0100183 device pci 1f.2 on end # SATA Controller 1
184 device pci 1f.3 on end # SMBus
185 device pci 1f.5 off end # SATA Controller 2
186 device pci 1f.6 off end # Thermal
Patrick Rudolph05284b62019-06-04 15:56:44 +0200187 end
Patrick Rudolph05284b62019-06-04 15:56:44 +0200188 end
189end