Reka Norman | f2f785d | 2022-05-06 20:22:21 +1000 | [diff] [blame] | 1 | fw_config |
Ren Kuo | dfc4c1c | 2023-11-01 09:32:38 +0800 | [diff] [blame^] | 2 | field AUDIO_CONFIG 28 |
| 3 | option AMP_GPIO 0 |
| 4 | option AMP_RT5650 1 |
| 5 | end |
Reka Norman | 974f7b2 | 2022-11-14 16:50:25 +1100 | [diff] [blame] | 6 | field SD_BOOT 29 |
| 7 | option SD_BOOT_ENABLE 0 |
| 8 | option SD_BOOT_DISABLE 1 |
| 9 | end |
Reka Norman | f2f785d | 2022-05-06 20:22:21 +1000 | [diff] [blame] | 10 | field STORAGE 30 31 |
| 11 | option STORAGE_EMMC 0 |
| 12 | option STORAGE_NVME 1 |
| 13 | option STORAGE_UFS 2 |
| 14 | end |
| 15 | end |
| 16 | |
Reka Norman | e7640cc | 2021-12-20 10:24:55 +1100 | [diff] [blame] | 17 | chip soc/intel/alderlake |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 18 | |
| 19 | # GPE configuration |
| 20 | register "pmc_gpe0_dw0" = "GPP_A" |
| 21 | register "pmc_gpe0_dw1" = "GPP_H" |
| 22 | register "pmc_gpe0_dw2" = "GPP_F" |
| 23 | |
| 24 | # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f |
| 25 | register "gen1_dec" = "0x00fc0801" |
| 26 | register "gen2_dec" = "0x000c0201" |
| 27 | # EC memory map range is 0x900-0x9ff |
| 28 | register "gen3_dec" = "0x00fc0901" |
| 29 | |
| 30 | # S0ix enable |
| 31 | register "s0ix_enable" = "1" |
| 32 | |
Vidya Gopalakrishnan | 9ffc9eb | 2022-03-22 18:12:47 +0530 | [diff] [blame] | 33 | # DPTF enable |
| 34 | register "dptf_enable" = "1" |
| 35 | |
Sumeet Pawnikar | 4757053 | 2022-05-25 16:36:57 +0530 | [diff] [blame] | 36 | register "tcc_offset" = "10" # TCC of 90 |
| 37 | |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 38 | # Enable CNVi BT |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 39 | register "cnvi_bt_core" = "true" |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 40 | |
Reka Norman | 5bba93e | 2022-02-16 10:12:36 +1100 | [diff] [blame] | 41 | # eMMC HS400 |
| 42 | register "emmc_enable_hs400_mode" = "1" |
| 43 | |
Usha P | 0a3bbe8 | 2022-05-09 08:36:51 +0530 | [diff] [blame] | 44 | #eMMC DLL tuning parameters |
| 45 | #Adding the intermediate eMMC DLL tuning override values |
| 46 | #TODO SoC implementation with the finalized verified values from EV Team |
| 47 | register "common_soc_config.emmc_dll.emmc_tx_cmd_cntl" = "0x505" |
| 48 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl1" = "0x909" |
| 49 | register "common_soc_config.emmc_dll.emmc_tx_data_cntl2" = "0x1C2A2828" |
| 50 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl1" = "0x1C1B1D3C" |
| 51 | register "common_soc_config.emmc_dll.emmc_rx_cmd_data_cntl2" = "0x10049" |
| 52 | register "common_soc_config.emmc_dll.emmc_rx_strobe_cntl" = "0x11515" |
| 53 | |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 54 | register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB2_C0 |
| 55 | register "usb2_ports[1]" = "USB2_PORT_TYPE_C(OC_SKIP)" # USB2_C1 |
| 56 | register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)" # USB2_A0 |
| 57 | register "usb2_ports[3]" = "USB2_PORT_MID(OC_SKIP)" # USB2_A1 |
| 58 | register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)" # M.2 Camera |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 59 | |
| 60 | register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/2 Type A port A0 |
| 61 | register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)" # USB3/2 Type A port A1 |
| 62 | |
| 63 | register "tcss_ports[0]" = "TCSS_PORT_DEFAULT(OC_SKIP)" |
| 64 | register "tcss_ports[1]" = "TCSS_PORT_DEFAULT(OC_SKIP)" |
| 65 | |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 66 | register "serial_io_i2c_mode" = "{ |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 67 | [PchSerialIoIndexI2C0] = PchSerialIoPci, |
| 68 | [PchSerialIoIndexI2C1] = PchSerialIoPci, |
| 69 | [PchSerialIoIndexI2C2] = PchSerialIoPci, |
| 70 | [PchSerialIoIndexI2C3] = PchSerialIoPci, |
| 71 | [PchSerialIoIndexI2C4] = PchSerialIoDisabled, |
| 72 | [PchSerialIoIndexI2C5] = PchSerialIoPci, |
| 73 | }" |
| 74 | |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 75 | register "serial_io_gspi_mode" = "{ |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 76 | [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, |
| 77 | [PchSerialIoIndexGSPI1] = PchSerialIoDisabled, |
| 78 | }" |
| 79 | |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 80 | register "serial_io_uart_mode" = "{ |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 81 | [PchSerialIoIndexUART0] = PchSerialIoPci, |
| 82 | [PchSerialIoIndexUART1] = PchSerialIoDisabled, |
| 83 | [PchSerialIoIndexUART2] = PchSerialIoDisabled, |
| 84 | }" |
| 85 | |
| 86 | # HD Audio |
MAULIK V VAGHELA | 215a97e | 2022-03-07 18:39:17 +0530 | [diff] [blame] | 87 | register "pch_hda_dsp_enable" = "1" |
| 88 | register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T" |
| 89 | register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ" |
| 90 | register "pch_hda_idisp_codec_enable" = "1" |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 91 | |
V Sowmya | 0f7580e | 2022-07-05 20:56:55 +0530 | [diff] [blame] | 92 | # FIXME: To be enabled in future based on PNP impact data. |
| 93 | # Disable Package C-state demotion for nissa baseboard. |
| 94 | register "disable_package_c_state_demotion" = "1" |
| 95 | |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 96 | # Intel Common SoC Config |
| 97 | #+-------------------+---------------------------+ |
| 98 | #| Field | Value | |
| 99 | #+-------------------+---------------------------+ |
| 100 | #| I2C0 | TPM. Early init is | |
| 101 | #| | required to set up a BAR | |
| 102 | #| | for TPM communication | |
| 103 | #| I2C1 | Touchscreen | |
| 104 | #| I2C2 | Sub-board(PSensor)/WCAM | |
| 105 | #| I2C3 | Audio | |
| 106 | #| I2C5 | Trackpad | |
| 107 | #+-------------------+---------------------------+ |
| 108 | register "common_soc_config" = "{ |
| 109 | .i2c[0] = { |
| 110 | .early_init = 1, |
Reka Norman | d9cb725 | 2022-09-27 16:08:08 +1000 | [diff] [blame] | 111 | .speed = I2C_SPEED_FAST_PLUS, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 112 | .speed_config[0] = { |
Reka Norman | d9cb725 | 2022-09-27 16:08:08 +1000 | [diff] [blame] | 113 | .speed = I2C_SPEED_FAST_PLUS, |
| 114 | .scl_lcnt = 55, |
| 115 | .scl_hcnt = 30, |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 116 | .sda_hold = 7, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 117 | } |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 118 | }, |
| 119 | .i2c[1] = { |
| 120 | .speed = I2C_SPEED_FAST, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 121 | .speed_config[0] = { |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 122 | .speed = I2C_SPEED_FAST, |
| 123 | .scl_lcnt = 158, |
| 124 | .scl_hcnt = 79, |
| 125 | .sda_hold = 7, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 126 | } |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 127 | }, |
| 128 | .i2c[2] = { |
| 129 | .speed = I2C_SPEED_FAST, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 130 | .speed_config[0] = { |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 131 | .speed = I2C_SPEED_FAST, |
| 132 | .scl_lcnt = 158, |
| 133 | .scl_hcnt = 79, |
| 134 | .sda_hold = 7, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 135 | } |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 136 | }, |
| 137 | .i2c[3] = { |
| 138 | .speed = I2C_SPEED_FAST, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 139 | .speed_config[0] = { |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 140 | .speed = I2C_SPEED_FAST, |
| 141 | .scl_lcnt = 158, |
| 142 | .scl_hcnt = 79, |
| 143 | .sda_hold = 7, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 144 | } |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 145 | }, |
| 146 | .i2c[5] = { |
| 147 | .speed = I2C_SPEED_FAST, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 148 | .speed_config[0] = { |
Reka Norman | 69c9b01 | 2022-06-03 16:31:09 +1000 | [diff] [blame] | 149 | .speed = I2C_SPEED_FAST, |
| 150 | .scl_lcnt = 158, |
| 151 | .scl_hcnt = 79, |
| 152 | .sda_hold = 7, |
Reka Norman | 46694d8 | 2022-04-08 15:14:35 +1000 | [diff] [blame] | 153 | } |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 154 | }, |
| 155 | }" |
| 156 | |
Reka Norman | e7640cc | 2021-12-20 10:24:55 +1100 | [diff] [blame] | 157 | device domain 0 on |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 158 | device ref igpu on end |
| 159 | device ref dtt on end |
| 160 | device ref tcss_xhci on end |
| 161 | device ref xhci on end |
| 162 | device ref shared_sram on end |
| 163 | device ref cnvi_wifi on |
| 164 | chip drivers/wifi/generic |
| 165 | register "wake" = "GPE0_PME_B0" |
Kapil Porwal | da1a58a | 2022-11-23 19:17:35 +0530 | [diff] [blame] | 166 | register "add_acpi_dma_property" = "true" |
Kangheui Won | 168c25b | 2022-01-17 17:12:00 +1100 | [diff] [blame] | 167 | device generic 0 on end |
| 168 | end |
| 169 | end |
| 170 | device ref i2c0 on |
| 171 | chip drivers/i2c/tpm |
| 172 | register "hid" = ""GOOG0005"" |
| 173 | register "irq" = "ACPI_IRQ_EDGE_LOW(GPP_A13_IRQ)" |
| 174 | device i2c 50 on end |
| 175 | end |
| 176 | end |
| 177 | device ref heci1 on end |
| 178 | device ref emmc on end |
| 179 | device ref pcie_rp7 on |
| 180 | # Enable SD Card PCIE 7 using clk 3 |
| 181 | register "pch_pcie_rp[PCH_RP(7)]" = "{ |
| 182 | .clk_src = 3, |
| 183 | .clk_req = 3, |
| 184 | .flags = PCIE_RP_HOTPLUG | PCIE_RP_LTR | PCIE_RP_AER, |
| 185 | }" |
| 186 | chip soc/intel/common/block/pcie/rtd3 |
| 187 | register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H13)" |
| 188 | register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H12)" |
| 189 | register "srcclk_pin" = "3" |
| 190 | device generic 0 on end |
| 191 | end |
| 192 | end #PCIE7 SD card |
| 193 | device ref uart0 on end |
| 194 | device ref pch_espi on |
| 195 | chip ec/google/chromeec |
| 196 | device pnp 0c09.0 on end |
| 197 | end |
| 198 | end |
| 199 | device ref hda on end |
Reka Norman | e7640cc | 2021-12-20 10:24:55 +1100 | [diff] [blame] | 200 | end |
| 201 | end |