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