Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2015 Damien Zammit <damien@zamaudio.com> |
| 5 | # Copyright (C) 2017 Arthur Heymans <arthur@aheymans.xyz> |
| 6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by |
| 9 | # the Free Software Foundation; either version 2 of the License, or |
| 10 | # (at your option) any later version. |
| 11 | # |
| 12 | # This program is distributed in the hope that it will be useful, |
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | # GNU General Public License for more details. |
| 16 | # |
| 17 | |
| 18 | chip northbridge/intel/x4x # Northbridge |
| 19 | device cpu_cluster 0 on # APIC cluster |
| 20 | chip cpu/intel/socket_LGA775 |
| 21 | device lapic 0 on end |
| 22 | end |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 23 | chip cpu/intel/model_1067x # CPU |
| 24 | device lapic 0xacac off end |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 25 | end |
| 26 | end |
| 27 | device domain 0 on # PCI domain |
Arthur Heymans | 055d4f2 | 2018-12-28 11:58:36 +0100 | [diff] [blame] | 28 | subsystemid 0x8086 0x0028 inherit |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 29 | device pci 0.0 on end # Host Bridge |
| 30 | device pci 2.0 on end # Integrated graphics controller |
| 31 | device pci 2.1 on end # Integrated graphics controller 2 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 32 | device pci 3.0 off end # ME |
| 33 | device pci 3.1 off end # ME |
| 34 | chip southbridge/intel/i82801jx # Southbridge |
| 35 | register "gpe0_en" = "0x40" |
| 36 | |
| 37 | # Set AHCI mode. |
| 38 | register "sata_port_map" = "0x1f" |
| 39 | register "sata_clock_request" = "0" |
| 40 | register "sata_traffic_monitor" = "0" |
| 41 | |
| 42 | # Enable PCIe ports 0,2,3 as slots. |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 43 | register "pcie_slot_implemented" = "0xb" |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 44 | |
Arthur Heymans | c484da1 | 2019-11-09 14:29:04 +0100 | [diff] [blame] | 45 | register "gen1_dec" = "0x00fc0601" |
| 46 | register "gen2_dec" = "0x00fc0291" |
| 47 | |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 48 | device pci 19.0 on end # GBE |
| 49 | device pci 1a.0 on end # USB |
| 50 | device pci 1a.1 on end # USB |
| 51 | device pci 1a.2 on end # USB |
| 52 | device pci 1a.7 on end # USB |
| 53 | device pci 1b.0 on end # Audio |
| 54 | device pci 1c.0 on end # PCIe 1 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 55 | device pci 1c.1 off end # PCIe 2 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 56 | device pci 1c.2 on end # PCIe 3 |
| 57 | device pci 1c.3 on end # PCIe 4 |
Elyes HAOUAS | b93f482 | 2018-03-28 21:54:17 +0200 | [diff] [blame] | 58 | device pci 1c.4 off end # PCIe 5 |
| 59 | device pci 1c.5 off end # PCIe 6 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 60 | device pci 1d.0 on end # USB |
| 61 | device pci 1d.1 on end # USB |
| 62 | device pci 1d.2 on end # USB |
| 63 | device pci 1d.7 on end # USB |
| 64 | device pci 1e.0 on end # PCI bridge |
| 65 | device pci 1f.0 on # LPC bridge |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 66 | chip superio/winbond/w83627dhg # Super I/O |
| 67 | device pnp 2e.0 on # Floppy |
| 68 | # GLOBAL |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 69 | io 0x60 = 0x3f0 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 70 | irq 0x70 = 6 |
| 71 | drq 0x74 = 2 |
| 72 | end |
| 73 | device pnp 2e.1 on # Parallel port |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 74 | io 0x60 = 0x378 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 75 | irq 0x70 = 5 |
| 76 | drq 0x74 = 4 |
| 77 | end |
| 78 | device pnp 2e.2 on # COM 1 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 79 | io 0x60 = 0x3f8 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 80 | irq 0x70 = 4 |
| 81 | end |
| 82 | device pnp 2e.3 off end # COM 2 |
| 83 | device pnp 2e.5 on # Keyboard |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 84 | io 0x60 = 0x60 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 85 | irq 0x70 = 1 |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 86 | io 0x62 = 0x64 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 87 | irq 0xf0 = 0x85 |
| 88 | end |
| 89 | device pnp 2e.6 off end # SPI |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 90 | device pnp 2e.7 on end # GPIO 6 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 91 | device pnp 2e.8 off end # WDTO# PLED |
Arthur Heymans | b474445 | 2017-09-21 18:57:19 +0200 | [diff] [blame] | 92 | device pnp 2e.9 off end # GPIO 2 |
| 93 | device pnp 2e.109 on # GPIO 3 |
| 94 | irq 0xf0 = 0xfc |
| 95 | end |
| 96 | device pnp 2e.209 off end # GPIO 4 |
| 97 | device pnp 2e.309 on # GPIO 5 |
| 98 | irq 0xe0 = 0xde |
| 99 | irq 0xe1 = 0x01 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 100 | end |
| 101 | device pnp 2e.a on # ACPI |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 102 | irq 0xe4 = 0x30 # power dram during S3 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 103 | end |
| 104 | device pnp 2e.b on # Hardware monitor |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 105 | io 0x60 = 0x290 |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 106 | end |
| 107 | device pnp 2e.c off end # PECI, SST |
| 108 | end |
| 109 | end |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 110 | device pci 1f.1 on end # PATA/IDE |
| 111 | device pci 1f.2 on end # SATA |
| 112 | device pci 1f.3 on # SMBus |
| 113 | chip drivers/i2c/ck505 # SLG8XP549T |
| 114 | register "mask" = "{ 0xff, 0xff, 0xff, 0xff, |
| 115 | 0xff, 0xff, 0xff, 0xff, |
| 116 | 0xff, 0xff, 0xff, 0xff, 0xff }" |
| 117 | register "regs" = "{ 0x11, 0xd9, 0xff, 0xfd, |
| 118 | 0xff, 0x00, 0x00, 0x06, |
| 119 | 0x10, 0x05, 0x01, 0x80, 0x0d }" |
Arthur Heymans | e4188a2 | 2017-09-07 17:05:57 +0200 | [diff] [blame] | 120 | device i2c 69 on end |
| 121 | end |
| 122 | end |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 123 | device pci 1f.4 off end |
Angel Pons | 45b5e03 | 2020-01-01 21:44:21 +0100 | [diff] [blame^] | 124 | device pci 1f.5 on end # IDE |
Arthur Heymans | 2a4aada | 2017-04-12 13:53:08 +0200 | [diff] [blame] | 125 | device pci 1f.6 off end |
| 126 | end |
| 127 | end |
| 128 | end |