Skip to content

Commit 8598066

Browse files
superm1ij-intel
authored andcommitted
platform/x86/amd/pmc: Move platform defines to header
The platform defines will be used by the quirks in the future, so move them to the common header to allow use by both source files. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20231212045006.97581-2-mario.limonciello@amd.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent fbcf67c commit 8598066

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

drivers/platform/x86/amd/pmc/pmc.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@
9191
#define SMU_MSG_LOG_RESET 0x07
9292
#define SMU_MSG_LOG_DUMP_DATA 0x08
9393
#define SMU_MSG_GET_SUP_CONSTRAINTS 0x09
94-
/* List of supported CPU ids */
95-
#define AMD_CPU_ID_RV 0x15D0
96-
#define AMD_CPU_ID_RN 0x1630
97-
#define AMD_CPU_ID_PCO AMD_CPU_ID_RV
98-
#define AMD_CPU_ID_CZN AMD_CPU_ID_RN
99-
#define AMD_CPU_ID_YC 0x14B5
100-
#define AMD_CPU_ID_CB 0x14D8
101-
#define AMD_CPU_ID_PS 0x14E8
102-
#define AMD_CPU_ID_SP 0x14A4
103-
#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
10494

10595
#define PMC_MSG_DELAY_MIN_US 50
10696
#define RESPONSE_REGISTER_LOOP_MAX 20000

drivers/platform/x86/amd/pmc/pmc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,15 @@ struct amd_pmc_dev {
4141
void amd_pmc_process_restore_quirks(struct amd_pmc_dev *dev);
4242
void amd_pmc_quirks_init(struct amd_pmc_dev *dev);
4343

44+
/* List of supported CPU ids */
45+
#define AMD_CPU_ID_RV 0x15D0
46+
#define AMD_CPU_ID_RN 0x1630
47+
#define AMD_CPU_ID_PCO AMD_CPU_ID_RV
48+
#define AMD_CPU_ID_CZN AMD_CPU_ID_RN
49+
#define AMD_CPU_ID_YC 0x14B5
50+
#define AMD_CPU_ID_CB 0x14D8
51+
#define AMD_CPU_ID_PS 0x14E8
52+
#define AMD_CPU_ID_SP 0x14A4
53+
#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
54+
4455
#endif /* PMC_H */

0 commit comments

Comments
 (0)