]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86/amd/pmf: Relocate CPU ID macros to the PMF header
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Mon, 19 Aug 2024 06:34:03 +0000 (12:04 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 19 Aug 2024 10:17:17 +0000 (12:17 +0200)
The CPU ID macros are needed by the Smart PC builder. Therefore, transfer
the CPU ID macros from core.c to the common PMF header file.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20240819063404.378061-1-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/core.c
drivers/platform/x86/amd/pmf/pmf.h

index 8f1f719befa3e7105bb58c8edf77febaca9b545d..88314b0277a326f01fe31d7d49412f3b52ddb889 100644 (file)
 #define AMD_PMF_RESULT_CMD_UNKNOWN           0xFE
 #define AMD_PMF_RESULT_FAILED                0xFF
 
-/* List of supported CPU ids */
-#define AMD_CPU_ID_RMB                 0x14b5
-#define AMD_CPU_ID_PS                  0x14e8
-#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT        0x1507
-#define PCI_DEVICE_ID_AMD_1AH_M60H_ROOT        0x1122
-
 #define PMF_MSG_DELAY_MIN_US           50
 #define RESPONSE_REGISTER_LOOP_MAX     20000
 
index 9bf4326d06c3a3286900b2cfd7a97096d4ffba27..9fc26f672f12ca313d449fea426e86c7871687c0 100644 (file)
 #define POLICY_SIGN_COOKIE             0x31535024
 #define POLICY_COOKIE_OFFSET           0x10
 
+/* List of supported CPU ids */
+#define AMD_CPU_ID_RMB                  0x14b5
+#define AMD_CPU_ID_PS                   0x14e8
+#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
+#define PCI_DEVICE_ID_AMD_1AH_M60H_ROOT 0x1122
+
 struct cookie_header {
        u32 sign;
        u32 length;