Skip to content

Commit 652036b

Browse files
gkammelajwrdegoede
authored andcommitted
platform/x86: intel_pmc_core: Fix TigerLake power gating status map
TigerLake's LPM power gating status register has errors in the bit-to-name mapping as well as with the marked reserved bits according to the actual implementation. Hence, update the right bit-to-name mapping and the reserved bits in accordance with actual implementation. Cc: Srinivas Pandruvada <srinivas.pandruvada@intel.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: David E. Box <david.e.box@intel.com> Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com> Signed-off-by: David E. Box <david.e.box@linux.intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20201006224702.12697-3-david.e.box@linux.intel.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent e973f1d commit 652036b

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

drivers/platform/x86/intel_pmc_core.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -426,30 +426,30 @@ static const struct pmc_bit_map tgl_clocksource_status_map[] = {
426426
};
427427

428428
static const struct pmc_bit_map tgl_power_gating_status_map[] = {
429-
{"SPI_PG_STS", BIT(2)},
430-
{"xHCI_PG_STS", BIT(3)},
431-
{"PCIe_Ctrller_A_PG_STS", BIT(4)},
432-
{"PCIe_Ctrller_B_PG_STS", BIT(5)},
433-
{"PCIe_Ctrller_C_PG_STS", BIT(6)},
434-
{"GBE_PG_STS", BIT(7)},
435-
{"SATA_PG_STS", BIT(8)},
436-
{"HDA0_PG_STS", BIT(9)},
437-
{"HDA1_PG_STS", BIT(10)},
438-
{"HDA2_PG_STS", BIT(11)},
439-
{"HDA3_PG_STS", BIT(12)},
440-
{"PCIe_Ctrller_D_PG_STS", BIT(13)},
441-
{"ISIO_PG_STS", BIT(14)},
442-
{"SMB_PG_STS", BIT(16)},
443-
{"ISH_PG_STS", BIT(17)},
444-
{"ITH_PG_STS", BIT(19)},
445-
{"SDX_PG_STS", BIT(20)},
446-
{"xDCI_PG_STS", BIT(25)},
447-
{"DCI_PG_STS", BIT(26)},
448-
{"CSME0_PG_STS", BIT(27)},
449-
{"CSME_KVM_PG_STS", BIT(28)},
450-
{"CSME1_PG_STS", BIT(29)},
451-
{"CSME_CLINK_PG_STS", BIT(30)},
452-
{"CSME2_PG_STS", BIT(31)},
429+
{"CSME_PG_STS", BIT(0)},
430+
{"SATA_PG_STS", BIT(1)},
431+
{"xHCI_PG_STS", BIT(2)},
432+
{"UFSX2_PG_STS", BIT(3)},
433+
{"OTG_PG_STS", BIT(5)},
434+
{"SPA_PG_STS", BIT(6)},
435+
{"SPB_PG_STS", BIT(7)},
436+
{"SPC_PG_STS", BIT(8)},
437+
{"SPD_PG_STS", BIT(9)},
438+
{"SPE_PG_STS", BIT(10)},
439+
{"SPF_PG_STS", BIT(11)},
440+
{"LSX_PG_STS", BIT(13)},
441+
{"P2SB_PG_STS", BIT(14)},
442+
{"PSF_PG_STS", BIT(15)},
443+
{"SBR_PG_STS", BIT(16)},
444+
{"OPIDMI_PG_STS", BIT(17)},
445+
{"THC0_PG_STS", BIT(18)},
446+
{"THC1_PG_STS", BIT(19)},
447+
{"GBETSN_PG_STS", BIT(20)},
448+
{"GBE_PG_STS", BIT(21)},
449+
{"LPSS_PG_STS", BIT(22)},
450+
{"MMP_UFSX2_PG_STS", BIT(23)},
451+
{"MMP_UFSX2B_PG_STS", BIT(24)},
452+
{"FIA_PG_STS", BIT(25)},
453453
{}
454454
};
455455

0 commit comments

Comments
 (0)