]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86/amd/hsmp: Create hsmp/ directory
authorSuma Hegde <suma.hegde@amd.com>
Mon, 21 Oct 2024 11:14:18 +0000 (11:14 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Oct 2024 10:36:46 +0000 (13:36 +0300)
This is in preparation to splitting ACPI and platform device drivers.
Create and move hsmp specific code into its own directory,
no logical changes.

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20241021111428.2676884-1-suma.hegde@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
MAINTAINERS
drivers/platform/x86/amd/Kconfig
drivers/platform/x86/amd/Makefile
drivers/platform/x86/amd/hsmp/Kconfig [new file with mode: 0644]
drivers/platform/x86/amd/hsmp/Makefile [new file with mode: 0644]
drivers/platform/x86/amd/hsmp/hsmp.c [moved from drivers/platform/x86/amd/hsmp.c with 100% similarity]

index c27f3190737f8b85779bde5489639c8b899f4fd8..67f967175e115d43c0590411fbd7547b526208cd 100644 (file)
@@ -1081,7 +1081,7 @@ S:        Maintained
 F:     Documentation/arch/x86/amd_hsmp.rst
 F:     arch/x86/include/asm/amd_hsmp.h
 F:     arch/x86/include/uapi/asm/amd_hsmp.h
-F:     drivers/platform/x86/amd/hsmp.c
+F:     drivers/platform/x86/amd/hsmp/
 
 AMD IOMMU (AMD-VI)
 M:     Joerg Roedel <joro@8bytes.org>
index f88682d36447c2c56791c407782457bd12dd094d..2c671cc17d635775b698206f0b793dcd87e93fff 100644 (file)
@@ -3,22 +3,10 @@
 # AMD x86 Platform Specific Drivers
 #
 
+source "drivers/platform/x86/amd/hsmp/Kconfig"
 source "drivers/platform/x86/amd/pmf/Kconfig"
 source "drivers/platform/x86/amd/pmc/Kconfig"
 
-config AMD_HSMP
-       tristate "AMD HSMP Driver"
-       depends on AMD_NB && X86_64 && ACPI
-       help
-         The driver provides a way for user space tools to monitor and manage
-         system management functionality on EPYC server CPUs from AMD.
-
-         Host System Management Port (HSMP) interface is a mailbox interface
-         between the x86 core and the System Management Unit (SMU) firmware.
-
-         If you choose to compile this driver as a module the module will be
-         called amd_hsmp.
-
 config AMD_WBRF
        bool "AMD Wifi RF Band mitigations (WBRF)"
        depends on ACPI
index dcec0a46f8af16a1470a9fdc377ebe7e0bb03101..96ec24c8701b2f47b341b3d52238ffbcbd8cfd8f 100644 (file)
@@ -5,7 +5,6 @@
 #
 
 obj-$(CONFIG_AMD_PMC)          += pmc/
-amd_hsmp-y                     := hsmp.o
-obj-$(CONFIG_AMD_HSMP)         += amd_hsmp.o
+obj-y                          += hsmp/
 obj-$(CONFIG_AMD_PMF)          += pmf/
 obj-$(CONFIG_AMD_WBRF)         += wbrf.o
diff --git a/drivers/platform/x86/amd/hsmp/Kconfig b/drivers/platform/x86/amd/hsmp/Kconfig
new file mode 100644 (file)
index 0000000..b55d4ed
--- /dev/null
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# AMD HSMP Driver
+#
+
+config AMD_HSMP
+       tristate "AMD HSMP Driver"
+       depends on AMD_NB && X86_64 && ACPI
+       help
+         The driver provides a way for user space tools to monitor and manage
+         system management functionality on EPYC server CPUs from AMD.
+
+         Host System Management Port (HSMP) interface is a mailbox interface
+         between the x86 core and the System Management Unit (SMU) firmware.
+
+         If you choose to compile this driver as a module the module will be
+         called amd_hsmp.
diff --git a/drivers/platform/x86/amd/hsmp/Makefile b/drivers/platform/x86/amd/hsmp/Makefile
new file mode 100644 (file)
index 0000000..fda6490
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for drivers/platform/x86/amd/hsmp
+# AMD HSMP Driver
+#
+
+obj-$(CONFIG_AMD_HSMP)         += amd_hsmp.o
+amd_hsmp-objs                  := hsmp.o