Skip to content

Commit 9682cfd

Browse files
xpardee-createjwrdegoede
authored andcommitted
platform/x86:intel/pmc: Update maps for Meteor Lake P/M platforms
Fix the IP name errors in the register maps used by the following debugfs attributes in the Meteor Lake SOC-M PMC. pfear_sts lpm_sts ltr_show Fixes: c5ad454 ("platform/x86: intel/pmc/core: Add Meteor Lake support to pmc core driver") Signed-off-by: Xi Pardee <[email protected]> Signed-off-by: Rajvi Jingar <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent 95de914 commit 9682cfd

File tree

2 files changed

+466
-10
lines changed

2 files changed

+466
-10
lines changed

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,14 @@ enum ppfear_regs {
249249
#define MTL_LPM_STATUS_LATCH_EN_OFFSET 0x16F8
250250
#define MTL_LPM_STATUS_OFFSET 0x1700
251251
#define MTL_LPM_LIVE_STATUS_OFFSET 0x175C
252+
#define MTL_PMC_LTR_IOE_PMC 0x1C0C
253+
#define MTL_PMC_LTR_ESE 0x1BAC
254+
#define MTL_SOCM_NUM_IP_IGN_ALLOWED 25
255+
#define MTL_SOC_PMC_MMIO_REG_LEN 0x2708
256+
#define MTL_PMC_LTR_SPG 0x1B74
257+
258+
/* Meteor Lake PGD PFET Enable Ack Status */
259+
#define MTL_SOCM_PPFEAR_NUM_ENTRIES 8
252260

253261
extern const char *pmc_lpm_modes[];
254262

@@ -395,7 +403,25 @@ extern const struct pmc_bit_map adl_vnn_req_status_3_map[];
395403
extern const struct pmc_bit_map adl_vnn_misc_status_map[];
396404
extern const struct pmc_bit_map *adl_lpm_maps[];
397405
extern const struct pmc_reg_map adl_reg_map;
398-
extern const struct pmc_reg_map mtl_reg_map;
406+
extern const struct pmc_bit_map mtl_socm_pfear_map[];
407+
extern const struct pmc_bit_map *ext_mtl_socm_pfear_map[];
408+
extern const struct pmc_bit_map mtl_socm_ltr_show_map[];
409+
extern const struct pmc_bit_map mtl_socm_clocksource_status_map[];
410+
extern const struct pmc_bit_map mtl_socm_power_gating_status_0_map[];
411+
extern const struct pmc_bit_map mtl_socm_power_gating_status_1_map[];
412+
extern const struct pmc_bit_map mtl_socm_power_gating_status_2_map[];
413+
extern const struct pmc_bit_map mtl_socm_d3_status_0_map[];
414+
extern const struct pmc_bit_map mtl_socm_d3_status_1_map[];
415+
extern const struct pmc_bit_map mtl_socm_d3_status_2_map[];
416+
extern const struct pmc_bit_map mtl_socm_d3_status_3_map[];
417+
extern const struct pmc_bit_map mtl_socm_vnn_req_status_0_map[];
418+
extern const struct pmc_bit_map mtl_socm_vnn_req_status_1_map[];
419+
extern const struct pmc_bit_map mtl_socm_vnn_req_status_2_map[];
420+
extern const struct pmc_bit_map mtl_socm_vnn_req_status_3_map[];
421+
extern const struct pmc_bit_map mtl_socm_vnn_misc_status_map[];
422+
extern const struct pmc_bit_map mtl_socm_signal_status_map[];
423+
extern const struct pmc_bit_map *mtl_socm_lpm_maps[];
424+
extern const struct pmc_reg_map mtl_socm_reg_map;
399425

400426
extern void pmc_core_get_tgl_lpm_reqs(struct platform_device *pdev);
401427
extern int pmc_core_send_ltr_ignore(struct pmc_dev *pmcdev, u32 value);

0 commit comments

Comments
 (0)