blob: 83cd62fad8ee16c6fabaaa9fadf2b62d40a2b88b [file] [log] [blame]
Reka Normanf2f785d2022-05-06 20:22:21 +10001fw_config
2 field STORAGE 30 31
3 option STORAGE_EMMC 0
4 option STORAGE_NVME 1
5 option STORAGE_UFS 2
6 end
7end
8
Reka Normane7640cc2021-12-20 10:24:55 +11009chip soc/intel/alderlake
Kangheui Won168c25b2022-01-17 17:12:00 +110010
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 Gopalakrishnan9ffc9eb2022-03-22 18:12:47 +053025 # DPTF enable
26 register "dptf_enable" = "1"
27
Kangheui Won168c25b2022-01-17 17:12:00 +110028 # Enable CNVi BT
MAULIK V VAGHELA215a97e2022-03-07 18:39:17 +053029 register "cnvi_bt_core" = "true"
Kangheui Won168c25b2022-01-17 17:12:00 +110030
Reka Norman5bba93e2022-02-16 10:12:36 +110031 # eMMC HS400
32 register "emmc_enable_hs400_mode" = "1"
33
Usha P0a3bbe82022-05-09 08:36:51 +053034 #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 Won168c25b2022-01-17 17:12:00 +110044 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 Won168c25b2022-01-17 17:12:00 +110049
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 VAGHELA215a97e2022-03-07 18:39:17 +053056 register "serial_io_i2c_mode" = "{
Kangheui Won168c25b2022-01-17 17:12:00 +110057 [PchSerialIoIndexI2C0] = PchSerialIoPci,
58 [PchSerialIoIndexI2C1] = PchSerialIoPci,
59 [PchSerialIoIndexI2C2] = PchSerialIoPci,
60 [PchSerialIoIndexI2C3] = PchSerialIoPci,
61 [PchSerialIoIndexI2C4] = PchSerialIoDisabled,
62 [PchSerialIoIndexI2C5] = PchSerialIoPci,
63 }"
64
MAULIK V VAGHELA215a97e2022-03-07 18:39:17 +053065 register "serial_io_gspi_mode" = "{
Kangheui Won168c25b2022-01-17 17:12:00 +110066 [PchSerialIoIndexGSPI0] = PchSerialIoDisabled,
67 [PchSerialIoIndexGSPI1] = PchSerialIoDisabled,
68 }"
69
MAULIK V VAGHELA215a97e2022-03-07 18:39:17 +053070 register "serial_io_uart_mode" = "{
Kangheui Won168c25b2022-01-17 17:12:00 +110071 [PchSerialIoIndexUART0] = PchSerialIoPci,
72 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
73 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
74 }"
75
76 # HD Audio
MAULIK V VAGHELA215a97e2022-03-07 18:39:17 +053077 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 Won168c25b2022-01-17 17:12:00 +110081
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 Won168c25b2022-01-17 17:12:00 +110098 .data_hold_time_ns = 50,
Reka Norman46694d82022-04-08 15:14:35 +100099 .speed_config[0] = {
100 .scl_lcnt = 157,
101 .scl_hcnt = 78,
102 }
Kangheui Won168c25b2022-01-17 17:12:00 +1100103 },
104 .i2c[1] = {
105 .speed = I2C_SPEED_FAST,
Kangheui Won168c25b2022-01-17 17:12:00 +1100106 .data_hold_time_ns = 50,
Reka Norman46694d82022-04-08 15:14:35 +1000107 .speed_config[0] = {
108 .scl_lcnt = 157,
109 .scl_hcnt = 78,
110 }
Kangheui Won168c25b2022-01-17 17:12:00 +1100111 },
112 .i2c[2] = {
113 .speed = I2C_SPEED_FAST,
Kangheui Won168c25b2022-01-17 17:12:00 +1100114 .data_hold_time_ns = 50,
Reka Norman46694d82022-04-08 15:14:35 +1000115 .speed_config[0] = {
116 .scl_lcnt = 157,
117 .scl_hcnt = 78,
118 }
Kangheui Won168c25b2022-01-17 17:12:00 +1100119 },
120 .i2c[3] = {
121 .speed = I2C_SPEED_FAST,
Kangheui Won168c25b2022-01-17 17:12:00 +1100122 .data_hold_time_ns = 50,
Reka Norman46694d82022-04-08 15:14:35 +1000123 .speed_config[0] = {
124 .scl_lcnt = 157,
125 .scl_hcnt = 78,
126 }
Kangheui Won168c25b2022-01-17 17:12:00 +1100127 },
128 .i2c[5] = {
129 .speed = I2C_SPEED_FAST,
Kangheui Won168c25b2022-01-17 17:12:00 +1100130 .data_hold_time_ns = 50,
Reka Norman46694d82022-04-08 15:14:35 +1000131 .speed_config[0] = {
132 .scl_lcnt = 157,
133 .scl_hcnt = 78,
134 }
Kangheui Won168c25b2022-01-17 17:12:00 +1100135 },
136 }"
137
Reka Normane7640cc2021-12-20 10:24:55 +1100138 device domain 0 on
Kangheui Won168c25b2022-01-17 17:12:00 +1100139 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 Normane7640cc2021-12-20 10:24:55 +1100180 end
181end