blob: 0e1e5fced5ac045e72af3108034c2b144b6bbfdc [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Sven Schnellee2ca71e2011-02-14 20:02:47 +00002
3chip northbridge/intel/i945
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +01004 # IGD Displays
Nico Huberb0b25c82020-03-21 20:35:12 +01005 register "gfx" = "GMA_STATIC_DISPLAYS(0)"
Sven Schnellee2ca71e2011-02-14 20:02:47 +00006
Vladimir Serbinenko26ca08c2014-06-01 00:24:05 +02007 register "gpu_hotplug" = "0x00000220"
Elyes Haouasa521d662022-11-30 07:51:11 +01008 register "gpu_lvds_use_spread_spectrum_clock" = "true"
Arthur Heymans8e079002017-01-14 22:31:54 +01009 register "pwm_freq" = "180"
10 register "gpu_panel_power_up_delay" = "250"
11 register "gpu_panel_power_backlight_on_delay" = "2380"
12 register "gpu_panel_power_down_delay" = "250"
13 register "gpu_panel_power_backlight_off_delay" = "2380"
14 register "gpu_panel_power_cycle_delay" = "2"
Vladimir Serbinenko26ca08c2014-06-01 00:24:05 +020015
Arthur Heymans31ba9352022-11-07 11:52:22 +010016 device cpu_cluster 0 on ops i945_cpu_bus_ops end # APIC cluster
Sven Schnellee2ca71e2011-02-14 20:02:47 +000017
Arthur Heymans885c2892016-10-03 17:16:48 +020018 register "pci_mmio_size" = "768"
19
Stefan Reinauer4aff4452013-02-12 14:17:15 -080020 device domain 0 on
Arthur Heymans22d6ee82022-11-07 10:03:40 +010021 ops i945_pci_domain_ops
Sven Schnelle91321022011-03-01 19:58:47 +000022 device pci 00.0 on # Host bridge
23 subsystemid 0x17aa 0x2017
24 end
25 device pci 02.0 on # VGA controller
26 subsystemid 0x17aa 0x201a
27 end
28 device pci 02.1 on # display controller
29 subsystemid 0x17aa 0x201a
30 end
31 chip southbridge/intel/i82801gx
Sven Schnellee2ca71e2011-02-14 20:02:47 +000032 register "pirqa_routing" = "0x0b"
33 register "pirqb_routing" = "0x0b"
34 register "pirqc_routing" = "0x0b"
35 register "pirqd_routing" = "0x0b"
36 register "pirqe_routing" = "0x0b"
37 register "pirqf_routing" = "0x0b"
38 register "pirqg_routing" = "0x0b"
39 register "pirqh_routing" = "0x0b"
40
41 # GPI routing
42 # 0 No effect (default)
43 # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set)
44 # 2 SCI (if corresponding GPIO_EN bit is also set)
Sven Schnelle91321022011-03-01 19:58:47 +000045 register "gpi13_routing" = "2"
Sven Schnelle8b39e072011-06-12 16:49:13 +020046 register "gpi12_routing" = "1"
Sven Schnelle91321022011-03-01 19:58:47 +000047 register "gpi8_routing" = "2"
Sven Schnellee2ca71e2011-02-14 20:02:47 +000048
Sven Schnellee572ef62011-10-27 13:10:14 +020049 register "sata_ports_implemented" = "0x01"
Sven Schnellee2ca71e2011-02-14 20:02:47 +000050
51 register "gpe0_en" = "0x11000006"
Sven Schnelle8b39e072011-06-12 16:49:13 +020052 register "alt_gp_smi_en" = "0x1000"
Sven Schnelle6eb8bef2011-10-23 16:57:50 +020053
Elyes Haouasc46242f2023-03-19 07:43:32 +010054 register "c4onc3_enable" = "true"
Vladimir Serbinenkoab83ef02014-10-25 15:18:25 +020055
56 register "c3_latency" = "0x23"
Elyes Haouasc46242f2023-03-19 07:43:32 +010057 register "docking_supported" = "true"
58 register "p_cnt_throttling_supported" = "true"
Vladimir Serbinenkoab83ef02014-10-25 15:18:25 +020059
Arthur Heymansfecf7772019-11-09 14:19:04 +010060 register "gen1_dec" = "0x007c1601"
61 register "gen2_dec" = "0x000c15e1"
62 register "gen3_dec" = "0x001c1681"
63
Paul Menzel68eff4f2014-03-03 09:18:18 +010064 device pci 1b.0 on # Audio Controller
Sven Schnelle91321022011-03-01 19:58:47 +000065 subsystemid 0x17aa 0x2010
66 end
Sven Schnellee2ca71e2011-02-14 20:02:47 +000067 device pci 1c.0 on end # Ethernet
68 device pci 1c.1 on end # Atheros WLAN
Arthur Heymansb9d25892018-06-15 22:02:28 +020069 device pci 1c.2 on end # PCIe port 3
70 device pci 1c.3 on end # PCIe port 4
71 device pci 1c.4 off end # PCIe port 5
72 device pci 1c.5 off end # PCIe port 6
73
Sven Schnelle91321022011-03-01 19:58:47 +000074 device pci 1d.0 on # USB UHCI
75 subsystemid 0x17aa 0x200a
76 end
77 device pci 1d.1 on # USB UHCI
78 subsystemid 0x17aa 0x200a
79 end
80 device pci 1d.2 on # USB UHCI
81 subsystemid 0x17aa 0x200a
82 end
83 device pci 1d.3 on # USB UHCI
84 subsystemid 0x17aa 0x200a
85 end
86 device pci 1d.7 on # USB2 EHCI
87 subsystemid 0x17aa 0x200b
88 end
Nico Huber8d546b72021-09-07 16:46:03 +020089 device pci 1e.0 on # PCI Bridge
90 chip southbridge/ricoh/rl5c476
91 device pci 0.0 on end
92 end
93 end
Arthur Heymansb9d25892018-06-15 22:02:28 +020094 device pci 1e.2 off end # AC'97 Audio
95 device pci 1e.3 off end # AC'97 Modem
Sven Schnellee2ca71e2011-02-14 20:02:47 +000096 device pci 1f.0 on # PCI-LPC bridge
Sven Schnelle91321022011-03-01 19:58:47 +000097 subsystemid 0x17aa 0x2009
Sven Schnellee2ca71e2011-02-14 20:02:47 +000098 chip ec/lenovo/pmh7
Peter Lemenkov4ed25982020-02-06 14:51:27 +010099 device pnp ff.1 on end # dummy
Elyes Haouasaf933362023-03-19 08:01:53 +0100100 register "backlight_enable" = "true"
101 register "dock_event_enable" = "true"
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000102 end
Sven Schnelleffcd1432011-04-11 19:43:32 +0000103 chip ec/lenovo/h8
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000104 device pnp ff.2 on # dummy
105 io 0x60 = 0x62
106 io 0x62 = 0x66
107 io 0x64 = 0x1600
108 io 0x66 = 0x1604
109 end
Sven Schnelleffcd1432011-04-11 19:43:32 +0000110
111 register "config0" = "0xa6"
112 register "config1" = "0x05"
113 register "config2" = "0xa0"
Sven Schnelle8d0b86c2011-07-11 18:36:16 +0200114 register "config3" = "0x01"
Sven Schnelleffcd1432011-04-11 19:43:32 +0000115
116 register "beepmask0" = "0xfe"
117 register "beepmask1" = "0x96"
Vladimir Serbinenko9a3b9c42014-01-11 20:56:47 +0100118 register "has_power_management_beeps" = "1"
Sven Schnelleffcd1432011-04-11 19:43:32 +0000119
120 register "event2_enable" = "0xff"
121 register "event3_enable" = "0xff"
122 register "event4_enable" = "0xf4"
123 register "event5_enable" = "0x3c"
Sven Schnelle8d0b86c2011-07-11 18:36:16 +0200124 register "event6_enable" = "0x80"
125 register "event7_enable" = "0x01"
Sven Schnelle8d0b86c2011-07-11 18:36:16 +0200126 register "event8_enable" = "0x01"
127 register "event9_enable" = "0xff"
128 register "eventa_enable" = "0xff"
129 register "eventb_enable" = "0xff"
130 register "eventc_enable" = "0xff"
131 register "eventd_enable" = "0xff"
Patrick Rudolphb77eec82017-05-21 09:20:39 +0200132
133 register "has_bdc_detection" = "1"
134 register "bdc_gpio_num" = "7"
135 register "bdc_gpio_lvl" = "0"
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000136 end
137 chip superio/nsc/pc87382
138 device pnp 164e.2 on # IR
139 io 0x60 = 0x2f8
140 end
141
Vladimir Serbinenkof2b3cd62014-02-15 17:00:46 +0100142 device pnp 164e.3 on # Digitizer
143 io 0x60 = 0x200
144 irq 0x29 = 0xb0
145 irq 0x70 = 0x5
146 irq 0xf0 = 0x82
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000147 end
148
149 device pnp 164e.7 on # GPIO
150 io 0x60 = 0x1680
151 end
152
153 device pnp 164e.19 on # DLPC
154 io 0x60 = 0x164c
155 end
156 end
157
158 chip superio/nsc/pc87392
Peter Lemenkov4ed25982020-02-06 14:51:27 +0100159 device pnp 2e.0 off end #FDC
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000160
161 device pnp 2e.1 on # Parallel Port
162 io 0x60 = 0x3bc
163 irq 0x70 = 7
164 end
165
166 device pnp 2e.2 off # Serial Port / IR
167 io 0x60 = 0x2f8
168 irq 0x70 = 4
169 end
170
171 device pnp 2e.3 on # Serial Port
172 io 0x60 = 0x3f8
173 irq 0x70 = 4
174 end
175
176 device pnp 2e.7 on # GPIO
177 io 0x60 = 0x1620
178 end
179
Peter Lemenkov4ed25982020-02-06 14:51:27 +0100180 device pnp 2e.a off end # WDT
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000181 end
182 end
Sven Schnelle50270b82011-04-27 19:48:05 +0000183 device pci 1f.1 on # IDE
Sven Schnelle91321022011-03-01 19:58:47 +0000184 subsystemid 0x17aa 0x200c
185 end
186 device pci 1f.2 on # SATA
187 subsystemid 0x17aa 0x200d
188 end
189 device pci 1f.3 on # SMBUS
190 subsystemid 0x17aa 0x200f
Arthur Heymans24231ac2017-06-06 09:46:01 +0200191 chip drivers/i2c/ck505
192 register "mask" = "{ 0xff, 0xff, 0xff,
193 0xff, 0xff, 0xff, 0xff, 0xff,
194 0xff, 0xff, 0xff, 0xff }"
195 register "regs" = "{ 0x2e, 0xf7, 0x3c,
196 0x20, 0x01, 0x00, 0x1b, 0x01,
197 0x54, 0xff, 0xff, 0x07 }"
Sven Schnelle6eb8bef2011-10-23 16:57:50 +0200198 device i2c 69 on end
199 end
Elyes HAOUASb0f19882018-06-09 11:59:00 +0200200 # eeprom, 8 virtual devices, same chip
Vladimir Serbinenko62adc4c2014-01-23 09:06:08 +0100201 chip drivers/i2c/at24rf08c
202 device i2c 54 on end
203 device i2c 55 on end
204 device i2c 56 on end
205 device i2c 57 on end
206 device i2c 5c on end
207 device i2c 5d on end
208 device i2c 5e on end
209 device i2c 5f on end
210 end
Sven Schnelle91321022011-03-01 19:58:47 +0000211 end
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000212 end
Sven Schnellee2ca71e2011-02-14 20:02:47 +0000213 end
214end