Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 1 | chip soc/intel/apollolake |
| 2 | |
Arthur Heymans | 69cd729 | 2022-11-07 13:52:11 +0100 | [diff] [blame^] | 3 | device cpu_cluster 0 on end |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 4 | |
Furquan Shaikh | 6d5e10c | 2018-03-14 19:57:16 -0700 | [diff] [blame] | 5 | register "pcie_rp_clkreq_pin[0]" = "0" # wifi/bt |
Venkateswarlu Vinjamuri | 6584973 | 2016-09-08 15:25:35 -0700 | [diff] [blame] | 6 | # Disable unused clkreq of PCIe root ports |
Furquan Shaikh | 6d5e10c | 2018-03-14 19:57:16 -0700 | [diff] [blame] | 7 | register "pcie_rp_clkreq_pin[1]" = "CLKREQ_DISABLED" |
| 8 | register "pcie_rp_clkreq_pin[2]" = "CLKREQ_DISABLED" |
| 9 | register "pcie_rp_clkreq_pin[3]" = "CLKREQ_DISABLED" |
| 10 | register "pcie_rp_clkreq_pin[4]" = "CLKREQ_DISABLED" |
| 11 | register "pcie_rp_clkreq_pin[5]" = "CLKREQ_DISABLED" |
Venkateswarlu Vinjamuri | 6584973 | 2016-09-08 15:25:35 -0700 | [diff] [blame] | 12 | |
Vaibhav Shankar | 8cdeef1 | 2016-09-14 10:39:29 -0700 | [diff] [blame] | 13 | # GPIO for PERST_0 |
| 14 | # If the Board has PERST_0 signal, assign the GPIO |
| 15 | # If the Board does not have PERST_0, assign GPIO_PRT0_UDEF |
Vaibhav Shankar | 1ac773f | 2016-10-14 16:08:32 -0700 | [diff] [blame] | 16 | register "prt0_gpio" = "GPIO_122" |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 17 | |
Venkateswarlu Vinjamuri | 7e4d12c | 2017-02-24 15:54:39 -0800 | [diff] [blame] | 18 | # GPIO for SD card detect |
| 19 | register "sdcard_cd_gpio" = "GPIO_177" |
| 20 | |
Chiranjeevi Rapolu | dde0738 | 2016-08-22 10:55:10 -0700 | [diff] [blame] | 21 | # EMMC TX DATA Delay 1 |
| 22 | # Refer to EDS-Vol2-22.3. |
| 23 | # [14:8] steps of delay for HS400, each 125ps. |
| 24 | # [6:0] steps of delay for SDR104/HS200, each 125ps. |
| 25 | register "emmc_tx_data_cntl1" = "0x0C16" |
Zhao, Lijian | e9cf848 | 2016-06-10 16:11:08 -0700 | [diff] [blame] | 26 | |
Chiranjeevi Rapolu | dde0738 | 2016-08-22 10:55:10 -0700 | [diff] [blame] | 27 | # EMMC TX DATA Delay 2 |
| 28 | # Refer to EDS-Vol2-22.3. |
| 29 | # [30:24] steps of delay for SDR50, each 125ps. |
| 30 | # [22:16] steps of delay for DDR50, each 125ps. |
| 31 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 32 | # [6:0] steps of delay for SDR12, each 125ps. |
| 33 | register "emmc_tx_data_cntl2" = "0x28162828" |
Zhao, Lijian | e9cf848 | 2016-06-10 16:11:08 -0700 | [diff] [blame] | 34 | |
Chiranjeevi Rapolu | dde0738 | 2016-08-22 10:55:10 -0700 | [diff] [blame] | 35 | # EMMC RX CMD/DATA Delay 1 |
| 36 | # Refer to EDS-Vol2-22.3. |
| 37 | # [30:24] steps of delay for SDR50, each 125ps. |
| 38 | # [22:16] steps of delay for DDR50, each 125ps. |
| 39 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 40 | # [6:0] steps of delay for SDR12, each 125ps. |
| 41 | register "emmc_rx_cmd_data_cntl1" = "0x00181717" |
Zhao, Lijian | e9cf848 | 2016-06-10 16:11:08 -0700 | [diff] [blame] | 42 | |
Chiranjeevi Rapolu | dde0738 | 2016-08-22 10:55:10 -0700 | [diff] [blame] | 43 | # EMMC RX CMD/DATA Delay 2 |
| 44 | # Refer to EDS-Vol2-22.3. |
| 45 | # [17:16] stands for Rx Clock before Output Buffer |
| 46 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps. |
| 47 | # [6:0] steps of delay for HS200, each 125ps. |
| 48 | register "emmc_rx_cmd_data_cntl2" = "0x10008" |
Zhao, Lijian | e9cf848 | 2016-06-10 16:11:08 -0700 | [diff] [blame] | 49 | |
Shaunak Saha | 57f221e | 2016-07-12 16:03:29 -0700 | [diff] [blame] | 50 | # Enable DPTF |
| 51 | register "dptf_enable" = "1" |
| 52 | |
Sumeet R Pawnikar | 2adb50d | 2020-05-09 15:37:09 +0530 | [diff] [blame] | 53 | # PL1 override 12 W: the energy calculation is wrong with the |
Venkateswarlu Vinjamuri | 63583f0 | 2016-10-14 15:29:33 -0700 | [diff] [blame] | 54 | # current VR solution. Experiments show that SoC TDP max (6W) can |
| 55 | # be reached when RAPL PL1 is set to 12W. |
Sumeet Pawnikar | 3ec149d | 2016-12-05 16:56:15 +0530 | [diff] [blame] | 56 | # Set RAPL PL2 to 15W. |
Sumeet R Pawnikar | 2adb50d | 2020-05-09 15:37:09 +0530 | [diff] [blame] | 57 | register "power_limits_config" = "{ |
| 58 | .tdp_pl1_override = 12, |
| 59 | .tdp_pl2_override = 15, |
| 60 | }" |
Venkateswarlu Vinjamuri | 63583f0 | 2016-10-14 15:29:33 -0700 | [diff] [blame] | 61 | |
Venkateswarlu Vinjamuri | e525920 | 2016-09-02 16:07:08 -0700 | [diff] [blame] | 62 | # Enable Audio Clock and Power gating |
| 63 | register "hdaudio_clk_gate_enable" = "1" |
| 64 | register "hdaudio_pwr_gate_enable" = "1" |
| 65 | register "hdaudio_bios_config_lockdown" = "1" |
| 66 | |
Venkateswarlu Vinjamuri | d2e92e4 | 2016-09-08 16:11:27 -0700 | [diff] [blame] | 67 | # Enable lpss s0ix |
| 68 | register "lpss_s0ix_enable" = "1" |
| 69 | |
Shaunak Saha | 066e0f3 | 2016-07-06 15:50:48 -0700 | [diff] [blame] | 70 | # GPE configuration |
| 71 | # Note that GPE events called out in ASL code rely on this |
| 72 | # route, i.e., if this route changes then the affected GPE |
| 73 | # offset bits also need to be changed. This sets the PMC register |
| 74 | # GPE_CFG fields. |
| 75 | register "gpe0_dw1" = "PMC_GPE_N_31_0" |
| 76 | register "gpe0_dw2" = "PMC_GPE_N_63_32" |
| 77 | register "gpe0_dw3" = "PMC_GPE_SW_31_0" |
| 78 | |
Subrata Banik | c4986eb | 2018-05-09 14:55:09 +0530 | [diff] [blame] | 79 | # Intel Common SoC Config |
| 80 | #+-------------------+---------------------------+ |
| 81 | #| Field | Value | |
| 82 | #+-------------------+---------------------------+ |
| 83 | #| I2C0 | Audio | |
| 84 | #| I2C2 | TPM | |
| 85 | #| I2C3 | Touchscreen | |
| 86 | #| I2C4 | Trackpad | |
| 87 | #| I2C5 | Digitizer | |
| 88 | #+-------------------+---------------------------+ |
| 89 | register "common_soc_config" = "{ |
| 90 | .i2c[0] = { |
| 91 | .speed = I2C_SPEED_FAST, |
| 92 | .rise_time_ns = 104, |
| 93 | .fall_time_ns = 52, |
| 94 | }, |
| 95 | .i2c[2] = { |
| 96 | .early_init = 1, |
| 97 | .speed = I2C_SPEED_FAST, |
| 98 | .rise_time_ns = 57, |
| 99 | .fall_time_ns = 28, |
| 100 | }, |
| 101 | .i2c[3] = { |
| 102 | .speed = I2C_SPEED_FAST, |
| 103 | .rise_time_ns = 76, |
| 104 | .fall_time_ns = 164, |
| 105 | }, |
| 106 | .i2c[4] = { |
| 107 | .speed = I2C_SPEED_FAST, |
| 108 | .rise_time_ns = 114, |
| 109 | .fall_time_ns = 164, |
| 110 | .data_hold_time_ns = 350, |
| 111 | }, |
| 112 | .i2c[5] = { |
| 113 | .speed = I2C_SPEED_FAST, |
| 114 | .rise_time_ns = 152, |
| 115 | .fall_time_ns = 30, |
| 116 | }, |
Furquan Shaikh | ee019d0 | 2016-11-09 10:35:23 -0800 | [diff] [blame] | 117 | }" |
| 118 | |
Aaron Durbin | c3d7427 | 2016-08-25 15:44:39 -0500 | [diff] [blame] | 119 | # Minimum SLP S3 assertion width 28ms. |
| 120 | register "slp_s3_assertion_width_usecs" = "28000" |
| 121 | |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 122 | device domain 0 on |
| 123 | device pci 00.0 on end # - Host Bridge |
| 124 | device pci 00.1 on end # - DPTF |
| 125 | device pci 00.2 on end # - NPK |
Matt DeVillier | 2ece212 | 2020-04-30 10:55:32 -0500 | [diff] [blame] | 126 | device pci 02.0 on # - Gen |
| 127 | register "gfx" = "GMA_DEFAULT_PANEL(0)" |
| 128 | end |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 129 | device pci 03.0 on end # - Iunit |
| 130 | device pci 0d.0 on end # - P2SB |
| 131 | device pci 0d.1 on end # - PMC |
| 132 | device pci 0d.2 on end # - SPI |
| 133 | device pci 0d.3 on end # - Shared SRAM |
Harsha Priya | 9217f9d | 2016-06-24 17:13:54 -0700 | [diff] [blame] | 134 | device pci 0e.0 on # - Audio |
| 135 | chip drivers/generic/max98357a |
Aamir Bohra | a1c82c5 | 2020-03-16 18:57:48 +0530 | [diff] [blame] | 136 | register "hid" = ""MX98357A"" |
Furquan Shaikh | 028200f | 2016-10-04 10:53:32 -0700 | [diff] [blame] | 137 | register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_76)" |
Sathyanarayana Nujella | 46445fc | 2016-10-07 11:27:10 -0700 | [diff] [blame] | 138 | register "sdmode_delay" = "5" |
Harsha Priya | 9217f9d | 2016-06-24 17:13:54 -0700 | [diff] [blame] | 139 | device generic 0 on end |
| 140 | end |
| 141 | end |
Subrata Banik | e9b9373 | 2020-09-17 15:48:54 +0530 | [diff] [blame] | 142 | device pci 0f.0 on end # - CSE |
Andrey Petrov | 89e7b49 | 2016-07-14 09:52:00 -0700 | [diff] [blame] | 143 | device pci 11.0 off end # - ISH |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 144 | device pci 12.0 off end # - SATA |
| 145 | device pci 13.0 off end # - Root Port 2 - PCIe-A 0 |
| 146 | device pci 13.1 off end # - Root Port 3 - PCIe-A 1 |
| 147 | device pci 13.2 off end # - Root Port 4 - PCIe-A 2 |
| 148 | device pci 13.3 off end # - Root Port 5 - PCIe-A 3 |
Vaibhav Shankar | 767009a | 2016-09-15 14:02:54 -0700 | [diff] [blame] | 149 | device pci 14.0 on |
Furquan Shaikh | a266d1e | 2020-10-04 12:52:54 -0700 | [diff] [blame] | 150 | chip drivers/wifi/generic |
Vaibhav Shankar | 767009a | 2016-09-15 14:02:54 -0700 | [diff] [blame] | 151 | register "wake" = "GPE0_DW3_00" |
| 152 | device pci 00.0 on end |
| 153 | end |
| 154 | end # - Root Port 0 - PCIe-B 0 - Wifi |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 155 | device pci 14.1 off end # - Root Port 1 - PCIe-B 1 |
| 156 | device pci 15.0 on end # - XHCI |
Jagadish Krishnamoorthy | 6dfe25d | 2016-06-23 12:50:01 -0700 | [diff] [blame] | 157 | device pci 15.1 off end # - XDCI |
Duncan Laurie | 5edbb04 | 2016-07-02 20:05:43 -0700 | [diff] [blame] | 158 | device pci 16.0 on # - I2C 0 |
| 159 | chip drivers/i2c/da7219 |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 160 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_116_IRQ)" |
Duncan Laurie | 5edbb04 | 2016-07-02 20:05:43 -0700 | [diff] [blame] | 161 | register "btn_cfg" = "50" |
| 162 | register "mic_det_thr" = "500" |
| 163 | register "jack_ins_deb" = "20" |
| 164 | register "jack_det_rate" = ""32ms_64ms"" |
| 165 | register "jack_rem_deb" = "1" |
| 166 | register "a_d_btn_thr" = "0xa" |
| 167 | register "d_b_btn_thr" = "0x16" |
| 168 | register "b_c_btn_thr" = "0x21" |
| 169 | register "c_mic_btn_thr" = "0x3e" |
| 170 | register "btn_avg" = "4" |
| 171 | register "adc_1bit_rpt" = "1" |
| 172 | register "micbias_lvl" = "2600" |
| 173 | register "mic_amp_in_sel" = ""diff"" |
| 174 | device i2c 1a on end |
| 175 | end |
| 176 | end |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 177 | device pci 16.1 on end # - I2C 1 |
Duncan Laurie | c287587 | 2016-09-01 16:00:05 -0700 | [diff] [blame] | 178 | device pci 16.2 on |
| 179 | chip drivers/i2c/tpm |
| 180 | register "hid" = ""GOOG0005"" |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 181 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPIO_28_IRQ)" |
Duncan Laurie | c287587 | 2016-09-01 16:00:05 -0700 | [diff] [blame] | 182 | device i2c 50 on end |
| 183 | end |
| 184 | end # - I2C 2 |
Furquan Shaikh | bb6af29 | 2016-07-12 13:44:52 -0700 | [diff] [blame] | 185 | device pci 16.3 on |
| 186 | chip drivers/i2c/generic |
Duncan Laurie | 0604106 | 2016-09-01 16:00:39 -0700 | [diff] [blame] | 187 | register "hid" = ""ELAN0001"" |
| 188 | register "desc" = ""ELAN Touchscreen"" |
Matt DeVillier | 48894ea | 2022-12-20 16:31:51 -0600 | [diff] [blame] | 189 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_21_IRQ)" |
Matt DeVillier | a0e32aa | 2022-12-20 16:33:12 -0600 | [diff] [blame] | 190 | register "detect" = "1" |
Furquan Shaikh | 98915bb | 2016-12-12 09:23:01 -0800 | [diff] [blame] | 191 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_36)" |
Furquan Shaikh | 71d830f | 2017-01-25 17:53:01 -0800 | [diff] [blame] | 192 | register "reset_delay_ms" = "20" |
| 193 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_152)" |
| 194 | register "enable_delay_ms" = "1" |
| 195 | register "has_power_resource" = "1" |
Duncan Laurie | 0604106 | 2016-09-01 16:00:39 -0700 | [diff] [blame] | 196 | device i2c 10 on end |
Furquan Shaikh | bb6af29 | 2016-07-12 13:44:52 -0700 | [diff] [blame] | 197 | end |
| 198 | end # - I2C 3 |
Duncan Laurie | d48d5a6 | 2016-06-27 11:05:16 -0700 | [diff] [blame] | 199 | device pci 17.0 on |
| 200 | chip drivers/i2c/generic |
| 201 | register "hid" = ""ELAN0000"" |
| 202 | register "desc" = ""ELAN Touchpad"" |
Matt DeVillier | 48894ea | 2022-12-20 16:31:51 -0600 | [diff] [blame] | 203 | register "irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_18_IRQ)" |
Furquan Shaikh | 212820c | 2016-07-28 13:47:34 -0700 | [diff] [blame] | 204 | register "wake" = "GPE0_DW1_15" |
Matt DeVillier | 2cf52d8 | 2022-09-01 15:09:24 -0500 | [diff] [blame] | 205 | register "detect" = "1" |
Duncan Laurie | d48d5a6 | 2016-06-27 11:05:16 -0700 | [diff] [blame] | 206 | device i2c 15 on end |
| 207 | end |
| 208 | end # - I2C 4 |
Furquan Shaikh | ce21151 | 2016-11-09 10:37:03 -0800 | [diff] [blame] | 209 | device pci 17.1 on |
Furquan Shaikh | 5360c7e | 2017-02-19 01:18:09 -0800 | [diff] [blame] | 210 | chip drivers/i2c/hid |
| 211 | register "generic.hid" = ""WCOM50C1"" |
| 212 | register "generic.desc" = ""WCOM Digitizer"" |
Furquan Shaikh | 5b9b593 | 2017-02-21 13:16:30 -0800 | [diff] [blame] | 213 | register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPIO_13_IRQ)" |
Furquan Shaikh | ce21151 | 2016-11-09 10:37:03 -0800 | [diff] [blame] | 214 | register "hid_desc_reg_offset" = "0x1" |
| 215 | device i2c 0x9 on end |
| 216 | end |
| 217 | end # - I2C 5 |
Jagadish Krishnamoorthy | 9f2a411 | 2016-11-15 12:06:21 -0800 | [diff] [blame] | 218 | device pci 17.2 off end # - I2C 6 |
| 219 | device pci 17.3 off end # - I2C 7 |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 220 | device pci 18.0 on end # - UART 0 |
| 221 | device pci 18.1 on end # - UART 1 |
| 222 | device pci 18.2 on end # - UART 2 |
Jagadish Krishnamoorthy | 9f2a411 | 2016-11-15 12:06:21 -0800 | [diff] [blame] | 223 | device pci 18.3 off end # - UART 3 |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 224 | device pci 19.0 on end # - SPI 0 |
Jagadish Krishnamoorthy | 9f2a411 | 2016-11-15 12:06:21 -0800 | [diff] [blame] | 225 | device pci 19.1 off end # - SPI 1 |
| 226 | device pci 19.2 off end # - SPI 2 |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 227 | device pci 1a.0 on end # - PWM |
| 228 | device pci 1b.0 on end # - SDCARD |
| 229 | device pci 1c.0 on end # - eMMC |
Jagadish Krishnamoorthy | 6dfe25d | 2016-06-23 12:50:01 -0700 | [diff] [blame] | 230 | device pci 1e.0 off end # - SDIO |
Aaron Durbin | e065bb4 | 2016-05-10 15:09:44 -0500 | [diff] [blame] | 231 | device pci 1f.0 on # - LPC |
| 232 | chip ec/google/chromeec |
| 233 | device pnp 0c09.0 on end |
| 234 | end |
| 235 | end |
| 236 | device pci 1f.1 on end # - SMBUS |
| 237 | end |
| 238 | end |