Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 2 | |
| 3 | chip northbridge/intel/i945 |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 4 | # IGD Displays |
Nico Huber | b0b25c8 | 2020-03-21 20:35:12 +0100 | [diff] [blame] | 5 | register "gfx" = "GMA_STATIC_DISPLAYS(0)" |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 6 | |
Vladimir Serbinenko | 26ca08c | 2014-06-01 00:24:05 +0200 | [diff] [blame] | 7 | register "gpu_hotplug" = "0x00000220" |
| 8 | register "gpu_lvds_use_spread_spectrum_clock" = "1" |
Arthur Heymans | 8e07900 | 2017-01-14 22:31:54 +0100 | [diff] [blame] | 9 | 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 Serbinenko | 26ca08c | 2014-06-01 00:24:05 +0200 | [diff] [blame] | 15 | |
Stefan Reinauer | 0aa37c4 | 2013-02-12 15:20:54 -0800 | [diff] [blame] | 16 | device cpu_cluster 0 on |
Arthur Heymans | 22d6ee8 | 2022-11-07 10:03:40 +0100 | [diff] [blame] | 17 | ops i945_cpu_bus_ops |
Nico Huber | 4829af1 | 2019-02-27 14:23:18 +0100 | [diff] [blame] | 18 | chip cpu/intel/socket_m |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 19 | device lapic 0 on end |
| 20 | end |
| 21 | end |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 22 | |
Arthur Heymans | 885c289 | 2016-10-03 17:16:48 +0200 | [diff] [blame] | 23 | register "pci_mmio_size" = "768" |
| 24 | |
Stefan Reinauer | 4aff445 | 2013-02-12 14:17:15 -0800 | [diff] [blame] | 25 | device domain 0 on |
Arthur Heymans | 22d6ee8 | 2022-11-07 10:03:40 +0100 | [diff] [blame] | 26 | ops i945_pci_domain_ops |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 27 | device pci 00.0 on # Host bridge |
| 28 | subsystemid 0x17aa 0x2017 |
| 29 | end |
| 30 | device pci 02.0 on # VGA controller |
| 31 | subsystemid 0x17aa 0x201a |
| 32 | end |
| 33 | device pci 02.1 on # display controller |
| 34 | subsystemid 0x17aa 0x201a |
| 35 | end |
| 36 | chip southbridge/intel/i82801gx |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 37 | register "pirqa_routing" = "0x0b" |
| 38 | register "pirqb_routing" = "0x0b" |
| 39 | register "pirqc_routing" = "0x0b" |
| 40 | register "pirqd_routing" = "0x0b" |
| 41 | register "pirqe_routing" = "0x0b" |
| 42 | register "pirqf_routing" = "0x0b" |
| 43 | register "pirqg_routing" = "0x0b" |
| 44 | register "pirqh_routing" = "0x0b" |
| 45 | |
| 46 | # GPI routing |
| 47 | # 0 No effect (default) |
| 48 | # 1 SMI# (if corresponding ALT_GPI_SMI_EN bit is also set) |
| 49 | # 2 SCI (if corresponding GPIO_EN bit is also set) |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 50 | register "gpi13_routing" = "2" |
Sven Schnelle | 8b39e07 | 2011-06-12 16:49:13 +0200 | [diff] [blame] | 51 | register "gpi12_routing" = "1" |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 52 | register "gpi8_routing" = "2" |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 53 | |
Sven Schnelle | e572ef6 | 2011-10-27 13:10:14 +0200 | [diff] [blame] | 54 | register "sata_ports_implemented" = "0x01" |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 55 | |
| 56 | register "gpe0_en" = "0x11000006" |
Sven Schnelle | 8b39e07 | 2011-06-12 16:49:13 +0200 | [diff] [blame] | 57 | register "alt_gp_smi_en" = "0x1000" |
Sven Schnelle | 6eb8bef | 2011-10-23 16:57:50 +0200 | [diff] [blame] | 58 | |
| 59 | register "c4onc3_enable" = "1" |
Vladimir Serbinenko | ab83ef0 | 2014-10-25 15:18:25 +0200 | [diff] [blame] | 60 | |
| 61 | register "c3_latency" = "0x23" |
| 62 | register "docking_supported" = "1" |
| 63 | register "p_cnt_throttling_supported" = "1" |
| 64 | |
Arthur Heymans | fecf777 | 2019-11-09 14:19:04 +0100 | [diff] [blame] | 65 | register "gen1_dec" = "0x007c1601" |
| 66 | register "gen2_dec" = "0x000c15e1" |
| 67 | register "gen3_dec" = "0x001c1681" |
| 68 | |
Paul Menzel | 68eff4f | 2014-03-03 09:18:18 +0100 | [diff] [blame] | 69 | device pci 1b.0 on # Audio Controller |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 70 | subsystemid 0x17aa 0x2010 |
| 71 | end |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 72 | device pci 1c.0 on end # Ethernet |
| 73 | device pci 1c.1 on end # Atheros WLAN |
Arthur Heymans | b9d2589 | 2018-06-15 22:02:28 +0200 | [diff] [blame] | 74 | device pci 1c.2 on end # PCIe port 3 |
| 75 | device pci 1c.3 on end # PCIe port 4 |
| 76 | device pci 1c.4 off end # PCIe port 5 |
| 77 | device pci 1c.5 off end # PCIe port 6 |
| 78 | |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 79 | device pci 1d.0 on # USB UHCI |
| 80 | subsystemid 0x17aa 0x200a |
| 81 | end |
| 82 | device pci 1d.1 on # USB UHCI |
| 83 | subsystemid 0x17aa 0x200a |
| 84 | end |
| 85 | device pci 1d.2 on # USB UHCI |
| 86 | subsystemid 0x17aa 0x200a |
| 87 | end |
| 88 | device pci 1d.3 on # USB UHCI |
| 89 | subsystemid 0x17aa 0x200a |
| 90 | end |
| 91 | device pci 1d.7 on # USB2 EHCI |
| 92 | subsystemid 0x17aa 0x200b |
| 93 | end |
Nico Huber | 8d546b7 | 2021-09-07 16:46:03 +0200 | [diff] [blame] | 94 | device pci 1e.0 on # PCI Bridge |
| 95 | chip southbridge/ricoh/rl5c476 |
| 96 | device pci 0.0 on end |
| 97 | end |
| 98 | end |
Arthur Heymans | b9d2589 | 2018-06-15 22:02:28 +0200 | [diff] [blame] | 99 | device pci 1e.2 off end # AC'97 Audio |
| 100 | device pci 1e.3 off end # AC'97 Modem |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 101 | device pci 1f.0 on # PCI-LPC bridge |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 102 | subsystemid 0x17aa 0x2009 |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 103 | chip ec/lenovo/pmh7 |
Peter Lemenkov | 4ed2598 | 2020-02-06 14:51:27 +0100 | [diff] [blame] | 104 | device pnp ff.1 on end # dummy |
Sven Schnelle | 1fa61eb | 2011-04-11 19:43:50 +0000 | [diff] [blame] | 105 | register "backlight_enable" = "0x01" |
Sven Schnelle | 8d0b86c | 2011-07-11 18:36:16 +0200 | [diff] [blame] | 106 | register "dock_event_enable" = "0x01" |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 107 | end |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 108 | chip ec/lenovo/h8 |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 109 | device pnp ff.2 on # dummy |
| 110 | io 0x60 = 0x62 |
| 111 | io 0x62 = 0x66 |
| 112 | io 0x64 = 0x1600 |
| 113 | io 0x66 = 0x1604 |
| 114 | end |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 115 | |
| 116 | register "config0" = "0xa6" |
| 117 | register "config1" = "0x05" |
| 118 | register "config2" = "0xa0" |
Sven Schnelle | 8d0b86c | 2011-07-11 18:36:16 +0200 | [diff] [blame] | 119 | register "config3" = "0x01" |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 120 | |
| 121 | register "beepmask0" = "0xfe" |
| 122 | register "beepmask1" = "0x96" |
Vladimir Serbinenko | 9a3b9c4 | 2014-01-11 20:56:47 +0100 | [diff] [blame] | 123 | register "has_power_management_beeps" = "1" |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 124 | |
| 125 | register "event2_enable" = "0xff" |
| 126 | register "event3_enable" = "0xff" |
| 127 | register "event4_enable" = "0xf4" |
| 128 | register "event5_enable" = "0x3c" |
Sven Schnelle | 8d0b86c | 2011-07-11 18:36:16 +0200 | [diff] [blame] | 129 | register "event6_enable" = "0x80" |
| 130 | register "event7_enable" = "0x01" |
Sven Schnelle | 8d0b86c | 2011-07-11 18:36:16 +0200 | [diff] [blame] | 131 | register "event8_enable" = "0x01" |
| 132 | register "event9_enable" = "0xff" |
| 133 | register "eventa_enable" = "0xff" |
| 134 | register "eventb_enable" = "0xff" |
| 135 | register "eventc_enable" = "0xff" |
| 136 | register "eventd_enable" = "0xff" |
Patrick Rudolph | b77eec8 | 2017-05-21 09:20:39 +0200 | [diff] [blame] | 137 | |
| 138 | register "has_bdc_detection" = "1" |
| 139 | register "bdc_gpio_num" = "7" |
| 140 | register "bdc_gpio_lvl" = "0" |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 141 | end |
| 142 | chip superio/nsc/pc87382 |
| 143 | device pnp 164e.2 on # IR |
| 144 | io 0x60 = 0x2f8 |
| 145 | end |
| 146 | |
Vladimir Serbinenko | f2b3cd6 | 2014-02-15 17:00:46 +0100 | [diff] [blame] | 147 | device pnp 164e.3 on # Digitizer |
| 148 | io 0x60 = 0x200 |
| 149 | irq 0x29 = 0xb0 |
| 150 | irq 0x70 = 0x5 |
| 151 | irq 0xf0 = 0x82 |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 152 | end |
| 153 | |
| 154 | device pnp 164e.7 on # GPIO |
| 155 | io 0x60 = 0x1680 |
| 156 | end |
| 157 | |
| 158 | device pnp 164e.19 on # DLPC |
| 159 | io 0x60 = 0x164c |
| 160 | end |
| 161 | end |
| 162 | |
| 163 | chip superio/nsc/pc87392 |
Peter Lemenkov | 4ed2598 | 2020-02-06 14:51:27 +0100 | [diff] [blame] | 164 | device pnp 2e.0 off end #FDC |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 165 | |
| 166 | device pnp 2e.1 on # Parallel Port |
| 167 | io 0x60 = 0x3bc |
| 168 | irq 0x70 = 7 |
| 169 | end |
| 170 | |
| 171 | device pnp 2e.2 off # Serial Port / IR |
| 172 | io 0x60 = 0x2f8 |
| 173 | irq 0x70 = 4 |
| 174 | end |
| 175 | |
| 176 | device pnp 2e.3 on # Serial Port |
| 177 | io 0x60 = 0x3f8 |
| 178 | irq 0x70 = 4 |
| 179 | end |
| 180 | |
| 181 | device pnp 2e.7 on # GPIO |
| 182 | io 0x60 = 0x1620 |
| 183 | end |
| 184 | |
Peter Lemenkov | 4ed2598 | 2020-02-06 14:51:27 +0100 | [diff] [blame] | 185 | device pnp 2e.a off end # WDT |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 186 | end |
| 187 | end |
Sven Schnelle | 50270b8 | 2011-04-27 19:48:05 +0000 | [diff] [blame] | 188 | device pci 1f.1 on # IDE |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 189 | subsystemid 0x17aa 0x200c |
| 190 | end |
| 191 | device pci 1f.2 on # SATA |
| 192 | subsystemid 0x17aa 0x200d |
| 193 | end |
| 194 | device pci 1f.3 on # SMBUS |
| 195 | subsystemid 0x17aa 0x200f |
Arthur Heymans | 24231ac | 2017-06-06 09:46:01 +0200 | [diff] [blame] | 196 | chip drivers/i2c/ck505 |
| 197 | register "mask" = "{ 0xff, 0xff, 0xff, |
| 198 | 0xff, 0xff, 0xff, 0xff, 0xff, |
| 199 | 0xff, 0xff, 0xff, 0xff }" |
| 200 | register "regs" = "{ 0x2e, 0xf7, 0x3c, |
| 201 | 0x20, 0x01, 0x00, 0x1b, 0x01, |
| 202 | 0x54, 0xff, 0xff, 0x07 }" |
Sven Schnelle | 6eb8bef | 2011-10-23 16:57:50 +0200 | [diff] [blame] | 203 | device i2c 69 on end |
| 204 | end |
Elyes HAOUAS | b0f1988 | 2018-06-09 11:59:00 +0200 | [diff] [blame] | 205 | # eeprom, 8 virtual devices, same chip |
Vladimir Serbinenko | 62adc4c | 2014-01-23 09:06:08 +0100 | [diff] [blame] | 206 | chip drivers/i2c/at24rf08c |
| 207 | device i2c 54 on end |
| 208 | device i2c 55 on end |
| 209 | device i2c 56 on end |
| 210 | device i2c 57 on end |
| 211 | device i2c 5c on end |
| 212 | device i2c 5d on end |
| 213 | device i2c 5e on end |
| 214 | device i2c 5f on end |
| 215 | end |
Sven Schnelle | 9132102 | 2011-03-01 19:58:47 +0000 | [diff] [blame] | 216 | end |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 217 | end |
Sven Schnelle | e2ca71e | 2011-02-14 20:02:47 +0000 | [diff] [blame] | 218 | end |
| 219 | end |