Elyes HAOUAS | 674ad92 | 2020-05-09 13:21:47 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +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 | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 6 | chip cpu/intel/socket_LGA775 |
| 7 | device lapic 0 on end |
| 8 | end |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 9 | end |
Arthur Heymans | 1eecb8c | 2022-11-07 10:04:56 +0100 | [diff] [blame] | 10 | device domain 0 on |
| 11 | ops x4x_pci_domain_ops # PCI domain |
Angel Pons | d2f3afc | 2020-01-01 19:19:47 +0100 | [diff] [blame] | 12 | device pci 0.0 on end # Host Bridge |
| 13 | device pci 1.0 on end # PEG |
| 14 | device pci 2.0 off end # Integrated graphics controller |
| 15 | device pci 2.1 off end # Integrated graphics controller 2 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 16 | device pci 3.0 off end # ME |
| 17 | device pci 3.1 off end # ME |
| 18 | device pci 3.2 off end # ME |
| 19 | device pci 3.3 off end # ME |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 20 | device pci 6.0 on end # PEG 2 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 21 | chip southbridge/intel/i82801jx # Southbridge |
| 22 | register "gpe0_en" = "0x40" |
| 23 | |
Angel Pons | 5c74911 | 2020-01-01 19:21:28 +0100 | [diff] [blame] | 24 | register "sata_port_map" = "0x3f" |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 25 | |
| 26 | # Enable PCIe ports 0,2,3 as slots. |
Angel Pons | d2f3afc | 2020-01-01 19:19:47 +0100 | [diff] [blame] | 27 | register "pcie_slot_implemented" = "0x31" |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 28 | |
Arthur Heymans | c484da1 | 2019-11-09 14:29:04 +0100 | [diff] [blame] | 29 | register "gen1_dec" = "0x00000295" |
| 30 | register "gen2_dec" = "0x001c4701" |
| 31 | |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 32 | device pci 19.0 off 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 |
Bill XIE | c53e6ed | 2019-03-15 19:37:58 +0800 | [diff] [blame] | 38 | device pci 1c.0 on end # PCIe 1 slot 1 |
| 39 | device pci 1c.1 on end # PCIe 2 slot 2 |
| 40 | device pci 1c.2 on end # PCIe 3 slot 3 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 41 | device pci 1c.3 off end # PCIe 4 |
Jonathan Neuschäfer | 40a1966 | 2018-10-29 22:52:40 +0100 | [diff] [blame] | 42 | device pci 1c.4 on end # PCIe 5 MARVELL IDE |
Bill XIE | c53e6ed | 2019-03-15 19:37:58 +0800 | [diff] [blame] | 43 | device pci 1c.5 on end # PCIe 6 ethernet NIC |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [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 |
| 50 | chip superio/winbond/w83667hg-a # Super I/O |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 51 | device pnp 2e.0 on # FDC |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 52 | # Global registers |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 53 | irq 0x2a = 0x30 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 54 | irq 0x2c = 0x22 |
| 55 | irq 0x2d = 0x00 |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 56 | io 0x60 = 0x3f0 |
| 57 | irq 0x70 = 0x06 |
| 58 | end |
| 59 | device pnp 2e.1 off end # LPT1 |
| 60 | device pnp 2e.2 on # COM1 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 61 | io 0x60 = 0x3f8 |
| 62 | irq 0x70 = 4 |
| 63 | end |
| 64 | device pnp 2e.3 off end # COM2 |
| 65 | device pnp 2e.5 on # PS/2 keyboard & mouse |
| 66 | io 0x60 = 0x60 |
| 67 | io 0x62 = 0x64 |
| 68 | irq 0x70 = 1 |
| 69 | irq 0x72 = 12 |
| 70 | end |
| 71 | device pnp 2e.106 off end # SPI1 |
Angel Pons | 5c568e0 | 2018-11-03 15:24:29 +0100 | [diff] [blame] | 72 | device pnp 2e.107 off end # GPIO6 |
| 73 | device pnp 2e.207 off end # GPIO7 |
| 74 | device pnp 2e.307 on # GPIO8 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 75 | irq 0xe4 = 0xfb |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 76 | irq 0xe5 = 0x82 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 77 | end |
Angel Pons | 5c568e0 | 2018-11-03 15:24:29 +0100 | [diff] [blame] | 78 | device pnp 2e.407 off end # GPIO9 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 79 | device pnp 2e.8 off end # WDT |
Angel Pons | 5c568e0 | 2018-11-03 15:24:29 +0100 | [diff] [blame] | 80 | device pnp 2e.108 off end # GPIO1 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 81 | device pnp 2e.9 off end # GPIO2 |
| 82 | device pnp 2e.109 on end # GPIO3 |
| 83 | device pnp 2e.209 on # GPIO4 |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 84 | irq 0xf0 = 0xff |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 85 | irq 0xfe = 0x07 |
| 86 | end |
| 87 | device pnp 2e.309 on end # GPIO5 |
| 88 | device pnp 2e.a on # ACPI |
| 89 | irq 0xe4 = 0x10 # 3VSBSW# enable |
| 90 | irq 0xe5 = 0x02 |
| 91 | irq 0xf2 = 0xfc |
| 92 | end |
| 93 | device pnp 2e.b on # HW Monitor |
| 94 | io 0x60 = 0x290 |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 95 | irq 0x70 = 0x0 |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 96 | # IRQ purposefully not assigned to prevent lockups |
| 97 | end |
| 98 | device pnp 2e.c on end # PECI |
| 99 | device pnp 2e.d on end # VID_BUSSEL |
| 100 | device pnp 2e.f on end # GPIO_PP_OD |
| 101 | end |
| 102 | end |
| 103 | device pci 1f.1 off end # PATA/IDE |
| 104 | device pci 1f.2 on end # SATA |
| 105 | device pci 1f.3 on end # SMbus |
| 106 | device pci 1f.4 off end |
Arthur Heymans | 5f7910d | 2018-10-14 13:12:01 +0200 | [diff] [blame] | 107 | device pci 1f.5 on end # IDE |
Arthur Heymans | 1541256 | 2018-07-18 11:48:47 +0200 | [diff] [blame] | 108 | device pci 1f.6 off end |
| 109 | end |
| 110 | end |
| 111 | end |