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