Skip to content

Commit 83cbaf1

Browse files
Shyam Sundar S Kjwrdegoede
authored andcommitted
platform/x86: amd-pmc: Add new acpi id for future PMC controllers
The upcoming PMC controller would have a newer acpi id, add that to the supported acpid device list. Signed-off-by: Shyam Sundar S K <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
1 parent 9422584 commit 83cbaf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/platform/x86/amd-pmc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
#define AMD_CPU_ID_RN 0x1630
6969
#define AMD_CPU_ID_PCO AMD_CPU_ID_RV
7070
#define AMD_CPU_ID_CZN AMD_CPU_ID_RN
71+
#define AMD_CPU_ID_YC 0x14B5
7172

7273
#define PMC_MSG_DELAY_MIN_US 100
7374
#define RESPONSE_REGISTER_LOOP_MAX 200
@@ -331,6 +332,7 @@ static int amd_pmc_get_os_hint(struct amd_pmc_dev *dev)
331332
case AMD_CPU_ID_PCO:
332333
return MSG_OS_HINT_PCO;
333334
case AMD_CPU_ID_RN:
335+
case AMD_CPU_ID_YC:
334336
return MSG_OS_HINT_RN;
335337
}
336338
return -EINVAL;
@@ -376,6 +378,7 @@ static const struct dev_pm_ops amd_pmc_pm_ops = {
376378
};
377379

378380
static const struct pci_device_id pmc_pci_ids[] = {
381+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_YC) },
379382
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_CZN) },
380383
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_RN) },
381384
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_PCO) },
@@ -470,6 +473,7 @@ static int amd_pmc_remove(struct platform_device *pdev)
470473
static const struct acpi_device_id amd_pmc_acpi_ids[] = {
471474
{"AMDI0005", 0},
472475
{"AMDI0006", 0},
476+
{"AMDI0007", 0},
473477
{"AMD0004", 0},
474478
{ }
475479
};

0 commit comments

Comments
 (0)