Elyes HAOUAS | 674ad92 | 2020-05-09 13:21:47 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 2 | |
| 3 | chip northbridge/intel/x4x # Northbridge |
| 4 | device cpu_cluster 0 on # APIC cluster |
| 5 | chip cpu/intel/socket_LGA775 |
| 6 | device lapic 0 on end |
| 7 | end |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 8 | chip cpu/intel/model_1067x # CPU |
| 9 | device lapic 0xacac off end |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 10 | end |
| 11 | end |
| 12 | device domain 0 on # PCI domain |
Arthur Heymans | 055d4f2 | 2018-12-28 11:58:36 +0100 | [diff] [blame] | 13 | subsystemid 0x8086 0x0028 inherit |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 14 | device pci 0.0 on end # Host Bridge |
| 15 | device pci 2.0 on end # Integrated graphics controller |
| 16 | device pci 2.1 on end # Integrated graphics controller 2 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 17 | device pci 3.0 off end # ME |
| 18 | device pci 3.1 off end # ME |
| 19 | chip southbridge/intel/i82801jx # Southbridge |
| 20 | register "gpe0_en" = "0x40" |
| 21 | |
| 22 | # Set AHCI mode. |
| 23 | register "sata_port_map" = "0x1f" |
| 24 | register "sata_clock_request" = "0" |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 25 | |
| 26 | # Enable PCIe ports 0,2,3 as slots. |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 27 | register "pcie_slot_implemented" = "0xb" |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 28 | |
Arthur Heymans | c484da1 | 2019-11-09 14:29:04 +0100 | [diff] [blame] | 29 | register "gen1_dec" = "0x00fc0601" |
| 30 | register "gen2_dec" = "0x00fc0291" |
| 31 | |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 32 | device pci 19.0 on end # GBE |
| 33 | device pci 1a.0 on end # USB |
| 34 | device pci 1a.1 on end # USB |
| 35 | device pci 1a.2 on end # USB |
| 36 | device pci 1a.7 on end # USB |
| 37 | device pci 1b.0 on end # Audio |
| 38 | device pci 1c.0 on end # PCIe 1 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 39 | device pci 1c.1 off end # PCIe 2 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 40 | device pci 1c.2 on end # PCIe 3 |
| 41 | device pci 1c.3 on end # PCIe 4 |
Elyes HAOUAS | b93f482 | 2018-03-28 21:54:17 +0200 | [diff] [blame] | 42 | device pci 1c.4 off end # PCIe 5 |
| 43 | device pci 1c.5 off end # PCIe 6 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 44 | device pci 1d.0 on end # USB |
| 45 | device pci 1d.1 on end # USB |
| 46 | device pci 1d.2 on end # USB |
| 47 | device pci 1d.7 on end # USB |
| 48 | device pci 1e.0 on end # PCI bridge |
| 49 | device pci 1f.0 on # LPC bridge |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 50 | chip superio/winbond/w83627dhg # Super I/O |
| 51 | device pnp 2e.0 on # Floppy |
| 52 | # GLOBAL |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 53 | io 0x60 = 0x3f0 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 54 | irq 0x70 = 6 |
| 55 | drq 0x74 = 2 |
| 56 | end |
| 57 | device pnp 2e.1 on # Parallel port |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 58 | io 0x60 = 0x378 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 59 | irq 0x70 = 5 |
| 60 | drq 0x74 = 4 |
| 61 | end |
| 62 | device pnp 2e.2 on # COM 1 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 63 | io 0x60 = 0x3f8 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 64 | irq 0x70 = 4 |
| 65 | end |
| 66 | device pnp 2e.3 off end # COM 2 |
| 67 | device pnp 2e.5 on # Keyboard |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 68 | io 0x60 = 0x60 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 69 | irq 0x70 = 1 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 70 | io 0x62 = 0x64 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 71 | irq 0xf0 = 0x85 |
| 72 | end |
| 73 | device pnp 2e.6 off end # SPI |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 74 | device pnp 2e.7 on end # GPIO 6 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 75 | device pnp 2e.8 off end # WDTO# PLED |
Arthur Heymans | b474445 | 2017-09-21 18:57:19 +0200 | [diff] [blame] | 76 | device pnp 2e.9 off end # GPIO 2 |
| 77 | device pnp 2e.109 on # GPIO 3 |
| 78 | irq 0xf0 = 0xfc |
| 79 | end |
| 80 | device pnp 2e.209 off end # GPIO 4 |
| 81 | device pnp 2e.309 on # GPIO 5 |
| 82 | irq 0xe0 = 0xde |
| 83 | irq 0xe1 = 0x01 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 84 | end |
| 85 | device pnp 2e.a on # ACPI |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 86 | irq 0xe4 = 0x30 # power dram during S3 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 87 | end |
| 88 | device pnp 2e.b on # Hardware monitor |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 89 | io 0x60 = 0x290 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 90 | end |
| 91 | device pnp 2e.c off end # PECI, SST |
| 92 | end |
| 93 | end |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 94 | device pci 1f.1 on end # PATA/IDE |
| 95 | device pci 1f.2 on end # SATA |
| 96 | device pci 1f.3 on # SMBus |
| 97 | chip drivers/i2c/ck505 # SLG8XP549T |
| 98 | register "mask" = "{ 0xff, 0xff, 0xff, 0xff, |
| 99 | 0xff, 0xff, 0xff, 0xff, |
| 100 | 0xff, 0xff, 0xff, 0xff, 0xff }" |
| 101 | register "regs" = "{ 0x11, 0xd9, 0xff, 0xfd, |
| 102 | 0xff, 0x00, 0x00, 0x06, |
| 103 | 0x10, 0x05, 0x01, 0x80, 0x0d }" |
Arthur Heymans | e4188a2 | 2017-09-07 17:05:57 +0200 | [diff] [blame] | 104 | device i2c 69 on end |
| 105 | end |
| 106 | end |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 107 | device pci 1f.4 off end |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame] | 108 | device pci 1f.5 on end # IDE |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 109 | device pci 1f.6 off end |
| 110 | end |
| 111 | end |
| 112 | end |