Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 1 | chip soc/intel/alderlake |
| 2 | # Graphics |
| 3 | # TODO: |
| 4 | # register "panel_cfg" = "{ |
| 5 | # .up_delay_ms = 200, // T3 |
| 6 | # .backlight_on_delay_ms = 0, // T7 |
| 7 | # .backlight_off_delay_ms = 50, // T9 |
| 8 | # .down_delay_ms = 0, // T10 |
| 9 | # .cycle_delay_ms = 500, // T12 |
| 10 | # .backlight_pwm_hz = 200, // PWM |
| 11 | # }" |
| 12 | |
| 13 | # FSP Memory |
| 14 | register "enable_c6dram" = "1" |
| 15 | register "sagv" = "SaGv_Enabled" |
| 16 | |
| 17 | # FSP Silicon |
| 18 | register "eist_enable" = "1" |
| 19 | |
| 20 | # Serial I/O |
| 21 | register "serial_io_i2c_mode" = "{ |
| 22 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 23 | }" |
| 24 | |
| 25 | register "serial_io_uart_mode" = "{ |
| 26 | [PchSerialIoIndexUART0] = PchSerialIoSkipInit, |
| 27 | }" |
| 28 | |
| 29 | # Power |
| 30 | register "pch_slp_s3_min_assertion_width" = "2" # 50ms |
| 31 | register "pch_slp_s4_min_assertion_width" = "3" # 1s |
| 32 | register "pch_slp_sus_min_assertion_width" = "3" # 500ms |
| 33 | register "pch_slp_a_min_assertion_width" = "3" # 2s |
| 34 | |
| 35 | # PM Util |
| 36 | register "pmc_gpe0_dw0" = "GPP_B" |
| 37 | register "pmc_gpe0_dw1" = "GPP_C" |
| 38 | register "pmc_gpe0_dw2" = "GPP_E" |
| 39 | |
| 40 | # Device Tree |
| 41 | device cpu_cluster 0 on |
| 42 | device lapic 0 on end |
| 43 | end |
| 44 | |
| 45 | device domain 0 on |
| 46 | device ref igpu on |
| 47 | register "ddi_portA_config" = "1" |
| 48 | register "ddi_ports_config" = "{ |
| 49 | [DDI_PORT_A] = DDI_ENABLE_HPD, |
| 50 | [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC, |
| 51 | }" |
| 52 | end |
| 53 | device ref gna on end |
| 54 | device ref crashlog off end |
| 55 | device ref xhci on |
| 56 | # Motherboard USB Type C |
Sean Rhodes | b45502c | 2023-01-23 16:03:44 +0000 | [diff] [blame^] | 57 | register "usb2_ports[0]" = "USB2_PORT_MID(OC3)" |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 58 | register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC3)" |
| 59 | |
| 60 | # Motherboard USB 3.0 |
| 61 | register "usb2_ports[2]" = "USB2_PORT_MID(OC0)" |
| 62 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)" |
| 63 | |
| 64 | # Daughterboard USB 3.0 |
| 65 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" |
| 66 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" |
| 67 | |
| 68 | # Internal Webcam |
| 69 | register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)" |
| 70 | |
| 71 | # Fingerprint Reader |
| 72 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" |
| 73 | |
| 74 | # Daughterboard SD Card |
| 75 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" |
| 76 | |
| 77 | # Internal Bluetooth |
| 78 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" |
| 79 | end |
| 80 | device ref i2c0 on |
| 81 | chip drivers/i2c/hid |
| 82 | register "generic.hid" = ""STAR0001"" |
| 83 | register "generic.desc" = ""Touchpad"" |
| 84 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_E12_IRQ)" |
| 85 | register "hid_desc_reg_offset" = "0x20" |
| 86 | device i2c 2c on end |
| 87 | end |
| 88 | end |
| 89 | device ref shared_sram on end |
| 90 | device ref heci1 on end |
| 91 | device ref sata on |
| 92 | register "sata_salp_support" = "1" |
| 93 | register "sata_ports_enable[1]" = "1" |
| 94 | register "sata_ports_dev_slp[1]" = "1" |
| 95 | end |
| 96 | device ref pcie_rp5 on # WiFi |
| 97 | chip drivers/wifi/generic |
| 98 | register "wake" = "GPE0_PME_B0" |
| 99 | device generic 0 on end |
| 100 | end |
| 101 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 102 | .clk_src = 2, |
| 103 | .clk_req = 2, |
| 104 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 105 | }" |
| 106 | smbios_slot_desc "SlotTypePciExpressGen3X1" |
| 107 | "SlotLengthShort" |
| 108 | "M.2/M 2230" |
| 109 | "SlotDataBusWidth1X" |
| 110 | chip soc/intel/common/block/pcie/rtd3 |
| 111 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D13)" |
| 112 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H2)" |
| 113 | register "srcclk_pin" = "2" |
| 114 | device generic 0 on end |
| 115 | end |
| 116 | end |
| 117 | device ref pcie_rp9 on # SSD x4 |
| 118 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 119 | .clk_src = 1, |
| 120 | .clk_req = 1, |
| 121 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 122 | }" |
| 123 | smbios_slot_desc "SlotTypeM2Socket3" |
| 124 | "SlotLengthLong" |
| 125 | "M.2/M 2280" |
| 126 | "SlotDataBusWidth4X" |
| 127 | chip soc/intel/common/block/pcie/rtd3 |
| 128 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D16)" |
| 129 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0)" |
| 130 | register "srcclk_pin" = "1" |
| 131 | device generic 0 on end |
| 132 | end |
| 133 | end |
| 134 | device ref uart0 on end |
| 135 | device ref pch_espi on |
| 136 | register "gen1_dec" = "0x00fc0201" |
| 137 | register "gen2_dec" = "0x00000381" |
| 138 | register "gen3_dec" = "0x00000511" |
| 139 | |
| 140 | chip drivers/pc80/tpm |
| 141 | device pnp 0c31.0 on end |
| 142 | end |
| 143 | |
| 144 | chip ec/starlabs/merlin |
| 145 | # Port pair 4Eh/4Fh |
| 146 | device pnp 4e.00 on end # IO Interface |
| 147 | device pnp 4e.01 off end # Com 1 |
| 148 | device pnp 4e.02 off end # Com 2 |
| 149 | device pnp 4e.04 off end # System Wake-Up |
| 150 | device pnp 4e.05 off end # PS/2 Mouse |
| 151 | device pnp 4e.06 on # PS/2 Keyboard |
| 152 | io 0x60 = 0x0060 |
| 153 | io 0x62 = 0x0064 |
| 154 | irq 0x70 = 1 |
| 155 | end |
| 156 | device pnp 4e.0a off end # Consumer IR |
| 157 | device pnp 4e.0f off end # Shared Memory/Flash Interface |
| 158 | device pnp 4e.10 off end # RTC-like Timer |
| 159 | device pnp 4e.11 off end # Power Management Channel 1 |
| 160 | device pnp 4e.12 off end # Power Management Channel 2 |
| 161 | device pnp 4e.13 off end # Serial Peripheral Interface |
| 162 | device pnp 4e.14 off end # Platform EC Interface |
| 163 | device pnp 4e.17 off end # Power Management Channel 3 |
| 164 | device pnp 4e.18 off end # Power Management Channel 4 |
| 165 | device pnp 4e.19 off end # Power Management Channel 5 |
| 166 | end |
| 167 | end |
| 168 | device ref p2sb on end |
| 169 | device ref hda on |
Martin L Roth | c2ed1e9 | 2023-01-16 05:54:09 +0000 | [diff] [blame] | 170 | register "pch_hda_idisp_codec_enable" = "1" |
| 171 | register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ" |
| 172 | register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T" |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 173 | end |
| 174 | device ref smbus on end |
| 175 | end |
| 176 | end |