Jeremy Soller | 976e09b | 2023-03-24 08:48:37 -0600 | [diff] [blame] | 1 | chip soc/intel/alderlake |
| 2 | # FIVR configuration |
| 3 | # Read EXT_RAIL_CONFIG to determine bitmaps |
| 4 | # sudo devmem2 0xfe0011b8 |
| 5 | # 0x0 |
| 6 | # Read EXT_V1P05_VR_CONFIG |
| 7 | # sudo devmem2 0xfe0011c0 |
| 8 | # 0x1a42000 |
| 9 | # Read EXT_VNN_VR_CONFIG0 |
| 10 | # sudo devmem2 0xfe0011c4 |
| 11 | # 0x1a42000 |
| 12 | # TODO: v1p05 voltage and vnn icc max? |
| 13 | register "ext_fivr_settings" = "{ |
| 14 | .configure_ext_fivr = 1, |
| 15 | .v1p05_enable_bitmap = 0, |
| 16 | .vnn_enable_bitmap = 0, |
| 17 | .v1p05_supported_voltage_bitmap = 0, |
| 18 | .vnn_supported_voltage_bitmap = 0, |
| 19 | .v1p05_icc_max_ma = 500, |
| 20 | .vnn_sx_voltage_mv = 1050, |
| 21 | }" |
| 22 | |
| 23 | # Thermal |
| 24 | register "tcc_offset" = "10" |
| 25 | |
| 26 | # GPE configuration |
| 27 | register "pmc_gpe0_dw0" = "PMC_GPP_R" |
| 28 | register "pmc_gpe0_dw1" = "PMC_GPP_B" |
| 29 | register "pmc_gpe0_dw2" = "PMC_GPP_D" |
| 30 | |
| 31 | device domain 0 on |
| 32 | subsystemid 0x1558 0x866d inherit |
| 33 | |
| 34 | device ref pcie5_0 on |
| 35 | # PCIe PEG2 x8, Clock 3 (DGPU) |
| 36 | register "cpu_pcie_rp[CPU_RP(2)]" = "{ |
| 37 | .clk_src = 3, |
| 38 | .clk_req = 3, |
| 39 | .flags = PCIE_RP_LTR, |
| 40 | }" |
| 41 | end |
| 42 | device ref pcie4_0 on |
| 43 | # PCIe PEG0 x4, Clock 0 (SSD2) |
| 44 | register "cpu_pcie_rp[CPU_RP(1)]" = "{ |
| 45 | .clk_src = 0, |
| 46 | .clk_req = 0, |
| 47 | .flags = PCIE_RP_LTR, |
| 48 | }" |
| 49 | end |
| 50 | device ref i2c0 on |
| 51 | # Touchpad I2C bus |
| 52 | register "serial_io_i2c_mode[PchSerialIoIndexI2C0]" = "PchSerialIoPci" |
| 53 | chip drivers/i2c/hid |
| 54 | register "generic.hid" = ""ELAN0412"" |
| 55 | register "generic.desc" = ""ELAN Touchpad"" |
| 56 | register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A17)" |
| 57 | register "generic.detect" = "1" |
| 58 | register "hid_desc_reg_offset" = "0x01" |
| 59 | device i2c 15 on end |
| 60 | end |
| 61 | chip drivers/i2c/hid |
| 62 | register "generic.hid" = ""FTCS1000"" |
| 63 | register "generic.desc" = ""FocalTech Touchpad"" |
| 64 | register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_A17)" |
| 65 | register "generic.detect" = "1" |
| 66 | register "hid_desc_reg_offset" = "0x01" |
| 67 | device i2c 38 on end |
| 68 | end |
| 69 | end |
| 70 | device ref i2c1 off end |
| 71 | device ref tbt_pcie_rp0 off end |
| 72 | device ref tcss_xhci on |
| 73 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)" |
| 74 | device ref tcss_root_hub on |
| 75 | device ref tcss_usb3_port1 on end |
| 76 | end |
| 77 | end |
| 78 | device ref xhci on |
Felix Singer | 1b102ca | 2023-10-26 16:32:19 +0200 | [diff] [blame^] | 79 | register "usb2_ports" = "{ |
| 80 | [2] = USB2_PORT_TYPE_C(OC_SKIP), /* J_TYPEC1 */ |
| 81 | [4] = USB2_PORT_MID(OC_SKIP), /* USB 3.2 Type-A audio board */ |
| 82 | [5] = USB2_PORT_TYPE_C(OC_SKIP), /* J_TYPEC2 */ |
| 83 | [6] = USB2_PORT_MID(OC_SKIP), /* Fingerprint */ |
| 84 | [7] = USB2_PORT_MID(OC_SKIP), /* Camera */ |
| 85 | [8] = USB2_PORT_MID(OC_SKIP), /* USB 2.0 Type-A audio board */ |
| 86 | [9] = USB2_PORT_MID(OC_SKIP), /* Bluetooth */ |
| 87 | }" |
| 88 | register "usb3_ports" = "{ |
| 89 | [0] = USB3_PORT_DEFAULT(OC_SKIP), /* USB 3.2 Type-A audio board */ |
| 90 | [1] = USB3_PORT_DEFAULT(OC_SKIP), /* J_TYPEC2 */ |
| 91 | [2] = USB3_PORT_DEFAULT(OC_SKIP), /* J_TYPEC1 */ |
| 92 | [3] = USB3_PORT_DEFAULT(OC_SKIP), /* J_TYPEC1 */ |
| 93 | }" |
Jeremy Soller | 976e09b | 2023-03-24 08:48:37 -0600 | [diff] [blame] | 94 | end |
| 95 | device ref pcie_rp5 on |
| 96 | # PCIe RP#5 x4, Clock 1 (SSD) |
| 97 | register "pch_pcie_rp[PCH_RP(5)]" = "{ |
| 98 | .clk_src = 1, |
| 99 | .clk_req = 1, |
| 100 | .flags = PCIE_RP_LTR, |
| 101 | }" |
Jeremy Soller | 976e09b | 2023-03-24 08:48:37 -0600 | [diff] [blame] | 102 | end |
| 103 | device ref pcie_rp9 on |
| 104 | # PCIe RP#9 x1, Clock 6 (GLAN) |
| 105 | register "pch_pcie_rp[PCH_RP(9)]" = "{ |
| 106 | .clk_src = 6, |
| 107 | .clk_req = 6, |
| 108 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 109 | }" |
Jeremy Soller | 976e09b | 2023-03-24 08:48:37 -0600 | [diff] [blame] | 110 | end |
| 111 | device ref pcie_rp10 on |
| 112 | # PCIe RP#10 x1, Clock 2 (WLAN) |
| 113 | register "pch_pcie_rp[PCH_RP(10)]" = "{ |
| 114 | .clk_src = 2, |
| 115 | .clk_req = 2, |
| 116 | .flags = PCIE_RP_LTR | PCIE_RP_AER, |
| 117 | }" |
Jeremy Soller | 976e09b | 2023-03-24 08:48:37 -0600 | [diff] [blame] | 118 | end |
| 119 | device ref pcie_rp11 on |
| 120 | # PCIe RP#11 x1, Clock 5 (CARD) |
| 121 | register "pch_pcie_rp[PCH_RP(11)]" = "{ |
| 122 | .clk_src = 5, |
| 123 | .clk_req = 5, |
| 124 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 125 | }" |
Jeremy Soller | 976e09b | 2023-03-24 08:48:37 -0600 | [diff] [blame] | 126 | end |
| 127 | end |
| 128 | end |