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