Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 1 | chip soc/intel/skylake |
| 2 | # CPU |
| 3 | # Enable Enhanced Intel SpeedStep |
| 4 | register "eist_enable" = "1" |
| 5 | |
| 6 | # Graphics |
| 7 | # IGD Displays |
| 8 | register "panel_cfg" = "{ |
| 9 | .up_delay_ms = 0, // T3 |
| 10 | .backlight_on_delay_ms = 0, // T7 |
| 11 | .backlight_off_delay_ms = 0, // T9 |
| 12 | .down_delay_ms = 0, // T10 |
| 13 | .cycle_delay_ms = 500, // T12 |
| 14 | .backlight_pwm_hz = 200, // PWM |
| 15 | }" |
| 16 | |
| 17 | # FSP Memory |
| 18 | register "SaGv" = "SaGv_Enabled" |
| 19 | |
| 20 | # FSP Silicon |
| 21 | # Serial I/O |
| 22 | register "SerialIoDevMode" = "{ |
| 23 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 24 | [PchSerialIoIndexUart2] = PchSerialIoSkipInit, |
| 25 | }" |
| 26 | |
| 27 | # Power |
| 28 | register "PmConfigSlpS3MinAssert" = "2" # 50ms |
| 29 | register "PmConfigSlpS4MinAssert" = "3" # 1s |
| 30 | register "PmConfigSlpSusMinAssert" = "3" # 500ms |
| 31 | register "PmConfigSlpAMinAssert" = "3" # 2s |
| 32 | |
| 33 | # Thermal |
| 34 | register "tcc_offset" = "10" |
| 35 | |
| 36 | # PM Util |
| 37 | # GPE configuration |
| 38 | # Note that GPE events called out in ASL code rely on this |
| 39 | # route. i.e. If this route changes then the affected GPE |
| 40 | # offset bits also need to be changed. |
| 41 | # sudo devmem2 0xfe001920 (pmc_bar + GPIO_GPE_CFG) |
| 42 | register "gpe0_dw0" = "GPP_B" |
| 43 | register "gpe0_dw1" = "GPP_C" |
| 44 | register "gpe0_dw2" = "GPP_E" |
| 45 | |
| 46 | # Enable the correct decode ranges on the LPC bus. |
| 47 | register "lpc_ioe" = "LPC_IOE_EC_4E_4F | |
| 48 | LPC_IOE_KBC_60_64 | |
| 49 | LPC_IOE_EC_62_66" |
| 50 | |
| 51 | # Actual device tree. |
| 52 | device cpu_cluster 0 on |
| 53 | device lapic 0 on end |
| 54 | end |
| 55 | |
| 56 | device domain 0 on |
| 57 | device pci 00.0 on end # Host Bridge |
| 58 | device pci 02.0 on end # Integrated Graphics Device |
| 59 | device pci 04.0 on end # SA Thermal Device |
| 60 | device pci 14.0 on # USB xHCI |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 61 | # Motherboard USB Type C |
| 62 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" |
Sean Rhodes | 220a47d | 2022-05-30 10:39:00 +0100 | [diff] [blame^] | 63 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 64 | |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 65 | # Motherboard USB 3.0 |
| 66 | register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | 220a47d | 2022-05-30 10:39:00 +0100 | [diff] [blame^] | 67 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 68 | |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 69 | # Daughterboard USB 3.0 |
| 70 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | 220a47d | 2022-05-30 10:39:00 +0100 | [diff] [blame^] | 71 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 72 | |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 73 | # Internal Webcam |
| 74 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | 220a47d | 2022-05-30 10:39:00 +0100 | [diff] [blame^] | 75 | |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 76 | # Daughterboard SD Card |
| 77 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" |
| 78 | |
Sean Rhodes | 220a47d | 2022-05-30 10:39:00 +0100 | [diff] [blame^] | 79 | # Internal Bluetooth |
| 80 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 81 | end |
| 82 | device pci 14.1 off end # USB xDCI (OTG) |
| 83 | device pci 14.2 on end # Thermal Subsystem |
| 84 | device pci 15.0 on # I2C #0 |
| 85 | chip drivers/i2c/hid |
| 86 | register "generic.hid" = ""STAR0001"" |
| 87 | register "generic.desc" = ""Touchpad"" |
| 88 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C23_IRQ)" |
| 89 | register "generic.probed" = "1" |
| 90 | register "hid_desc_reg_offset" = "0x20" |
| 91 | device i2c 2c on end |
| 92 | end |
| 93 | end |
| 94 | device pci 15.1 off end # I2C1 |
| 95 | device pci 15.2 off end # I2C2 |
| 96 | device pci 15.3 off end # I2C3 |
| 97 | device pci 16.0 on end # Management Engine Interface 1 |
| 98 | device pci 16.1 off end # Management Engine Interface 2 |
| 99 | device pci 16.2 off end # Management Engine IDE-R |
| 100 | device pci 16.3 off end # Management Engine KT Redirection |
| 101 | device pci 16.4 off end # Management Engine Interface 3 |
| 102 | device pci 17.0 on # SATA |
| 103 | register "SataSalpSupport" = "1" |
| 104 | # Port 1 |
| 105 | register "SataPortsEnable[1]" = "1" |
| 106 | register "SataPortsDevSlp[1]" = "1" |
| 107 | end |
| 108 | device pci 19.0 on end # UART #2 |
| 109 | device pci 19.1 off end # I2C4 |
| 110 | device pci 19.2 off end # I2C5 |
| 111 | device pci 1c.0 off end # PCI Express Port 1 |
| 112 | device pci 1c.1 off end # PCI Express Port 2 |
| 113 | device pci 1c.2 off end # PCI Express Port 3 |
| 114 | device pci 1c.3 off end # PCI Express Port 4 |
| 115 | device pci 1c.4 off end # PCI Express Port 5 |
| 116 | device pci 1c.5 on # PCI Express Port 6 |
| 117 | register "PcieRpEnable[5]" = "1" |
| 118 | register "PcieRpClkReqSupport[5]" = "1" |
| 119 | register "PcieRpClkReqNumber[5]" = "4" |
| 120 | register "PcieRpClkSrcNumber[5]" = "4" |
| 121 | register "PcieRpLtrEnable[5]" = "1" |
| 122 | chip drivers/wifi/generic |
| 123 | device generic 0 on end |
| 124 | end |
| 125 | end |
| 126 | device pci 1c.6 off end # PCI Express Port 7 |
| 127 | device pci 1c.7 off end # PCI Express Port 8 |
| 128 | device pci 1d.0 on # PCI Express Port 9(SSD x4) |
| 129 | register "PcieRpEnable[8]" = "1" |
| 130 | register "PcieRpClkReqSupport[8]" = "1" |
| 131 | register "PcieRpClkReqNumber[8]" = "0" |
| 132 | register "PcieRpClkSrcNumber[8]" = "0" |
| 133 | register "PcieRpLtrEnable[8]" = "1" |
| 134 | smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X" |
| 135 | end |
| 136 | device pci 1d.1 off end # PCI Express Port 10 |
| 137 | device pci 1d.2 off end # PCI Express Port 11 |
| 138 | device pci 1d.3 off end # PCI Express Port 12 |
| 139 | device pci 1e.0 on end # UART #0 |
| 140 | device pci 1e.1 off end # UART #1 |
| 141 | device pci 1e.2 off end # GSPI #0 |
| 142 | device pci 1e.3 off end # GSPI #1 |
| 143 | device pci 1e.4 off end # eMMC |
| 144 | device pci 1e.5 off end # SDIO |
| 145 | device pci 1e.6 off end # SDCard |
| 146 | device pci 1f.0 on # LPC Interface |
| 147 | register "gen1_dec" = "0x000c0681" |
| 148 | register "gen2_dec" = "0x000c1641" |
| 149 | register "gen3_dec" = "0x00000069" |
| 150 | register "gen4_dec" = "0x0000006d" |
| 151 | |
| 152 | chip ec/starlabs/merlin |
| 153 | # Port pair 4Eh/4Fh |
| 154 | device pnp 4e.00 on end # IO Interface |
| 155 | device pnp 4e.01 off end # Com 1 |
| 156 | device pnp 4e.02 off end # Com 2 |
| 157 | device pnp 4e.04 off end # System Wake-Up |
| 158 | device pnp 4e.05 off end # PS/2 Mouse |
| 159 | device pnp 4e.06 on # PS/2 Keyboard |
| 160 | io 0x60 = 0x0060 |
| 161 | io 0x62 = 0x0064 |
| 162 | irq 0x70 = 1 |
| 163 | end |
| 164 | device pnp 4e.0a off end # Consumer IR |
| 165 | device pnp 4e.0f off end # Shared Memory/Flash Interface |
| 166 | device pnp 4e.10 off end # RTC-like Timer |
| 167 | device pnp 4e.11 off end # Power Management Channel 1 |
| 168 | device pnp 4e.12 off end # Power Management Channel 2 |
| 169 | device pnp 4e.13 off end # Serial Peripheral Interface |
| 170 | device pnp 4e.14 off end # Platform EC Interface |
| 171 | device pnp 4e.17 off end # Power Management Channel 3 |
| 172 | device pnp 4e.18 off end # Power Management Channel 4 |
| 173 | device pnp 4e.19 off end # Power Management Channel 5 |
| 174 | end |
| 175 | end |
| 176 | device pci 1f.1 off end # P2SB |
| 177 | device pci 1f.2 on end # Power Management Controller |
| 178 | device pci 1f.3 on end # Intel HDA |
| 179 | device pci 1f.4 on end # SMBus |
| 180 | device pci 1f.5 on end # PCH SPI |
| 181 | device pci 1f.6 off end # GbE |
| 182 | end |
| 183 | end |