1 // SPDX-License-Identifier: GPL-2.0
3 * This file contains platform specific structure definitions
4 * and init function used by Lunar Lake PCH.
6 * Copyright (c) 2022, Intel Corporation.
11 #include <linux/cpu.h>
12 #include <linux/pci.h>
16 const struct pmc_bit_map lnl_ltr_show_map
[] = {
17 {"SOUTHPORT_A", CNP_PMC_LTR_SPA
},
18 {"SOUTHPORT_B", CNP_PMC_LTR_SPB
},
19 {"SATA", CNP_PMC_LTR_SATA
},
20 {"GIGABIT_ETHERNET", CNP_PMC_LTR_GBE
},
21 {"XHCI", CNP_PMC_LTR_XHCI
},
22 {"SOUTHPORT_F", ADL_PMC_LTR_SPF
},
23 {"ME", CNP_PMC_LTR_ME
},
24 /* EVA is Enterprise Value Add, doesn't really exist on PCH */
25 {"SATA1", CNP_PMC_LTR_EVA
},
26 {"SOUTHPORT_C", CNP_PMC_LTR_SPC
},
27 {"HD_AUDIO", CNP_PMC_LTR_AZ
},
28 {"CNV", CNP_PMC_LTR_CNV
},
29 {"LPSS", CNP_PMC_LTR_LPSS
},
30 {"SOUTHPORT_D", CNP_PMC_LTR_SPD
},
31 {"SOUTHPORT_E", CNP_PMC_LTR_SPE
},
32 {"SATA2", CNP_PMC_LTR_CAM
},
33 {"ESPI", CNP_PMC_LTR_ESPI
},
34 {"SCC", CNP_PMC_LTR_SCC
},
35 {"ISH", CNP_PMC_LTR_ISH
},
36 {"UFSX2", CNP_PMC_LTR_UFSX2
},
37 {"EMMC", CNP_PMC_LTR_EMMC
},
39 * Check intel_pmc_core_ids[] users of cnp_reg_map for
40 * a list of core SoCs using this.
42 {"WIGIG", ICL_PMC_LTR_WIGIG
},
43 {"THC0", TGL_PMC_LTR_THC0
},
44 {"THC1", TGL_PMC_LTR_THC1
},
45 {"SOUTHPORT_G", CNP_PMC_LTR_RESERVED
},
47 {"ESE", MTL_PMC_LTR_ESE
},
48 {"IOE_PMC", MTL_PMC_LTR_IOE_PMC
},
49 {"DMI3", ARL_PMC_LTR_DMI3
},
50 {"OSSE", LNL_PMC_LTR_OSSE
},
52 /* Below two cannot be used for LTR_IGNORE */
53 {"CURRENT_PLATFORM", CNP_PMC_LTR_CUR_PLT
},
54 {"AGGREGATED_SYSTEM", CNP_PMC_LTR_CUR_ASLT
},
58 const struct pmc_bit_map lnl_power_gating_status_0_map
[] = {
59 {"PMC_PGD0_PG_STS", BIT(0), 0},
60 {"FUSE_OSSE_PGD0_PG_STS", BIT(1), 0},
61 {"ESPISPI_PGD0_PG_STS", BIT(2), 0},
62 {"XHCI_PGD0_PG_STS", BIT(3), 1},
63 {"SPA_PGD0_PG_STS", BIT(4), 1},
64 {"SPB_PGD0_PG_STS", BIT(5), 1},
65 {"SPR16B0_PGD0_PG_STS", BIT(6), 0},
66 {"GBE_PGD0_PG_STS", BIT(7), 1},
67 {"SBR8B7_PGD0_PG_STS", BIT(8), 0},
68 {"SBR8B6_PGD0_PG_STS", BIT(9), 0},
69 {"SBR16B1_PGD0_PG_STS", BIT(10), 0},
70 {"SBR8B8_PGD0_PG_STS", BIT(11), 0},
71 {"ESE_PGD3_PG_STS", BIT(12), 1},
72 {"D2D_DISP_PGD0_PG_STS", BIT(13), 1},
73 {"LPSS_PGD0_PG_STS", BIT(14), 1},
74 {"LPC_PGD0_PG_STS", BIT(15), 0},
75 {"SMB_PGD0_PG_STS", BIT(16), 0},
76 {"ISH_PGD0_PG_STS", BIT(17), 0},
77 {"SBR8B2_PGD0_PG_STS", BIT(18), 0},
78 {"NPK_PGD0_PG_STS", BIT(19), 0},
79 {"D2D_NOC_PGD0_PG_STS", BIT(20), 0},
80 {"SAFSS_PGD0_PG_STS", BIT(21), 0},
81 {"FUSE_PGD0_PG_STS", BIT(22), 0},
82 {"D2D_DISP_PGD1_PG_STS", BIT(23), 1},
83 {"MPFPW1_PGD0_PG_STS", BIT(24), 0},
84 {"XDCI_PGD0_PG_STS", BIT(25), 1},
85 {"EXI_PGD0_PG_STS", BIT(26), 0},
86 {"CSE_PGD0_PG_STS", BIT(27), 1},
87 {"KVMCC_PGD0_PG_STS", BIT(28), 1},
88 {"PMT_PGD0_PG_STS", BIT(29), 1},
89 {"CLINK_PGD0_PG_STS", BIT(30), 1},
90 {"PTIO_PGD0_PG_STS", BIT(31), 1},
94 const struct pmc_bit_map lnl_power_gating_status_1_map
[] = {
95 {"USBR0_PGD0_PG_STS", BIT(0), 1},
96 {"SUSRAM_PGD0_PG_STS", BIT(1), 1},
97 {"SMT1_PGD0_PG_STS", BIT(2), 1},
98 {"U3FPW1_PGD0_PG_STS", BIT(3), 0},
99 {"SMS2_PGD0_PG_STS", BIT(4), 1},
100 {"SMS1_PGD0_PG_STS", BIT(5), 1},
101 {"CSMERTC_PGD0_PG_STS", BIT(6), 0},
102 {"CSMEPSF_PGD0_PG_STS", BIT(7), 0},
103 {"FIA_PG_PGD0_PG_STS", BIT(8), 0},
104 {"SBR16B4_PGD0_PG_STS", BIT(9), 0},
105 {"P2SB8B_PGD0_PG_STS", BIT(10), 1},
106 {"DBG_SBR_PGD0_PG_STS", BIT(11), 0},
107 {"SBR8B9_PGD0_PG_STS", BIT(12), 0},
108 {"OSSE_SMT1_PGD0_PG_STS", BIT(13), 1},
109 {"SBR8B10_PGD0_PG_STS", BIT(14), 0},
110 {"SBR16B3_PGD0_PG_STS", BIT(15), 0},
111 {"G5FPW1_PGD0_PG_STS", BIT(16), 0},
112 {"SBRG_PGD0_PG_STS", BIT(17), 0},
113 {"PSF4_PGD0_PG_STS", BIT(18), 0},
114 {"CNVI_PGD0_PG_STS", BIT(19), 0},
115 {"USFX2_PGD0_PG_STS", BIT(20), 1},
116 {"ENDBG_PGD0_PG_STS", BIT(21), 0},
117 {"FIACPCB_P5X4_PGD0_PG_STS", BIT(22), 0},
118 {"SBR8B3_PGD0_PG_STS", BIT(23), 0},
119 {"SBR8B0_PGD0_PG_STS", BIT(24), 0},
120 {"NPK_PGD1_PG_STS", BIT(25), 0},
121 {"OSSE_HOTHAM_PGD0_PG_STS", BIT(26), 1},
122 {"D2D_NOC_PGD2_PG_STS", BIT(27), 1},
123 {"SBR8B1_PGD0_PG_STS", BIT(28), 0},
124 {"PSF6_PGD0_PG_STS", BIT(29), 0},
125 {"PSF7_PGD0_PG_STS", BIT(30), 0},
126 {"FIA_U_PGD0_PG_STS", BIT(31), 0},
130 const struct pmc_bit_map lnl_power_gating_status_2_map
[] = {
131 {"PSF8_PGD0_PG_STS", BIT(0), 0},
132 {"SBR16B2_PGD0_PG_STS", BIT(1), 0},
133 {"D2D_IPU_PGD0_PG_STS", BIT(2), 1},
134 {"FIACPCB_U_PGD0_PG_STS", BIT(3), 0},
135 {"TAM_PGD0_PG_STS", BIT(4), 1},
136 {"D2D_NOC_PGD1_PG_STS", BIT(5), 1},
137 {"TBTLSX_PGD0_PG_STS", BIT(6), 1},
138 {"THC0_PGD0_PG_STS", BIT(7), 1},
139 {"THC1_PGD0_PG_STS", BIT(8), 1},
140 {"PMC_PGD0_PG_STS", BIT(9), 0},
141 {"SBR8B5_PGD0_PG_STS", BIT(10), 0},
142 {"UFSPW1_PGD0_PG_STS", BIT(11), 0},
143 {"DBC_PGD0_PG_STS", BIT(12), 0},
144 {"TCSS_PGD0_PG_STS", BIT(13), 0},
145 {"FIA_P5X4_PGD0_PG_STS", BIT(14), 0},
146 {"DISP_PGA_PGD0_PG_STS", BIT(15), 0},
147 {"DISP_PSF_PGD0_PG_STS", BIT(16), 0},
148 {"PSF0_PGD0_PG_STS", BIT(17), 0},
149 {"P2SB16B_PGD0_PG_STS", BIT(18), 1},
150 {"ACE_PGD0_PG_STS", BIT(19), 0},
151 {"ACE_PGD1_PG_STS", BIT(20), 0},
152 {"ACE_PGD2_PG_STS", BIT(21), 0},
153 {"ACE_PGD3_PG_STS", BIT(22), 0},
154 {"ACE_PGD4_PG_STS", BIT(23), 0},
155 {"ACE_PGD5_PG_STS", BIT(24), 0},
156 {"ACE_PGD6_PG_STS", BIT(25), 0},
157 {"ACE_PGD7_PG_STS", BIT(26), 0},
158 {"ACE_PGD8_PG_STS", BIT(27), 0},
159 {"ACE_PGD9_PG_STS", BIT(28), 0},
160 {"ACE_PGD10_PG_STS", BIT(29), 0},
161 {"FIACPCB_PG_PGD0_PG_STS", BIT(30), 0},
162 {"OSSE_PGD0_PG_STS", BIT(31), 1},
166 const struct pmc_bit_map lnl_d3_status_0_map
[] = {
167 {"LPSS_D3_STS", BIT(3), 1},
168 {"XDCI_D3_STS", BIT(4), 1},
169 {"XHCI_D3_STS", BIT(5), 1},
170 {"SPA_D3_STS", BIT(12), 0},
171 {"SPB_D3_STS", BIT(13), 0},
172 {"OSSE_D3_STS", BIT(15), 0},
173 {"ESPISPI_D3_STS", BIT(18), 0},
174 {"PSTH_D3_STS", BIT(21), 0},
178 const struct pmc_bit_map lnl_d3_status_1_map
[] = {
179 {"OSSE_SMT1_D3_STS", BIT(7), 0},
180 {"GBE_D3_STS", BIT(19), 0},
181 {"ITSS_D3_STS", BIT(23), 0},
182 {"CNVI_D3_STS", BIT(27), 0},
183 {"UFSX2_D3_STS", BIT(28), 1},
184 {"OSSE_HOTHAM_D3_STS", BIT(31), 0},
188 const struct pmc_bit_map lnl_d3_status_2_map
[] = {
189 {"ESE_D3_STS", BIT(0), 0},
190 {"CSMERTC_D3_STS", BIT(1), 0},
191 {"SUSRAM_D3_STS", BIT(2), 0},
192 {"CSE_D3_STS", BIT(4), 0},
193 {"KVMCC_D3_STS", BIT(5), 0},
194 {"USBR0_D3_STS", BIT(6), 0},
195 {"ISH_D3_STS", BIT(7), 0},
196 {"SMT1_D3_STS", BIT(8), 0},
197 {"SMT2_D3_STS", BIT(9), 0},
198 {"SMT3_D3_STS", BIT(10), 0},
199 {"OSSE_SMT2_D3_STS", BIT(13), 0},
200 {"CLINK_D3_STS", BIT(14), 0},
201 {"PTIO_D3_STS", BIT(16), 0},
202 {"PMT_D3_STS", BIT(17), 0},
203 {"SMS1_D3_STS", BIT(18), 0},
204 {"SMS2_D3_STS", BIT(19), 0},
208 const struct pmc_bit_map lnl_d3_status_3_map
[] = {
209 {"THC0_D3_STS", BIT(14), 1},
210 {"THC1_D3_STS", BIT(15), 1},
211 {"OSSE_SMT3_D3_STS", BIT(21), 0},
212 {"ACE_D3_STS", BIT(23), 0},
216 const struct pmc_bit_map lnl_vnn_req_status_0_map
[] = {
217 {"LPSS_VNN_REQ_STS", BIT(3), 1},
218 {"OSSE_VNN_REQ_STS", BIT(15), 1},
219 {"ESPISPI_VNN_REQ_STS", BIT(18), 1},
223 const struct pmc_bit_map lnl_vnn_req_status_1_map
[] = {
224 {"NPK_VNN_REQ_STS", BIT(4), 1},
225 {"OSSE_SMT1_VNN_REQ_STS", BIT(7), 1},
226 {"DFXAGG_VNN_REQ_STS", BIT(8), 0},
227 {"EXI_VNN_REQ_STS", BIT(9), 1},
228 {"P2D_VNN_REQ_STS", BIT(18), 1},
229 {"GBE_VNN_REQ_STS", BIT(19), 1},
230 {"SMB_VNN_REQ_STS", BIT(25), 1},
231 {"LPC_VNN_REQ_STS", BIT(26), 0},
235 const struct pmc_bit_map lnl_vnn_req_status_2_map
[] = {
236 {"eSE_VNN_REQ_STS", BIT(0), 1},
237 {"CSMERTC_VNN_REQ_STS", BIT(1), 1},
238 {"CSE_VNN_REQ_STS", BIT(4), 1},
239 {"ISH_VNN_REQ_STS", BIT(7), 1},
240 {"SMT1_VNN_REQ_STS", BIT(8), 1},
241 {"CLINK_VNN_REQ_STS", BIT(14), 1},
242 {"SMS1_VNN_REQ_STS", BIT(18), 1},
243 {"SMS2_VNN_REQ_STS", BIT(19), 1},
244 {"GPIOCOM4_VNN_REQ_STS", BIT(20), 1},
245 {"GPIOCOM3_VNN_REQ_STS", BIT(21), 1},
246 {"GPIOCOM2_VNN_REQ_STS", BIT(22), 0},
247 {"GPIOCOM1_VNN_REQ_STS", BIT(23), 1},
248 {"GPIOCOM0_VNN_REQ_STS", BIT(24), 1},
252 const struct pmc_bit_map lnl_vnn_req_status_3_map
[] = {
253 {"DISP_SHIM_VNN_REQ_STS", BIT(2), 0},
254 {"DTS0_VNN_REQ_STS", BIT(7), 0},
255 {"GPIOCOM5_VNN_REQ_STS", BIT(11), 2},
259 const struct pmc_bit_map lnl_vnn_misc_status_map
[] = {
260 {"CPU_C10_REQ_STS", BIT(0), 0},
261 {"TS_OFF_REQ_STS", BIT(1), 0},
262 {"PNDE_MET_REQ_STS", BIT(2), 1},
263 {"PCIE_DEEP_PM_REQ_STS", BIT(3), 0},
264 {"PMC_CLK_THROTTLE_EN_REQ_STS", BIT(4), 0},
265 {"NPK_VNNAON_REQ_STS", BIT(5), 0},
266 {"VNN_SOC_REQ_STS", BIT(6), 1},
267 {"ISH_VNNAON_REQ_STS", BIT(7), 0},
268 {"D2D_NOC_CFI_QACTIVE_REQ_STS", BIT(8), 1},
269 {"D2D_NOC_GPSB_QACTIVE_REQ_STS", BIT(9), 1},
270 {"D2D_NOC_IPU_QACTIVE_REQ_STS", BIT(10), 1},
271 {"PLT_GREATER_REQ_STS", BIT(11), 1},
272 {"PCIE_CLKREQ_REQ_STS", BIT(12), 0},
273 {"PMC_IDLE_FB_OCP_REQ_STS", BIT(13), 0},
274 {"PM_SYNC_STATES_REQ_STS", BIT(14), 0},
275 {"EA_REQ_STS", BIT(15), 0},
276 {"MPHY_CORE_OFF_REQ_STS", BIT(16), 0},
277 {"BRK_EV_EN_REQ_STS", BIT(17), 0},
278 {"AUTO_DEMO_EN_REQ_STS", BIT(18), 0},
279 {"ITSS_CLK_SRC_REQ_STS", BIT(19), 1},
280 {"LPC_CLK_SRC_REQ_STS", BIT(20), 0},
281 {"ARC_IDLE_REQ_STS", BIT(21), 0},
282 {"MPHY_SUS_REQ_STS", BIT(22), 0},
283 {"FIA_DEEP_PM_REQ_STS", BIT(23), 0},
284 {"UXD_CONNECTED_REQ_STS", BIT(24), 1},
285 {"ARC_INTERRUPT_WAKE_REQ_STS", BIT(25), 0},
286 {"D2D_NOC_DISP_DDI_QACTIVE_REQ_STS", BIT(26), 1},
287 {"PRE_WAKE0_REQ_STS", BIT(27), 1},
288 {"PRE_WAKE1_REQ_STS", BIT(28), 1},
289 {"PRE_WAKE2_EN_REQ_STS", BIT(29), 1},
290 {"WOV_REQ_STS", BIT(30), 0},
291 {"D2D_NOC_DISP_EDP_QACTIVE_REQ_STS_31", BIT(31), 1},
295 const struct pmc_bit_map lnl_clocksource_status_map
[] = {
296 {"AON2_OFF_STS", BIT(0), 0},
297 {"AON3_OFF_STS", BIT(1), 1},
298 {"AON4_OFF_STS", BIT(2), 1},
299 {"AON5_OFF_STS", BIT(3), 1},
300 {"AON1_OFF_STS", BIT(4), 0},
301 {"MPFPW1_0_PLL_OFF_STS", BIT(6), 1},
302 {"USB3_PLL_OFF_STS", BIT(8), 1},
303 {"AON3_SPL_OFF_STS", BIT(9), 1},
304 {"G5FPW1_PLL_OFF_STS", BIT(15), 1},
305 {"XTAL_AGGR_OFF_STS", BIT(17), 1},
306 {"USB2_PLL_OFF_STS", BIT(18), 0},
307 {"SAF_PLL_OFF_STS", BIT(19), 1},
308 {"SE_TCSS_PLL_OFF_STS", BIT(20), 1},
309 {"DDI_PLL_OFF_STS", BIT(21), 1},
310 {"FILTER_PLL_OFF_STS", BIT(22), 1},
311 {"ACE_PLL_OFF_STS", BIT(24), 0},
312 {"FABRIC_PLL_OFF_STS", BIT(25), 1},
313 {"SOC_PLL_OFF_STS", BIT(26), 1},
314 {"REF_OFF_STS", BIT(28), 1},
315 {"IMG_OFF_STS", BIT(29), 1},
316 {"RTC_PLL_OFF_STS", BIT(31), 0},
320 const struct pmc_bit_map lnl_signal_status_map
[] = {
321 {"LSX_Wake0_STS", BIT(0), 0},
322 {"LSX_Wake1_STS", BIT(1), 0},
323 {"LSX_Wake2_STS", BIT(2), 0},
324 {"LSX_Wake3_STS", BIT(3), 0},
325 {"LSX_Wake4_STS", BIT(4), 0},
326 {"LSX_Wake5_STS", BIT(5), 0},
327 {"LSX_Wake6_STS", BIT(6), 0},
328 {"LSX_Wake7_STS", BIT(7), 0},
329 {"LPSS_Wake0_STS", BIT(8), 1},
330 {"LPSS_Wake1_STS", BIT(9), 1},
331 {"Int_Timer_SS_Wake0_STS", BIT(10), 1},
332 {"Int_Timer_SS_Wake1_STS", BIT(11), 1},
333 {"Int_Timer_SS_Wake2_STS", BIT(12), 1},
334 {"Int_Timer_SS_Wake3_STS", BIT(13), 1},
335 {"Int_Timer_SS_Wake4_STS", BIT(14), 1},
336 {"Int_Timer_SS_Wake5_STS", BIT(15), 1},
340 const struct pmc_bit_map lnl_rsc_status_map
[] = {
347 {"SAF_CFI_LINK", 0, 1},
352 const struct pmc_bit_map
*lnl_lpm_maps
[] = {
353 lnl_clocksource_status_map
,
354 lnl_power_gating_status_0_map
,
355 lnl_power_gating_status_1_map
,
356 lnl_power_gating_status_2_map
,
361 lnl_vnn_req_status_0_map
,
362 lnl_vnn_req_status_1_map
,
363 lnl_vnn_req_status_2_map
,
364 lnl_vnn_req_status_3_map
,
365 lnl_vnn_misc_status_map
,
366 lnl_signal_status_map
,
370 const struct pmc_bit_map
*lnl_blk_maps
[] = {
371 lnl_power_gating_status_0_map
,
372 lnl_power_gating_status_1_map
,
373 lnl_power_gating_status_2_map
,
375 lnl_vnn_req_status_0_map
,
376 lnl_vnn_req_status_1_map
,
377 lnl_vnn_req_status_2_map
,
378 lnl_vnn_req_status_3_map
,
383 lnl_clocksource_status_map
,
384 lnl_vnn_misc_status_map
,
385 lnl_signal_status_map
,
389 const struct pmc_bit_map lnl_pfear_map
[] = {
391 {"FUSE_OSSE", BIT(1)},
405 {"D2D_DISP_0", BIT(5)},
413 {"D2D_NOC_0", BIT(4)},
416 {"D2D_DISP_1", BIT(7)},
441 {"OSSE_SMT1", BIT(5)},
451 {"FIACPCB_P5X4", BIT(6)},
456 {"OSSE_HOTHAM", BIT(2)},
457 {"D2D_NOC_2", BIT(3)},
466 {"FIACPCB_U", BIT(3)},
468 {"D2D_NOC_1", BIT(5)},
478 {"FIA_P5X4", BIT(6)},
479 {"DISP_PGA", BIT(7)},
501 const struct pmc_bit_map
*ext_lnl_pfear_map
[] = {
506 const struct pmc_reg_map lnl_socm_reg_map
= {
507 .pfear_sts
= ext_lnl_pfear_map
,
508 .slp_s0_offset
= CNP_PMC_SLP_S0_RES_COUNTER_OFFSET
,
509 .slp_s0_res_counter_step
= TGL_PMC_SLP_S0_RES_COUNTER_STEP
,
510 .ltr_show_sts
= lnl_ltr_show_map
,
512 .ltr_ignore_offset
= CNP_PMC_LTR_IGNORE_OFFSET
,
513 .regmap_length
= LNL_PMC_MMIO_REG_LEN
,
514 .ppfear0_offset
= CNP_PMC_HOST_PPFEAR0A
,
515 .ppfear_buckets
= LNL_PPFEAR_NUM_ENTRIES
,
516 .pm_cfg_offset
= CNP_PMC_PM_CFG_OFFSET
,
517 .pm_read_disable_bit
= CNP_PMC_READ_DISABLE_BIT
,
518 .ltr_ignore_max
= LNL_NUM_IP_IGN_ALLOWED
,
519 .lpm_num_maps
= ADL_LPM_NUM_MAPS
,
520 .lpm_res_counter_step_x2
= TGL_PMC_LPM_RES_COUNTER_STEP_X2
,
521 .etr3_offset
= ETR3_OFFSET
,
522 .lpm_sts_latch_en_offset
= MTL_LPM_STATUS_LATCH_EN_OFFSET
,
523 .lpm_priority_offset
= MTL_LPM_PRI_OFFSET
,
524 .lpm_en_offset
= MTL_LPM_EN_OFFSET
,
525 .lpm_residency_offset
= MTL_LPM_RESIDENCY_OFFSET
,
526 .lpm_sts
= lnl_lpm_maps
,
527 .lpm_status_offset
= MTL_LPM_STATUS_OFFSET
,
528 .lpm_live_status_offset
= MTL_LPM_LIVE_STATUS_OFFSET
,
529 .s0ix_blocker_maps
= lnl_blk_maps
,
530 .s0ix_blocker_offset
= LNL_S0IX_BLOCKER_OFFSET
,
533 #define LNL_NPU_PCI_DEV 0x643e
534 #define LNL_IPU_PCI_DEV 0x645d
537 * Set power state of select devices that do not have drivers to D3
538 * so that they do not block Package C entry.
540 static void lnl_d3_fixup(void)
542 pmc_core_set_device_d3(LNL_IPU_PCI_DEV
);
543 pmc_core_set_device_d3(LNL_NPU_PCI_DEV
);
546 static int lnl_resume(struct pmc_dev
*pmcdev
)
550 return cnl_resume(pmcdev
);
553 int lnl_core_init(struct pmc_dev
*pmcdev
)
556 struct pmc
*pmc
= pmcdev
->pmcs
[PMC_IDX_SOC
];
560 pmcdev
->suspend
= cnl_suspend
;
561 pmcdev
->resume
= lnl_resume
;
563 pmc
->map
= &lnl_socm_reg_map
;
564 ret
= get_primary_reg_base(pmc
);
568 pmc_core_get_low_power_modes(pmcdev
);