Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 1 | chip northbridge/intel/sandybridge |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 2 | # IGD Displays |
Nico Huber | b0b25c8 | 2020-03-21 20:35:12 +0100 | [diff] [blame] | 3 | register "gfx" = "GMA_STATIC_DISPLAYS(0)" |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 4 | |
| 5 | device cpu_cluster 0 on |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 6 | chip cpu/intel/model_206ax |
| 7 | # Magic APIC ID to locate this chip |
Angel Pons | c56c723 | 2021-05-17 11:03:55 +0200 | [diff] [blame] | 8 | device lapic 0 on end |
Arthur Heymans | b3f2323 | 2019-01-21 17:48:55 +0100 | [diff] [blame] | 9 | device lapic 0xacac off end |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 10 | |
Angel Pons | 6f56a23 | 2021-01-04 17:02:23 +0100 | [diff] [blame] | 11 | register "acpi_c1" = "1" # ACPI(C1) = MWAIT(C1) |
| 12 | register "acpi_c2" = "4" # ACPI(C2) = MWAIT(C3) |
| 13 | register "acpi_c3" = "0" # ACPI(C3) = MWAIT(C7) |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 14 | end |
| 15 | end |
| 16 | |
| 17 | device domain 0 on |
| 18 | device pci 00.0 on end # host bridge |
| 19 | device pci 01.0 on end # PCIe Bridge x16 |
| 20 | device pci 02.0 on end # vga controller |
| 21 | |
| 22 | chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 23 | # Enable all SATA ports 0-5 |
| 24 | register "sata_port_map" = "0x3f" |
| 25 | # Set max SATA speed to 6.0 Gb/s (should be the default, anyway) |
| 26 | register "sata_interface_speed_support" = "0x3" |
| 27 | |
| 28 | # TODO: Enable generic LPC decodes... |
| 29 | register "gen1_dec" = "0x001c02e1" |
| 30 | #register "gen2_dec" = "0x00000000" |
| 31 | #register "gen3_dec" = "0x00000000" |
| 32 | #register "gen4_dec" = "0x00000000" |
| 33 | |
| 34 | # Disable root port coalescing |
| 35 | register "pcie_port_coalesce" = "0" |
| 36 | |
Nico Huber | ee09d9c | 2015-08-19 15:46:13 +0200 | [diff] [blame] | 37 | register "xhci_switchable_ports" = "0x0f" |
| 38 | register "superspeed_capable_ports" = "0x0f" |
| 39 | |
Nico Huber | efe1fed | 2013-04-29 18:00:57 +0200 | [diff] [blame] | 40 | device pci 14.0 on end # USB 3.0 Controller |
| 41 | device pci 16.0 on end # Management Engine Interface 1 |
| 42 | device pci 16.1 off end # Management Engine Interface 2 |
| 43 | device pci 16.2 off end # Management Engine IDE-R |
| 44 | device pci 16.3 off end # Management Engine KT |
| 45 | device pci 19.0 on end # Intel Gigabit Ethernet |
| 46 | device pci 1a.0 on end # USB2 EHCI #2 |
| 47 | device pci 1b.0 on end # High Definition Audio |
| 48 | |
| 49 | # Disabling 1c.0 might break IRQ settings as it enables port coalescing |
| 50 | # There are two mini PCIe x1 sockets, so one PCIe port is unrouted |
| 51 | device pci 1c.0 on end # PCIe Port #1 mini PCIe x1? |
| 52 | device pci 1c.1 on end # PCIe Port #2 mini PCIe x1? |
| 53 | device pci 1c.2 on end # PCIe Port #3 second Ethernet NIC |
| 54 | device pci 1c.3 on end # PCIe Port #4 third Ethernet NIC |
| 55 | device pci 1c.4 on end # PCIe Port #5 first Ethernet PHY |
| 56 | device pci 1c.5 on end # PCIe Port #6 FireWire |
| 57 | device pci 1c.6 on end # PCIe Port #7 PCIe x1 |
| 58 | device pci 1c.7 on end # PCIe Port #8 mini PCIe x1? |
| 59 | |
| 60 | device pci 1d.0 on end # USB2 EHCI #1 |
| 61 | device pci 1e.0 off end # PCI bridge |
| 62 | device pci 1f.0 on #LPC bridge |
| 63 | chip superio/winbond/w83627dhg |
| 64 | device pnp 2e.0 off # Floppy |
| 65 | end |
| 66 | device pnp 2e.1 off # Parallel Port |
| 67 | end |
| 68 | device pnp 2e.2 on # Com1 |
| 69 | io 0x60 = 0x3f8 |
| 70 | irq 0x70 = 4 |
| 71 | end |
| 72 | device pnp 2e.3 on # Com2 |
| 73 | io 0x60 = 0x2f8 |
| 74 | irq 0x70 = 3 |
| 75 | end |
| 76 | device pnp 2e.5 off # Keyboard |
| 77 | end |
| 78 | device pnp 2e.6 off # SPI |
| 79 | end |
| 80 | device pnp 2e.307 off # GPIO 1 |
| 81 | end |
| 82 | device pnp 2e.8 off # WDTO#, PLED |
| 83 | end |
| 84 | device pnp 2e.009 on # GPIO2 -- original firmware sets this on |
| 85 | end |
| 86 | device pnp 2e.109 on # GPIO3 -- original firmware sets this on |
| 87 | end |
| 88 | device pnp 2e.209 off # GPIO4 |
| 89 | end |
| 90 | device pnp 2e.309 off # GPIO5 |
| 91 | end |
| 92 | device pnp 2e.a off # ACPI |
| 93 | end |
| 94 | device pnp 2e.b off # HWM |
| 95 | end |
| 96 | device pnp 2e.c off # PECI, SST |
| 97 | end |
| 98 | end #superio/winbond/w83627dhg |
| 99 | chip ec/kontron/it8516e |
| 100 | # Set CPU Fan to 50°C, System Fan to 75% |
| 101 | register "default_fan_mode" = "{ IT8516E_MODE_THERMAL, IT8516E_MODE_PWM }" |
| 102 | register "default_fan_target" = "{ 50, 75 }" |
| 103 | |
| 104 | # TODO: Check status when Linux runs |
| 105 | device pnp 20e.1 on # Com3 |
| 106 | io 0x60 = 0x03e8 |
| 107 | irq 0x70 = 4 |
| 108 | end |
| 109 | device pnp 20e.2 on # Com4 |
| 110 | io 0x60 = 0x02e8 |
| 111 | irq 0x70 = 3 |
| 112 | end |
| 113 | device pnp 20e.4 off # System Wakeup |
| 114 | end |
| 115 | device pnp 20e.5 on # Mouse |
| 116 | irq 0x70 = 12 |
| 117 | end |
| 118 | device pnp 20e.6 on # Keyboard |
| 119 | io 0x60 = 0x0060 |
| 120 | io 0x62 = 0x0064 |
| 121 | irq 0x70 = 1 |
| 122 | end |
| 123 | device pnp 20e.f off # Shared Memory |
| 124 | end |
| 125 | device pnp 20e.10 off # BRAM / RTC |
| 126 | end |
| 127 | device pnp 20e.11 on # PM channel 1 |
| 128 | io 0x60 = 0x0062 |
| 129 | io 0x62 = 0x0066 |
| 130 | irq 0x70 = 0 |
| 131 | end |
| 132 | device pnp 20e.12 on # PM channel 2 |
| 133 | io 0x60 = 0x020c |
| 134 | io 0x62 = 0x020d |
| 135 | irq 0x70 = 0 |
| 136 | end |
| 137 | device pnp 20e.17 off # PM channel 3 |
| 138 | end |
| 139 | end #ec/kontron/it8516e |
| 140 | # TODO: TPM on 4e |
| 141 | end # LPC bridge |
| 142 | device pci 1f.2 on end # SATA Controller 1 |
| 143 | device pci 1f.3 on end # SMBus |
| 144 | device pci 1f.5 off end # SATA Controller 2 |
| 145 | device pci 1f.6 off end # Thermal |
| 146 | end |
| 147 | end |
| 148 | end |