Skip to content

Commit d31feed

Browse files
xpardee-createij-intel
authored andcommitted
platform/x86/intel/pmc: Add Panther Lake support to intel_pmc_core
Add Panther Lake support to intel_pmc_core driver Signed-off-by: Rajvi Jingar <[email protected]> Signed-off-by: Xi Pardee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 8d5316c commit d31feed

File tree

4 files changed

+561
-1
lines changed

4 files changed

+561
-1
lines changed

drivers/platform/x86/intel/pmc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
intel_pmc_core-y := core.o core_ssram.o spt.o cnp.o \
7-
icl.o tgl.o adl.o mtl.o arl.o lnl.o
7+
icl.o tgl.o adl.o mtl.o arl.o lnl.o ptl.o
88
obj-$(CONFIG_INTEL_PMC_CORE) += intel_pmc_core.o
99
intel_pmc_core_pltdrv-y := pltdrv.o
1010
obj-$(CONFIG_INTEL_PMC_CORE) += intel_pmc_core_pltdrv.o

drivers/platform/x86/intel/pmc/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,6 +1413,7 @@ static const struct x86_cpu_id intel_pmc_core_ids[] = {
14131413
X86_MATCH_VFM(INTEL_ARROWLAKE_H, &arl_h_pmc_dev),
14141414
X86_MATCH_VFM(INTEL_ARROWLAKE_U, &arl_h_pmc_dev),
14151415
X86_MATCH_VFM(INTEL_LUNARLAKE_M, &lnl_pmc_dev),
1416+
X86_MATCH_VFM(INTEL_PANTHERLAKE_L, &ptl_pmc_dev),
14161417
{}
14171418
};
14181419

drivers/platform/x86/intel/pmc/core.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,14 @@ enum ppfear_regs {
285285
#define LNL_PPFEAR_NUM_ENTRIES 12
286286
#define LNL_S0IX_BLOCKER_OFFSET 0x2004
287287

288+
/* Panther Lake Power Management Controller register offsets */
289+
#define PTL_LPM_NUM_MAPS 14
290+
#define PTL_PMC_LTR_SATA2 0x1B90
291+
#define PTL_PMC_LTR_PMC 0x1BA8
292+
#define PTL_PMC_LTR_CUR_ASLT 0x1C28
293+
#define PTL_PMC_LTR_CUR_PLT 0x1C2C
294+
#define PTL_PCD_PMC_MMIO_REG_LEN 0x31A8
295+
288296
extern const char *pmc_lpm_modes[];
289297

290298
struct pmc_bit_map {
@@ -626,6 +634,7 @@ extern struct pmc_dev_info mtl_pmc_dev;
626634
extern struct pmc_dev_info arl_pmc_dev;
627635
extern struct pmc_dev_info arl_h_pmc_dev;
628636
extern struct pmc_dev_info lnl_pmc_dev;
637+
extern struct pmc_dev_info ptl_pmc_dev;
629638

630639
void cnl_suspend(struct pmc_dev *pmcdev);
631640
int cnl_resume(struct pmc_dev *pmcdev);

0 commit comments

Comments
 (0)