Tony Huang | 6e0ca68 | 2021-02-03 18:18:02 +0800 | [diff] [blame^] | 1 | chip soc/intel/jasperlake |
| 2 | |
| 3 | # USB Port Configuration |
| 4 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # Camera |
| 5 | register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)" # WF Camera |
| 6 | |
| 7 | register "SerialIoI2cMode" = "{ |
| 8 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 9 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 10 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 11 | [PchSerialIoIndexI2C3] = PchSerialIoDisabled, |
| 12 | [PchSerialIoIndexI2C4] = PchSerialIoPci, |
| 13 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 14 | }" |
| 15 | |
| 16 | # Intel Common SoC Config |
| 17 | #+-------------------+---------------------------+ |
| 18 | #| Field | Value | |
| 19 | #+-------------------+---------------------------+ |
| 20 | #| GSPI0 | cr50 TPM. Early init is | |
| 21 | #| | required to set up a BAR | |
| 22 | #| | for TPM communication | |
| 23 | #| | before memory is up | |
| 24 | #| I2C0 | Trackpad | |
| 25 | #| I2C1 | Digitizer | |
| 26 | #| I2C2 | Touchscreen | |
| 27 | #| I2C3 | | |
| 28 | #| I2C4 | Audio | |
| 29 | #| I2C5 | P-Sensor | |
| 30 | #+-------------------+---------------------------+ |
| 31 | register "common_soc_config" = "{ |
| 32 | .gspi[0] = { |
| 33 | .speed_mhz = 1, |
| 34 | .early_init = 1, |
| 35 | }, |
| 36 | .i2c[0] = { |
| 37 | .speed = I2C_SPEED_FAST, |
| 38 | }, |
| 39 | .i2c[1] = { |
| 40 | .speed = I2C_SPEED_FAST, |
| 41 | }, |
| 42 | .i2c[2] = { |
| 43 | .speed = I2C_SPEED_FAST, |
| 44 | }, |
| 45 | .i2c[4] = { |
| 46 | .speed = I2C_SPEED_FAST, |
| 47 | }, |
| 48 | .i2c[5] = { |
| 49 | .speed = I2C_SPEED_FAST, |
| 50 | }, |
| 51 | }" |
| 52 | |
| 53 | device domain 0 on |
| 54 | device pci 14.0 on |
| 55 | chip drivers/usb/acpi |
| 56 | device usb 0.0 on |
| 57 | chip drivers/usb/acpi |
| 58 | register "desc" = ""UFCamera"" |
| 59 | register "type" = "UPC_TYPE_INTERNAL" |
| 60 | device usb 2.5 on end |
| 61 | end |
| 62 | chip drivers/usb/acpi |
| 63 | register "desc" = ""WFCamera"" |
| 64 | register "type" = "UPC_TYPE_INTERNAL" |
| 65 | device usb 2.6 on end |
| 66 | end |
| 67 | end |
| 68 | end |
| 69 | end # USB xHCI |
| 70 | device pci 15.0 on |
| 71 | chip drivers/i2c/generic |
| 72 | register "hid" = ""ELAN0000"" |
| 73 | register "desc" = ""ELAN Touchpad"" |
| 74 | register "irq" = "ACPI_IRQ_WAKE_EDGE_LOW(GPP_B3_IRQ)" |
| 75 | register "wake" = "GPE0_DW0_03" |
| 76 | register "probed" = "1" |
| 77 | device i2c 15 on end |
| 78 | end |
| 79 | end #I2C 0 |
| 80 | device pci 15.3 off end #I2C 3 |
| 81 | device pci 19.0 on |
| 82 | chip drivers/i2c/generic |
| 83 | register "hid" = ""10EC5682"" |
| 84 | register "name" = ""RT58"" |
| 85 | register "desc" = ""Realtek RT5682"" |
| 86 | register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" |
| 87 | register "property_count" = "1" |
| 88 | register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" |
| 89 | register "property_list[0].name" = ""realtek,jd-src"" |
| 90 | register "property_list[0].integer" = "1" |
| 91 | device i2c 1a on end |
| 92 | end |
| 93 | end #I2C 4 |
| 94 | device pci 1f.3 on |
| 95 | chip drivers/generic/max98357a |
| 96 | register "hid" = ""MX98360A"" |
| 97 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" |
| 98 | device generic 0 on end |
| 99 | end |
| 100 | end # Intel HDA |
| 101 | end |
| 102 | end |