William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 1 | chip soc/intel/tigerlake |
| 2 | |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame^] | 3 | # USB Port Config |
| 4 | register "usb2_ports[0]" = "USB2_PORT_MID(OC_SKIP)" # Type-A Port A0 |
| 5 | register "usb2_ports[1]" = "USB2_PORT_EMPTY" # Type-A / Type-C Not Used |
| 6 | register "usb2_ports[2]" = "USB2_PORT_EMPTY" # Type-A / Type-C Not Used |
| 7 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C C1 |
| 8 | register "usb2_ports[4]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera |
| 9 | register "usb2_ports[5]" = "USB2_PORT_EMPTY" # Type-A / Type-C Not Used |
| 10 | register "usb2_ports[6]" = "USB2_PORT_EMPTY" # Type-A / Type-C Not Used |
| 11 | register "usb2_ports[7]" = "USB2_PORT_EMPTY" # Type-A / Type-C Not Used |
| 12 | register "usb2_ports[8]" = "USB2_PORT_MID(OC_SKIP)" # Type-A / Type-C C0 |
| 13 | register "usb2_ports[9]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Bluetooth |
| 14 | |
| 15 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC1)" # USB3/2 Type A port A0 |
| 16 | register "usb3_ports[1]" = "USB3_PORT_EMPTY" # Type-A / Type-C Not Used |
| 17 | register "usb3_ports[2]" = "USB3_PORT_EMPTY" # Type-A / Type-C Not Used |
| 18 | register "usb3_ports[3]" = "USB3_PORT_EMPTY" # Type-A / Type-C Not Used |
| 19 | |
| 20 | # I2C Port Config |
| 21 | register "SerialIoI2cMode" = "{ |
| 22 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 23 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 24 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 25 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 26 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 27 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 28 | }" |
| 29 | |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 30 | device domain 0 on |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame^] | 31 | device pci 07.0 off end # TBT_PCIe0 0x9A23 |
| 32 | device pci 07.1 off end # TBT_PCIe1 0x9A25 |
| 33 | device pci 07.2 off end # TBT_PCIe2 0x9A27 |
| 34 | device pci 07.3 off end # TBT_PCIe3 0x9A29 |
| 35 | device pci 15.0 on |
| 36 | chip drivers/i2c/generic |
| 37 | register "hid" = ""10EC5682"" |
| 38 | register "name" = ""RT58"" |
| 39 | register "desc" = ""Headset Codec"" |
| 40 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_F8)" |
| 41 | # Set the jd_src to RT5668_JD1 for jack detection |
| 42 | register "property_count" = "1" |
| 43 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 44 | register "property_list[0].name" = ""realtek,jd-src"" |
| 45 | register "property_list[0].integer" = "1" |
| 46 | device i2c 1a on end |
| 47 | end |
| 48 | end # I2C0 |
William Wei | e11072e | 2020-04-22 16:23:16 +0800 | [diff] [blame] | 49 | device pci 15.1 on |
| 50 | chip drivers/i2c/hid |
| 51 | register "generic.hid" = ""GDIX0000"" |
| 52 | register "generic.desc" = ""Goodix Touchscreen"" |
| 53 | register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_E7_IRQ)" |
| 54 | register "generic.probed" = "1" |
| 55 | register "generic.reset_gpio" = |
| 56 | "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C10)" |
| 57 | register "generic.reset_delay_ms" = "120" |
| 58 | register "generic.reset_off_delay_ms" = "3" |
| 59 | register "generic.enable_gpio" = |
| 60 | "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A8)" |
| 61 | register "generic.enable_delay_ms" = "12" |
| 62 | register "generic.has_power_resource" = "1" |
| 63 | register "hid_desc_reg_offset" = "0x01" |
| 64 | device i2c 5d on end |
| 65 | end |
| 66 | end # I2C1 |
Nick Vaccaro | f3d399e | 2020-06-18 18:30:31 -0700 | [diff] [blame] | 67 | device pci 15.2 on |
| 68 | chip drivers/i2c/sx9310 |
| 69 | register "desc" = ""SAR0 Proximity Sensor"" |
| 70 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_F14_IRQ)" |
| 71 | register "speed" = "I2C_SPEED_FAST" |
| 72 | register "uid" = "0" |
| 73 | register "reg_prox_ctrl0" = "0x10" |
| 74 | register "reg_prox_ctrl1" = "0x00" |
| 75 | register "reg_prox_ctrl2" = "0x84" |
| 76 | register "reg_prox_ctrl3" = "0x0e" |
| 77 | register "reg_prox_ctrl4" = "0x07" |
| 78 | register "reg_prox_ctrl5" = "0xc6" |
| 79 | register "reg_prox_ctrl6" = "0x20" |
| 80 | register "reg_prox_ctrl7" = "0x0d" |
| 81 | register "reg_prox_ctrl8" = "0x8d" |
| 82 | register "reg_prox_ctrl9" = "0x43" |
| 83 | register "reg_prox_ctrl10" = "0x1f" |
| 84 | register "reg_prox_ctrl11" = "0x00" |
| 85 | register "reg_prox_ctrl12" = "0x00" |
| 86 | register "reg_prox_ctrl13" = "0x00" |
| 87 | register "reg_prox_ctrl14" = "0x00" |
| 88 | register "reg_prox_ctrl15" = "0x00" |
| 89 | register "reg_prox_ctrl16" = "0x00" |
| 90 | register "reg_prox_ctrl17" = "0x00" |
| 91 | register "reg_prox_ctrl18" = "0x00" |
| 92 | register "reg_prox_ctrl19" = "0x00" |
| 93 | register "reg_sar_ctrl0" = "0x50" |
| 94 | register "reg_sar_ctrl1" = "0x8a" |
| 95 | register "reg_sar_ctrl2" = "0x3c" |
| 96 | device i2c 28 on end |
| 97 | end |
| 98 | end # I2C2 0xA0EA |
| 99 | device pci 19.1 on |
| 100 | chip drivers/i2c/generic |
| 101 | register "hid" = ""ELAN0000"" |
| 102 | register "desc" = ""ELAN Touchpad"" |
| 103 | register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_E15_IRQ)" |
| 104 | register "wake" = "GPE0_DW2_15" |
| 105 | register "probed" = "1" |
| 106 | device i2c 15 on end |
| 107 | end |
| 108 | end # I2C5 0xA0C6 |
William Wei | 34053fa | 2020-06-10 18:18:20 +0800 | [diff] [blame^] | 109 | device pci 1f.3 on |
| 110 | chip drivers/generic/max98357a |
| 111 | register "hid" = ""MX98357A"" |
| 112 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" |
| 113 | register "sdmode_delay" = "5" |
| 114 | device generic 0 on end |
| 115 | end |
| 116 | end # Intel HD audio |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 117 | end |
William Wei | da1b088 | 2020-03-26 14:18:53 +0800 | [diff] [blame] | 118 | end |