2021-08-10 17:22:27

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 00/20] Move Intel platform drivers to intel directory to improve readability.

All the intel platform specific drivers are moved to intel/.
It makes more clear file structure to improve the readability.

Kate Hsuan (20):
Move Intel hid of pdx86 to intel directory to improve readability.
Move Intel WMI driver of pdx86 to intel/ directory to improve
readability.
Move Intel bxtwc driver of pdx86 to intel/ directory to improve
readability.
Move Intel chtdc_ti driver of pdx86 to improve readability.
Move MRFLD power button driver of pdx86 to intel directory to improve
readability.
Move Intel PMC core of pdx86 to intel/ directory to improve
readability.
Move Intel PMT driver of pdx86 to intel/ to improve readability.
Move Intel P-Unit of pdx86 to intel/ directory to improve readability.
Move Intel SCU IPC of pdx86 to intel directory to increase
readability.
Move Intel SoC telemetry driver to intel directory to improve
readability.
Move Intel IPS driver of pdx86 to improve readability.
Move Intel RST driver of pdx86 to intel directory to improve
readability.
Move Intel smartconnect driver of pdx86 to intel/ directory to improve
readability.
Move Intel SST driver to intel/ directory to improve readability.
Move Intel turbo max 3 driver to intel/ directory to improve
readability.
Move Intel uncore freq driver to intel/ directory to improve
readability.
Move Intel int0002 vgpio driver to intel/ directory to inprove
readability.
Move Intel thermal driver for menlow platform driver to intel/
directory to improve readability.
Move OakTrail driver to the intel/ directory to improve readability.
Move Intel virtual botton driver to intel/ directory to improve
readability.

drivers/platform/x86/Kconfig | 297 ------------------
drivers/platform/x86/Makefile | 34 +-
drivers/platform/x86/intel/Kconfig | 21 ++
drivers/platform/x86/intel/Makefile | 31 ++
drivers/platform/x86/intel/bxtwc/Kconfig | 15 +
drivers/platform/x86/intel/bxtwc/Makefile | 6 +
.../x86/{ => intel/bxtwc}/intel_bxtwc_tmu.c | 0
drivers/platform/x86/intel/chtdc_ti/Kconfig | 16 +
drivers/platform/x86/intel/chtdc_ti/Makefile | 7 +
.../chtdc_ti}/intel_chtdc_ti_pwrbtn.c | 0
drivers/platform/x86/intel/hid/Kconfig | 17 +
drivers/platform/x86/intel/hid/Makefile | 7 +
.../platform/x86/{ => intel/hid}/intel-hid.c | 0
drivers/platform/x86/intel/int0002/Kconfig | 23 ++
drivers/platform/x86/intel/int0002/Makefile | 6 +
.../{ => intel/int0002}/intel_int0002_vgpio.c | 0
.../{ => intel}/intel_speed_select_if/Kconfig | 0
.../intel_speed_select_if/Makefile | 0
.../intel_speed_select_if/isst_if_common.c | 0
.../intel_speed_select_if/isst_if_common.h | 0
.../intel_speed_select_if/isst_if_mbox_msr.c | 0
.../intel_speed_select_if/isst_if_mbox_pci.c | 0
.../intel_speed_select_if/isst_if_mmio.c | 0
drivers/platform/x86/intel/ips/Kconfig | 14 +
drivers/platform/x86/intel/ips/Makefile | 6 +
.../platform/x86/{ => intel/ips}/intel_ips.c | 0
.../platform/x86/{ => intel/ips}/intel_ips.h | 0
drivers/platform/x86/intel/menlow/Kconfig | 14 +
drivers/platform/x86/intel/menlow/Makefile | 6 +
.../x86/{ => intel/menlow}/intel_menlow.c | 0
drivers/platform/x86/intel/mrfld/Kconfig | 17 +
drivers/platform/x86/intel/mrfld/Makefile | 6 +
.../{ => intel/mrfld}/intel_mrfld_pwrbtn.c | 0
drivers/platform/x86/intel/oaktrail/Kconfig | 15 +
drivers/platform/x86/intel/oaktrail/Makefile | 6 +
.../x86/{ => intel/oaktrail}/intel_oaktrail.c | 0
drivers/platform/x86/intel/pmc_core/Kconfig | 26 ++
drivers/platform/x86/intel/pmc_core/Makefile | 6 +
.../x86/{ => intel/pmc_core}/intel_pmc_core.c | 0
.../x86/{ => intel/pmc_core}/intel_pmc_core.h | 0
.../pmc_core}/intel_pmc_core_pltdrv.c | 0
drivers/platform/x86/intel/pmt/Kconfig | 41 +++
drivers/platform/x86/intel/pmt/Makefile | 9 +
.../x86/{ => intel/pmt}/intel_pmt_class.c | 0
.../x86/{ => intel/pmt}/intel_pmt_class.h | 0
.../x86/{ => intel/pmt}/intel_pmt_crashlog.c | 0
.../x86/{ => intel/pmt}/intel_pmt_telemetry.c | 0
drivers/platform/x86/intel/punit/Kconfig | 10 +
drivers/platform/x86/intel/punit/Makefile | 6 +
.../x86/{ => intel/punit}/intel_punit_ipc.c | 0
drivers/platform/x86/intel/rst/Kconfig | 16 +
drivers/platform/x86/intel/rst/Makefile | 6 +
.../platform/x86/{ => intel/rst}/intel-rst.c | 0
drivers/platform/x86/intel/scu/Kconfig | 52 +++
drivers/platform/x86/intel/scu/Makefile | 11 +
.../x86/{ => intel/scu}/intel_scu_ipc.c | 0
.../x86/{ => intel/scu}/intel_scu_ipcutil.c | 0
.../x86/{ => intel/scu}/intel_scu_pcidrv.c | 0
.../x86/{ => intel/scu}/intel_scu_pltdrv.c | 0
.../x86/{ => intel/scu}/intel_scu_wdt.c | 0
.../platform/x86/intel/smartconnect/Kconfig | 18 ++
.../platform/x86/intel/smartconnect/Makefile | 6 +
.../smartconnect}/intel-smartconnect.c | 0
drivers/platform/x86/intel/telemetry/Kconfig | 16 +
drivers/platform/x86/intel/telemetry/Makefile | 9 +
.../telemetry}/intel_telemetry_core.c | 0
.../telemetry}/intel_telemetry_debugfs.c | 0
.../telemetry}/intel_telemetry_pltdrv.c | 0
.../platform/x86/intel/turbo_max_3/Kconfig | 14 +
.../platform/x86/intel/turbo_max_3/Makefile | 6 +
.../turbo_max_3}/intel_turbo_max_3.c | 0
.../platform/x86/intel/uncore_freq/Kconfig | 15 +
.../platform/x86/intel/uncore_freq/Makefile | 6 +
.../uncore_freq}/intel-uncore-frequency.c | 0
drivers/platform/x86/intel/vbtn/Kconfig | 16 +
drivers/platform/x86/intel/vbtn/Makefile | 6 +
.../x86/{ => intel/vbtn}/intel-vbtn.c | 0
drivers/platform/x86/intel/wmi/Kconfig | 26 ++
drivers/platform/x86/intel/wmi/Makefile | 7 +
.../{ => intel/wmi}/intel-wmi-sbl-fw-update.c | 0
.../{ => intel/wmi}/intel-wmi-thunderbolt.c | 0
81 files changed, 562 insertions(+), 330 deletions(-)
create mode 100644 drivers/platform/x86/intel/bxtwc/Kconfig
create mode 100644 drivers/platform/x86/intel/bxtwc/Makefile
rename drivers/platform/x86/{ => intel/bxtwc}/intel_bxtwc_tmu.c (100%)
create mode 100644 drivers/platform/x86/intel/chtdc_ti/Kconfig
create mode 100644 drivers/platform/x86/intel/chtdc_ti/Makefile
rename drivers/platform/x86/{ => intel/chtdc_ti}/intel_chtdc_ti_pwrbtn.c (100%)
create mode 100644 drivers/platform/x86/intel/hid/Kconfig
create mode 100644 drivers/platform/x86/intel/hid/Makefile
rename drivers/platform/x86/{ => intel/hid}/intel-hid.c (100%)
create mode 100644 drivers/platform/x86/intel/int0002/Kconfig
create mode 100644 drivers/platform/x86/intel/int0002/Makefile
rename drivers/platform/x86/{ => intel/int0002}/intel_int0002_vgpio.c (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/Kconfig (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/Makefile (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_common.c (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_common.h (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_mbox_msr.c (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_mbox_pci.c (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_mmio.c (100%)
create mode 100644 drivers/platform/x86/intel/ips/Kconfig
create mode 100644 drivers/platform/x86/intel/ips/Makefile
rename drivers/platform/x86/{ => intel/ips}/intel_ips.c (100%)
rename drivers/platform/x86/{ => intel/ips}/intel_ips.h (100%)
create mode 100644 drivers/platform/x86/intel/menlow/Kconfig
create mode 100644 drivers/platform/x86/intel/menlow/Makefile
rename drivers/platform/x86/{ => intel/menlow}/intel_menlow.c (100%)
create mode 100644 drivers/platform/x86/intel/mrfld/Kconfig
create mode 100644 drivers/platform/x86/intel/mrfld/Makefile
rename drivers/platform/x86/{ => intel/mrfld}/intel_mrfld_pwrbtn.c (100%)
create mode 100644 drivers/platform/x86/intel/oaktrail/Kconfig
create mode 100644 drivers/platform/x86/intel/oaktrail/Makefile
rename drivers/platform/x86/{ => intel/oaktrail}/intel_oaktrail.c (100%)
create mode 100644 drivers/platform/x86/intel/pmc_core/Kconfig
create mode 100644 drivers/platform/x86/intel/pmc_core/Makefile
rename drivers/platform/x86/{ => intel/pmc_core}/intel_pmc_core.c (100%)
rename drivers/platform/x86/{ => intel/pmc_core}/intel_pmc_core.h (100%)
rename drivers/platform/x86/{ => intel/pmc_core}/intel_pmc_core_pltdrv.c (100%)
create mode 100644 drivers/platform/x86/intel/pmt/Kconfig
create mode 100644 drivers/platform/x86/intel/pmt/Makefile
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_class.c (100%)
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_class.h (100%)
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_crashlog.c (100%)
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_telemetry.c (100%)
create mode 100644 drivers/platform/x86/intel/punit/Kconfig
create mode 100644 drivers/platform/x86/intel/punit/Makefile
rename drivers/platform/x86/{ => intel/punit}/intel_punit_ipc.c (100%)
create mode 100644 drivers/platform/x86/intel/rst/Kconfig
create mode 100644 drivers/platform/x86/intel/rst/Makefile
rename drivers/platform/x86/{ => intel/rst}/intel-rst.c (100%)
create mode 100644 drivers/platform/x86/intel/scu/Kconfig
create mode 100644 drivers/platform/x86/intel/scu/Makefile
rename drivers/platform/x86/{ => intel/scu}/intel_scu_ipc.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_ipcutil.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_pcidrv.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_pltdrv.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_wdt.c (100%)
create mode 100644 drivers/platform/x86/intel/smartconnect/Kconfig
create mode 100644 drivers/platform/x86/intel/smartconnect/Makefile
rename drivers/platform/x86/{ => intel/smartconnect}/intel-smartconnect.c (100%)
create mode 100644 drivers/platform/x86/intel/telemetry/Kconfig
create mode 100644 drivers/platform/x86/intel/telemetry/Makefile
rename drivers/platform/x86/{ => intel/telemetry}/intel_telemetry_core.c (100%)
rename drivers/platform/x86/{ => intel/telemetry}/intel_telemetry_debugfs.c (100%)
rename drivers/platform/x86/{ => intel/telemetry}/intel_telemetry_pltdrv.c (100%)
create mode 100644 drivers/platform/x86/intel/turbo_max_3/Kconfig
create mode 100644 drivers/platform/x86/intel/turbo_max_3/Makefile
rename drivers/platform/x86/{ => intel/turbo_max_3}/intel_turbo_max_3.c (100%)
create mode 100644 drivers/platform/x86/intel/uncore_freq/Kconfig
create mode 100644 drivers/platform/x86/intel/uncore_freq/Makefile
rename drivers/platform/x86/{ => intel/uncore_freq}/intel-uncore-frequency.c (100%)
create mode 100644 drivers/platform/x86/intel/vbtn/Kconfig
create mode 100644 drivers/platform/x86/intel/vbtn/Makefile
rename drivers/platform/x86/{ => intel/vbtn}/intel-vbtn.c (100%)
create mode 100644 drivers/platform/x86/intel/wmi/Kconfig
create mode 100644 drivers/platform/x86/intel/wmi/Makefile
rename drivers/platform/x86/{ => intel/wmi}/intel-wmi-sbl-fw-update.c (100%)
rename drivers/platform/x86/{ => intel/wmi}/intel-wmi-thunderbolt.c (100%)

--
2.31.1


2021-08-10 17:22:27

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 07/20] Move Intel PMT driver of pdx86 to intel/ to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Makefile | 4 +-
drivers/platform/x86/intel/Kconfig | 2 +
drivers/platform/x86/intel/Makefile | 3 ++
drivers/platform/x86/intel/pmt/Kconfig | 41 +++++++++++++++++++
drivers/platform/x86/intel/pmt/Makefile | 9 ++++
.../x86/{ => intel/pmt}/intel_pmt_class.c | 0
.../x86/{ => intel/pmt}/intel_pmt_class.h | 0
.../x86/{ => intel/pmt}/intel_pmt_crashlog.c | 0
.../x86/{ => intel/pmt}/intel_pmt_telemetry.c | 0
9 files changed, 56 insertions(+), 3 deletions(-)
create mode 100644 drivers/platform/x86/intel/pmt/Kconfig
create mode 100644 drivers/platform/x86/intel/pmt/Makefile
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_class.c (100%)
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_class.h (100%)
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_crashlog.c (100%)
rename drivers/platform/x86/{ => intel/pmt}/intel_pmt_telemetry.c (100%)

diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index 30771dd51a84..1310b1ebc3f0 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -123,9 +123,7 @@ obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o
# Intel PMIC / PMC / P-Unit devices


-obj-$(CONFIG_INTEL_PMT_CLASS) += intel_pmt_class.o
-obj-$(CONFIG_INTEL_PMT_TELEMETRY) += intel_pmt_telemetry.o
-obj-$(CONFIG_INTEL_PMT_CRASHLOG) += intel_pmt_crashlog.o
+
obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o
obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o
obj-$(CONFIG_INTEL_SCU_PCI) += intel_scu_pcidrv.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index 2565b676b911..38bfca25940d 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -25,5 +25,7 @@ source "drivers/platform/x86/intel/bxtwc/Kconfig"
source "drivers/platform/x86/intel/chtdc_ti/Kconfig"
source "drivers/platform/x86/intel/mrfld/Kconfig"
source "drivers/platform/x86/intel/pmc_core/Kconfig"
+source "drivers/platform/x86/intel/pmt/Kconfig"
+

endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index 7a9faf15bfb9..746bee1db055 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -18,3 +18,6 @@ obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += bxtwc/
obj-$(CONFIG_INTEL_CHTDC_TI_PWRBTN) += chtdc_ti/
obj-$(CONFIG_INTEL_MRFLD_PWRBTN) += mrfld/
obj-$(CONFIG_INTEL_PMC_CORE) += pmc_core/
+obj-$(CONFIG_INTEL_PMT_CLASS) += pmt/
+obj-$(CONFIG_INTEL_PMT_TELEMETRY) += pmt/
+obj-$(CONFIG_INTEL_PMT_CRASHLOG) += pmt/
diff --git a/drivers/platform/x86/intel/pmt/Kconfig b/drivers/platform/x86/intel/pmt/Kconfig
new file mode 100644
index 000000000000..1a5f0fa789e0
--- /dev/null
+++ b/drivers/platform/x86/intel/pmt/Kconfig
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+config INTEL_PMT_CLASS
+ tristate
+ help
+ The Intel Platform Monitoring Technology (PMT) class driver provides
+ the basic sysfs interface and file hierarchy used by PMT devices.
+
+ For more information, see:
+ <file:Documentation/ABI/testing/sysfs-class-intel_pmt>
+
+ To compile this driver as a module, choose M here: the module
+ will be called intel_pmt_class.
+
+config INTEL_PMT_TELEMETRY
+ tristate "Intel Platform Monitoring Technology (PMT) Telemetry driver"
+ depends on MFD_INTEL_PMT
+ select INTEL_PMT_CLASS
+ help
+ The Intel Platform Monitory Technology (PMT) Telemetry driver provides
+ access to hardware telemetry metrics on devices that support the
+ feature.
+
+ To compile this driver as a module, choose M here: the module
+ will be called intel_pmt_telemetry.
+
+config INTEL_PMT_CRASHLOG
+ tristate "Intel Platform Monitoring Technology (PMT) Crashlog driver"
+ depends on MFD_INTEL_PMT
+ select INTEL_PMT_CLASS
+ help
+ The Intel Platform Monitoring Technology (PMT) crashlog driver provides
+ access to hardware crashlog capabilities on devices that support the
+ feature.
+
+ To compile this driver as a module, choose M here: the module
+ will be called intel_pmt_crashlog.
+
diff --git a/drivers/platform/x86/intel/pmt/Makefile b/drivers/platform/x86/intel/pmt/Makefile
new file mode 100644
index 000000000000..b41f52e09f27
--- /dev/null
+++ b/drivers/platform/x86/intel/pmt/Makefile
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+
+obj-$(CONFIG_INTEL_PMT_CLASS) += intel_pmt_class.o
+obj-$(CONFIG_INTEL_PMT_TELEMETRY) += intel_pmt_telemetry.o
+obj-$(CONFIG_INTEL_PMT_CRASHLOG) += intel_pmt_crashlog.o
diff --git a/drivers/platform/x86/intel_pmt_class.c b/drivers/platform/x86/intel/pmt/intel_pmt_class.c
similarity index 100%
rename from drivers/platform/x86/intel_pmt_class.c
rename to drivers/platform/x86/intel/pmt/intel_pmt_class.c
diff --git a/drivers/platform/x86/intel_pmt_class.h b/drivers/platform/x86/intel/pmt/intel_pmt_class.h
similarity index 100%
rename from drivers/platform/x86/intel_pmt_class.h
rename to drivers/platform/x86/intel/pmt/intel_pmt_class.h
diff --git a/drivers/platform/x86/intel_pmt_crashlog.c b/drivers/platform/x86/intel/pmt/intel_pmt_crashlog.c
similarity index 100%
rename from drivers/platform/x86/intel_pmt_crashlog.c
rename to drivers/platform/x86/intel/pmt/intel_pmt_crashlog.c
diff --git a/drivers/platform/x86/intel_pmt_telemetry.c b/drivers/platform/x86/intel/pmt/intel_pmt_telemetry.c
similarity index 100%
rename from drivers/platform/x86/intel_pmt_telemetry.c
rename to drivers/platform/x86/intel/pmt/intel_pmt_telemetry.c
--
2.31.1

2021-08-10 17:22:31

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 05/20] Move MRFLD power button driver of pdx86 to intel directory to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Kconfig | 11 -----------
drivers/platform/x86/Makefile | 2 +-
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 3 ++-
drivers/platform/x86/intel/mrfld/Kconfig | 17 +++++++++++++++++
drivers/platform/x86/intel/mrfld/Makefile | 6 ++++++
.../x86/{ => intel/mrfld}/intel_mrfld_pwrbtn.c | 0
7 files changed, 27 insertions(+), 13 deletions(-)
create mode 100644 drivers/platform/x86/intel/mrfld/Kconfig
create mode 100644 drivers/platform/x86/intel/mrfld/Makefile
rename drivers/platform/x86/{ => intel/mrfld}/intel_mrfld_pwrbtn.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 8b71eca4fc22..ecd8daf6c240 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1086,17 +1086,6 @@ config INTEL_UNCORE_FREQ_CONTROL
will be called intel-uncore-frequency.


-config INTEL_MRFLD_PWRBTN
- tristate "Intel Merrifield Basin Cove power button driver"
- depends on INTEL_SOC_PMIC_MRFLD
- depends on INPUT
- help
- This option adds a power button driver for Basin Cove PMIC
- on Intel Merrifield devices.
-
- To compile this driver as a module, choose M here: the module
- will be called intel_mrfld_pwrbtn.
-
config INTEL_PMC_CORE
tristate "Intel PMC Core driver"
depends on PCI
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index ee613ece9d8a..a659fdcfd2d3 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -123,7 +123,7 @@ obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o
# Intel PMIC / PMC / P-Unit devices


-obj-$(CONFIG_INTEL_MRFLD_PWRBTN) += intel_mrfld_pwrbtn.o
+
obj-$(CONFIG_INTEL_PMC_CORE) += intel_pmc_core.o intel_pmc_core_pltdrv.o
obj-$(CONFIG_INTEL_PMT_CLASS) += intel_pmt_class.o
obj-$(CONFIG_INTEL_PMT_TELEMETRY) += intel_pmt_telemetry.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index d09795dfccbf..afbf34a12811 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -23,5 +23,6 @@ source "drivers/platform/x86/intel/hid/Kconfig"
source "drivers/platform/x86/intel/wmi/Kconfig"
source "drivers/platform/x86/intel/bxtwc/Kconfig"
source "drivers/platform/x86/intel/chtdc_ti/Kconfig"
+source "drivers/platform/x86/intel/mrfld/Kconfig"

endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index fdfa1cb6a8a7..f5fe2ff0417b 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -15,4 +15,5 @@ obj-$(CONFIG_INTEL_WMI_THUNDERBOLT) += wmi/

# Intel PMIC / PMC / P-Unit devices
obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += bxtwc/
-obj-$(CONFIG_INTEL_CHTDC_TI_PWRBTN) += chtdc_ti/
\ No newline at end of file
+obj-$(CONFIG_INTEL_CHTDC_TI_PWRBTN) += chtdc_ti/
+obj-$(CONFIG_INTEL_MRFLD_PWRBTN) += mrfld/
\ No newline at end of file
diff --git a/drivers/platform/x86/intel/mrfld/Kconfig b/drivers/platform/x86/intel/mrfld/Kconfig
new file mode 100644
index 000000000000..657281203062
--- /dev/null
+++ b/drivers/platform/x86/intel/mrfld/Kconfig
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+
+
+config INTEL_MRFLD_PWRBTN
+ tristate "Intel Merrifield Basin Cove power button driver"
+ depends on INTEL_SOC_PMIC_MRFLD
+ depends on INPUT
+ help
+ This option adds a power button driver for Basin Cove PMIC
+ on Intel Merrifield devices.
+
+ To compile this driver as a module, choose M here: the module
+ will be called intel_mrfld_pwrbtn.
diff --git a/drivers/platform/x86/intel/mrfld/Makefile b/drivers/platform/x86/intel/mrfld/Makefile
new file mode 100644
index 000000000000..9a31c21b0bec
--- /dev/null
+++ b/drivers/platform/x86/intel/mrfld/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_MRFLD_PWRBTN) += intel_mrfld_pwrbtn.o
diff --git a/drivers/platform/x86/intel_mrfld_pwrbtn.c b/drivers/platform/x86/intel/mrfld/intel_mrfld_pwrbtn.c
similarity index 100%
rename from drivers/platform/x86/intel_mrfld_pwrbtn.c
rename to drivers/platform/x86/intel/mrfld/intel_mrfld_pwrbtn.c
--
2.31.1

2021-08-10 17:22:35

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 03/20] Move Intel bxtwc driver of pdx86 to intel/ directory to improve readability.

---
drivers/platform/x86/Kconfig | 9 ---------
drivers/platform/x86/Makefile | 2 +-
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 4 ++++
drivers/platform/x86/intel/bxtwc/Kconfig | 15 +++++++++++++++
drivers/platform/x86/intel/bxtwc/Makefile | 6 ++++++
.../x86/{ => intel/bxtwc}/intel_bxtwc_tmu.c | 0
7 files changed, 27 insertions(+), 10 deletions(-)
create mode 100644 drivers/platform/x86/intel/bxtwc/Kconfig
create mode 100644 drivers/platform/x86/intel/bxtwc/Makefile
rename drivers/platform/x86/{ => intel/bxtwc}/intel_bxtwc_tmu.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 2e45d5e0d08a..9fe7fca8b572 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1085,15 +1085,6 @@ config INTEL_UNCORE_FREQ_CONTROL
To compile this driver as a module, choose M here: the module
will be called intel-uncore-frequency.

-config INTEL_BXTWC_PMIC_TMU
- tristate "Intel BXT Whiskey Cove TMU Driver"
- depends on REGMAP
- depends on MFD_INTEL_PMC_BXT
- depends on INTEL_SOC_PMIC_BXTWC
- help
- Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature.
- This driver enables the alarm wakeup functionality in the TMU unit
- of Whiskey Cove PMIC.

config INTEL_CHTDC_TI_PWRBTN
tristate "Intel Cherry Trail Dollar Cove TI power button driver"
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index c184989563c8..12b7d6338747 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -121,7 +121,7 @@ obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o
obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o

# Intel PMIC / PMC / P-Unit devices
-obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += intel_bxtwc_tmu.o
+
obj-$(CONFIG_INTEL_CHTDC_TI_PWRBTN) += intel_chtdc_ti_pwrbtn.o
obj-$(CONFIG_INTEL_MRFLD_PWRBTN) += intel_mrfld_pwrbtn.o
obj-$(CONFIG_INTEL_PMC_CORE) += intel_pmc_core.o intel_pmc_core_pltdrv.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index d541e63d0d2b..319244c251db 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -21,5 +21,6 @@ source "drivers/platform/x86/intel/int3472/Kconfig"
source "drivers/platform/x86/intel/atomisp2/Kconfig"
source "drivers/platform/x86/intel/hid/Kconfig"
source "drivers/platform/x86/intel/wmi/Kconfig"
+source "drivers/platform/x86/intel/bxtwc/Kconfig"

endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index 653719491fa9..a6945e2dcd1c 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -11,3 +11,7 @@ obj-$(CONFIG_INTEL_ATOMISP2_PM) += atomisp2/
obj-$(CONFIG_INTEL_HID_EVENT) += hid/
obj-$(CONFIG_INTEL_WMI_SBL_FW_UPDATE) += wmi/
obj-$(CONFIG_INTEL_WMI_THUNDERBOLT) += wmi/
+
+
+# Intel PMIC / PMC / P-Unit devices
+obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += bxtwc/
\ No newline at end of file
diff --git a/drivers/platform/x86/intel/bxtwc/Kconfig b/drivers/platform/x86/intel/bxtwc/Kconfig
new file mode 100644
index 000000000000..87802bba9665
--- /dev/null
+++ b/drivers/platform/x86/intel/bxtwc/Kconfig
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+
+config INTEL_BXTWC_PMIC_TMU
+ tristate "Intel BXT Whiskey Cove TMU Driver"
+ depends on REGMAP
+ depends on MFD_INTEL_PMC_BXT
+ depends on INTEL_SOC_PMIC_BXTWC
+ help
+ Select this driver to use Intel BXT Whiskey Cove PMIC TMU feature.
+ This driver enables the alarm wakeup functionality in the TMU unit
+ of Whiskey Cove PMIC.
\ No newline at end of file
diff --git a/drivers/platform/x86/intel/bxtwc/Makefile b/drivers/platform/x86/intel/bxtwc/Makefile
new file mode 100644
index 000000000000..62b4ece63d0e
--- /dev/null
+++ b/drivers/platform/x86/intel/bxtwc/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += intel_bxtwc_tmu.o
\ No newline at end of file
diff --git a/drivers/platform/x86/intel_bxtwc_tmu.c b/drivers/platform/x86/intel/bxtwc/intel_bxtwc_tmu.c
similarity index 100%
rename from drivers/platform/x86/intel_bxtwc_tmu.c
rename to drivers/platform/x86/intel/bxtwc/intel_bxtwc_tmu.c
--
2.31.1

2021-08-10 17:22:45

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 12/20] Move Intel RST driver of pdx86 to intel directory to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Kconfig | 21 -------------------
drivers/platform/x86/Makefile | 2 --
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 1 +
drivers/platform/x86/intel/rst/Kconfig | 16 ++++++++++++++
drivers/platform/x86/intel/rst/Makefile | 6 ++++++
.../platform/x86/{ => intel/rst}/intel-rst.c | 0
7 files changed, 24 insertions(+), 23 deletions(-)
create mode 100644 drivers/platform/x86/intel/rst/Kconfig
create mode 100644 drivers/platform/x86/intel/rst/Makefile
rename drivers/platform/x86/{ => intel/rst}/intel-rst.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index b14c3a2953db..ffb3957c5b57 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1026,27 +1026,6 @@ config INTEL_IMR

If you are running on a Galileo/Quark say Y here.

-config INTEL_IPS
- tristate "Intel Intelligent Power Sharing"
- depends on ACPI && PCI
- help
- Intel Calpella platforms support dynamic power sharing between the
- CPU and GPU, maximizing performance in a given TDP. This driver,
- along with the CPU frequency and i915 drivers, provides that
- functionality. If in doubt, say Y here; it will only load on
- supported platforms.
-
-config INTEL_RST
- tristate "Intel Rapid Start Technology Driver"
- depends on ACPI
- help
- This driver provides support for modifying parameters on systems
- equipped with Intel's Rapid Start Technology. When put in an ACPI
- sleep state, these devices will wake after either a configured
- timeout or when the system battery reaches a critical state,
- automatically copying memory contents to disk. On resume, the
- firmware will copy the memory contents back to RAM and resume the OS
- as usual.

config INTEL_SMARTCONNECT
tristate "Intel Smart Connect disabling driver"
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index a755736341a0..d3ee3413ad13 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -113,8 +113,6 @@ obj-$(CONFIG_TOUCHSCREEN_DMI) += touchscreen_dmi.o
obj-$(CONFIG_WIRELESS_HOTKEY) += wireless-hotkey.o

# Intel uncore drivers
-
-obj-$(CONFIG_INTEL_RST) += intel-rst.o
obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o
obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += intel_speed_select_if/
obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index 5cbc1e4a4756..e16b93c8ea68 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -30,6 +30,7 @@ source "drivers/platform/x86/intel/punit/Kconfig"
source "drivers/platform/x86/intel/scu/Kconfig"
source "drivers/platform/x86/intel/telemetry/Kconfig"
source "drivers/platform/x86/intel/ips/Kconfig"
+source "drivers/platform/x86/intel/rst/Kconfig"


endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index b87767623f94..335eb1bc7eaf 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -31,3 +31,4 @@ obj-$(CONFIG_INTEL_TELEMETRY) += telemetry/

# Intel uncore drivers
obj-$(CONFIG_INTEL_IPS) += ips/
+obj-$(CONFIG_INTEL_RST) += rst/
diff --git a/drivers/platform/x86/intel/rst/Kconfig b/drivers/platform/x86/intel/rst/Kconfig
new file mode 100644
index 000000000000..12265c2c9c32
--- /dev/null
+++ b/drivers/platform/x86/intel/rst/Kconfig
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+config INTEL_RST
+ tristate "Intel Rapid Start Technology Driver"
+ depends on ACPI
+ help
+ This driver provides support for modifying parameters on systems
+ equipped with Intel's Rapid Start Technology. When put in an ACPI
+ sleep state, these devices will wake after either a configured
+ timeout or when the system battery reaches a critical state,
+ automatically copying memory contents to disk. On resume, the
+ firmware will copy the memory contents back to RAM and resume the OS
+ as usual.
diff --git a/drivers/platform/x86/intel/rst/Makefile b/drivers/platform/x86/intel/rst/Makefile
new file mode 100644
index 000000000000..2dc6d16fca19
--- /dev/null
+++ b/drivers/platform/x86/intel/rst/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_RST) += intel-rst.o
diff --git a/drivers/platform/x86/intel-rst.c b/drivers/platform/x86/intel/rst/intel-rst.c
similarity index 100%
rename from drivers/platform/x86/intel-rst.c
rename to drivers/platform/x86/intel/rst/intel-rst.c
--
2.31.1

2021-08-10 17:22:53

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 11/20] Move Intel IPS driver of pdx86 to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Makefile | 7 +------
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 3 +++
drivers/platform/x86/intel/ips/Kconfig | 14 ++++++++++++++
drivers/platform/x86/intel/ips/Makefile | 6 ++++++
drivers/platform/x86/{ => intel/ips}/intel_ips.c | 0
drivers/platform/x86/{ => intel/ips}/intel_ips.h | 0
7 files changed, 25 insertions(+), 6 deletions(-)
create mode 100644 drivers/platform/x86/intel/ips/Kconfig
create mode 100644 drivers/platform/x86/intel/ips/Makefile
rename drivers/platform/x86/{ => intel/ips}/intel_ips.c (100%)
rename drivers/platform/x86/{ => intel/ips}/intel_ips.h (100%)

diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index 1d7acccf5e3a..a755736341a0 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -113,17 +113,12 @@ obj-$(CONFIG_TOUCHSCREEN_DMI) += touchscreen_dmi.o
obj-$(CONFIG_WIRELESS_HOTKEY) += wireless-hotkey.o

# Intel uncore drivers
-obj-$(CONFIG_INTEL_IPS) += intel_ips.o
+
obj-$(CONFIG_INTEL_RST) += intel-rst.o
obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o
obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += intel_speed_select_if/
obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o
obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o

-# Intel PMIC / PMC / P-Unit devices
-
-
-
-

obj-$(CONFIG_PMC_ATOM) += pmc_atom.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index 02e7792d34b0..5cbc1e4a4756 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -29,6 +29,7 @@ source "drivers/platform/x86/intel/pmt/Kconfig"
source "drivers/platform/x86/intel/punit/Kconfig"
source "drivers/platform/x86/intel/scu/Kconfig"
source "drivers/platform/x86/intel/telemetry/Kconfig"
+source "drivers/platform/x86/intel/ips/Kconfig"


endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index 3edbd5209072..b87767623f94 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -28,3 +28,6 @@ obj-$(CONFIG_INTEL_SCU_PLATFORM) += scu/
obj-$(CONFIG_INTEL_SCU_WDT) += scu/
obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += scu/
obj-$(CONFIG_INTEL_TELEMETRY) += telemetry/
+
+# Intel uncore drivers
+obj-$(CONFIG_INTEL_IPS) += ips/
diff --git a/drivers/platform/x86/intel/ips/Kconfig b/drivers/platform/x86/intel/ips/Kconfig
new file mode 100644
index 000000000000..3417f3586d73
--- /dev/null
+++ b/drivers/platform/x86/intel/ips/Kconfig
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+config INTEL_IPS
+ tristate "Intel Intelligent Power Sharing"
+ depends on ACPI && PCI
+ help
+ Intel Calpella platforms support dynamic power sharing between the
+ CPU and GPU, maximizing performance in a given TDP. This driver,
+ along with the CPU frequency and i915 drivers, provides that
+ functionality. If in doubt, say Y here; it will only load on
+ supported platforms.
\ No newline at end of file
diff --git a/drivers/platform/x86/intel/ips/Makefile b/drivers/platform/x86/intel/ips/Makefile
new file mode 100644
index 000000000000..a76450b840c8
--- /dev/null
+++ b/drivers/platform/x86/intel/ips/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_IPS) += intel_ips.o
\ No newline at end of file
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel/ips/intel_ips.c
similarity index 100%
rename from drivers/platform/x86/intel_ips.c
rename to drivers/platform/x86/intel/ips/intel_ips.c
diff --git a/drivers/platform/x86/intel_ips.h b/drivers/platform/x86/intel/ips/intel_ips.h
similarity index 100%
rename from drivers/platform/x86/intel_ips.h
rename to drivers/platform/x86/intel/ips/intel_ips.h
--
2.31.1

2021-08-10 17:22:54

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 14/20] Move Intel SST driver to intel/ directory to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Kconfig | 2 --
drivers/platform/x86/Makefile | 2 +-
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 1 +
drivers/platform/x86/{ => intel}/intel_speed_select_if/Kconfig | 0
drivers/platform/x86/{ => intel}/intel_speed_select_if/Makefile | 0
.../x86/{ => intel}/intel_speed_select_if/isst_if_common.c | 0
.../x86/{ => intel}/intel_speed_select_if/isst_if_common.h | 0
.../x86/{ => intel}/intel_speed_select_if/isst_if_mbox_msr.c | 0
.../x86/{ => intel}/intel_speed_select_if/isst_if_mbox_pci.c | 0
.../x86/{ => intel}/intel_speed_select_if/isst_if_mmio.c | 0
11 files changed, 3 insertions(+), 3 deletions(-)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/Kconfig (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/Makefile (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_common.c (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_common.h (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_mbox_msr.c (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_mbox_pci.c (100%)
rename drivers/platform/x86/{ => intel}/intel_speed_select_if/isst_if_mmio.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index f722f08cd89c..ff0a36a61404 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1028,8 +1028,6 @@ config INTEL_IMR



-source "drivers/platform/x86/intel_speed_select_if/Kconfig"
-
config INTEL_TURBO_MAX_3
bool "Intel Turbo Boost Max Technology 3.0 enumeration driver"
depends on X86_64 && SCHED_MC_PRIO
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index b809aaac300c..2ce50bae6b71 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -114,7 +114,7 @@ obj-$(CONFIG_WIRELESS_HOTKEY) += wireless-hotkey.o

# Intel uncore drivers

-obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += intel_speed_select_if/
+
obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o
obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o

diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index 0ebc6e0a24ca..f6c326d33ea0 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -32,6 +32,7 @@ source "drivers/platform/x86/intel/telemetry/Kconfig"
source "drivers/platform/x86/intel/ips/Kconfig"
source "drivers/platform/x86/intel/rst/Kconfig"
source "drivers/platform/x86/intel/smartconnect/Kconfig"
+source "drivers/platform/x86/intel/intel_speed_select_if/Kconfig"


endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index 5a916bb1512f..972076bdcd4e 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -33,3 +33,4 @@ obj-$(CONFIG_INTEL_TELEMETRY) += telemetry/
obj-$(CONFIG_INTEL_IPS) += ips/
obj-$(CONFIG_INTEL_RST) += rst/
obj-$(CONFIG_INTEL_SMARTCONNECT) += smartconnect/
+obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += intel_speed_select_if/
\ No newline at end of file
diff --git a/drivers/platform/x86/intel_speed_select_if/Kconfig b/drivers/platform/x86/intel/intel_speed_select_if/Kconfig
similarity index 100%
rename from drivers/platform/x86/intel_speed_select_if/Kconfig
rename to drivers/platform/x86/intel/intel_speed_select_if/Kconfig
diff --git a/drivers/platform/x86/intel_speed_select_if/Makefile b/drivers/platform/x86/intel/intel_speed_select_if/Makefile
similarity index 100%
rename from drivers/platform/x86/intel_speed_select_if/Makefile
rename to drivers/platform/x86/intel/intel_speed_select_if/Makefile
diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_common.c b/drivers/platform/x86/intel/intel_speed_select_if/isst_if_common.c
similarity index 100%
rename from drivers/platform/x86/intel_speed_select_if/isst_if_common.c
rename to drivers/platform/x86/intel/intel_speed_select_if/isst_if_common.c
diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_common.h b/drivers/platform/x86/intel/intel_speed_select_if/isst_if_common.h
similarity index 100%
rename from drivers/platform/x86/intel_speed_select_if/isst_if_common.h
rename to drivers/platform/x86/intel/intel_speed_select_if/isst_if_common.h
diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mbox_msr.c b/drivers/platform/x86/intel/intel_speed_select_if/isst_if_mbox_msr.c
similarity index 100%
rename from drivers/platform/x86/intel_speed_select_if/isst_if_mbox_msr.c
rename to drivers/platform/x86/intel/intel_speed_select_if/isst_if_mbox_msr.c
diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c b/drivers/platform/x86/intel/intel_speed_select_if/isst_if_mbox_pci.c
similarity index 100%
rename from drivers/platform/x86/intel_speed_select_if/isst_if_mbox_pci.c
rename to drivers/platform/x86/intel/intel_speed_select_if/isst_if_mbox_pci.c
diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c b/drivers/platform/x86/intel/intel_speed_select_if/isst_if_mmio.c
similarity index 100%
rename from drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c
rename to drivers/platform/x86/intel/intel_speed_select_if/isst_if_mmio.c
--
2.31.1

2021-08-10 17:22:56

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 19/20] Move OakTrail driver to the intel/ directory to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Kconfig | 9 ---------
drivers/platform/x86/Makefile | 3 ---
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 2 +-
drivers/platform/x86/intel/oaktrail/Kconfig | 15 +++++++++++++++
drivers/platform/x86/intel/oaktrail/Makefile | 6 ++++++
.../x86/{ => intel/oaktrail}/intel_oaktrail.c | 0
7 files changed, 23 insertions(+), 13 deletions(-)
create mode 100644 drivers/platform/x86/intel/oaktrail/Kconfig
create mode 100644 drivers/platform/x86/intel/oaktrail/Makefile
rename drivers/platform/x86/{ => intel/oaktrail}/intel_oaktrail.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 50ded236a841..2426f8feb41f 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -634,15 +634,6 @@ source "drivers/platform/x86/intel/Kconfig"



-config INTEL_OAKTRAIL
- tristate "Intel Oaktrail Platform Extras"
- depends on ACPI
- depends on ACPI_VIDEO || ACPI_VIDEO = n
- depends on RFKILL && BACKLIGHT_CLASS_DEVICE && ACPI
- help
- Intel Oaktrail platform need this driver to provide interfaces to
- enable/disable the Camera, WiFi, BT etc. devices. If in doubt, say Y
- here; it will only load on supported platforms.

config INTEL_VBTN
tristate "INTEL VIRTUAL BUTTON"
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index ea5f5dd3f78a..d3992588408a 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -66,9 +66,6 @@ obj-$(CONFIG_THINKPAD_LMI) += think-lmi.o
# Intel
obj-$(CONFIG_X86_PLATFORM_DRIVERS_INTEL) += intel/

-
-
-obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o
obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o

# MSI
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index 59c9b602c784..afc0f70c45ac 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -37,6 +37,7 @@ source "drivers/platform/x86/intel/turbo_max_3/Kconfig"
source "drivers/platform/x86/intel/uncore_freq/Kconfig"
source "drivers/platform/x86/intel/int0002/Kconfig"
source "drivers/platform/x86/intel/menlow/Kconfig"
+source "drivers/platform/x86/intel/oaktrail/Kconfig"


endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index b2326554bd84..6acf5db0e847 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -13,7 +13,7 @@ obj-$(CONFIG_INTEL_WMI_SBL_FW_UPDATE) += wmi/
obj-$(CONFIG_INTEL_WMI_THUNDERBOLT) += wmi/
obj-$(CONFIG_INTEL_INT0002_VGPIO) += int0002/
obj-$(CONFIG_INTEL_MENLOW) += menlow/
-
+obj-$(CONFIG_INTEL_OAKTRAIL) += oaktrail/

# Intel PMIC / PMC / P-Unit devices
obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += bxtwc/
diff --git a/drivers/platform/x86/intel/oaktrail/Kconfig b/drivers/platform/x86/intel/oaktrail/Kconfig
new file mode 100644
index 000000000000..6063fd4e19ca
--- /dev/null
+++ b/drivers/platform/x86/intel/oaktrail/Kconfig
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+config INTEL_OAKTRAIL
+ tristate "Intel Oaktrail Platform Extras"
+ depends on ACPI
+ depends on ACPI_VIDEO || ACPI_VIDEO = n
+ depends on RFKILL && BACKLIGHT_CLASS_DEVICE && ACPI
+ help
+ Intel Oaktrail platform need this driver to provide interfaces to
+ enable/disable the Camera, WiFi, BT etc. devices. If in doubt, say Y
+ here; it will only load on supported platforms.
+
diff --git a/drivers/platform/x86/intel/oaktrail/Makefile b/drivers/platform/x86/intel/oaktrail/Makefile
new file mode 100644
index 000000000000..dc2a7e850153
--- /dev/null
+++ b/drivers/platform/x86/intel/oaktrail/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o
diff --git a/drivers/platform/x86/intel_oaktrail.c b/drivers/platform/x86/intel/oaktrail/intel_oaktrail.c
similarity index 100%
rename from drivers/platform/x86/intel_oaktrail.c
rename to drivers/platform/x86/intel/oaktrail/intel_oaktrail.c
--
2.31.1

2021-08-10 17:23:02

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 13/20] Move Intel smartconnect driver of pdx86 to intel/ directory to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Kconfig | 13 -------------
drivers/platform/x86/Makefile | 2 +-
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 1 +
.../platform/x86/intel/smartconnect/Kconfig | 18 ++++++++++++++++++
.../platform/x86/intel/smartconnect/Makefile | 6 ++++++
.../smartconnect}/intel-smartconnect.c | 0
7 files changed, 27 insertions(+), 14 deletions(-)
create mode 100644 drivers/platform/x86/intel/smartconnect/Kconfig
create mode 100644 drivers/platform/x86/intel/smartconnect/Makefile
rename drivers/platform/x86/{ => intel/smartconnect}/intel-smartconnect.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index ffb3957c5b57..f722f08cd89c 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1027,19 +1027,6 @@ config INTEL_IMR
If you are running on a Galileo/Quark say Y here.


-config INTEL_SMARTCONNECT
- tristate "Intel Smart Connect disabling driver"
- depends on ACPI
- help
- Intel Smart Connect is a technology intended to permit devices to
- update state by resuming for a short period of time at regular
- intervals. If a user enables this functionality under Windows and
- then reboots into Linux, the system may remain configured to resume
- on suspend. In the absence of any userspace to support it, the system
- will then remain awake until something triggers another suspend.
-
- This driver checks to determine whether the device has Intel Smart
- Connect enabled, and if so disables it.

source "drivers/platform/x86/intel_speed_select_if/Kconfig"

diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index d3ee3413ad13..b809aaac300c 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -113,7 +113,7 @@ obj-$(CONFIG_TOUCHSCREEN_DMI) += touchscreen_dmi.o
obj-$(CONFIG_WIRELESS_HOTKEY) += wireless-hotkey.o

# Intel uncore drivers
-obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o
+
obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += intel_speed_select_if/
obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o
obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index e16b93c8ea68..0ebc6e0a24ca 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -31,6 +31,7 @@ source "drivers/platform/x86/intel/scu/Kconfig"
source "drivers/platform/x86/intel/telemetry/Kconfig"
source "drivers/platform/x86/intel/ips/Kconfig"
source "drivers/platform/x86/intel/rst/Kconfig"
+source "drivers/platform/x86/intel/smartconnect/Kconfig"


endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index 335eb1bc7eaf..5a916bb1512f 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -32,3 +32,4 @@ obj-$(CONFIG_INTEL_TELEMETRY) += telemetry/
# Intel uncore drivers
obj-$(CONFIG_INTEL_IPS) += ips/
obj-$(CONFIG_INTEL_RST) += rst/
+obj-$(CONFIG_INTEL_SMARTCONNECT) += smartconnect/
diff --git a/drivers/platform/x86/intel/smartconnect/Kconfig b/drivers/platform/x86/intel/smartconnect/Kconfig
new file mode 100644
index 000000000000..2cc0c8504285
--- /dev/null
+++ b/drivers/platform/x86/intel/smartconnect/Kconfig
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+config INTEL_SMARTCONNECT
+ tristate "Intel Smart Connect disabling driver"
+ depends on ACPI
+ help
+ Intel Smart Connect is a technology intended to permit devices to
+ update state by resuming for a short period of time at regular
+ intervals. If a user enables this functionality under Windows and
+ then reboots into Linux, the system may remain configured to resume
+ on suspend. In the absence of any userspace to support it, the system
+ will then remain awake until something triggers another suspend.
+
+ This driver checks to determine whether the device has Intel Smart
+ Connect enabled, and if so disables it.
diff --git a/drivers/platform/x86/intel/smartconnect/Makefile b/drivers/platform/x86/intel/smartconnect/Makefile
new file mode 100644
index 000000000000..74ef29b5b714
--- /dev/null
+++ b/drivers/platform/x86/intel/smartconnect/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o
\ No newline at end of file
diff --git a/drivers/platform/x86/intel-smartconnect.c b/drivers/platform/x86/intel/smartconnect/intel-smartconnect.c
similarity index 100%
rename from drivers/platform/x86/intel-smartconnect.c
rename to drivers/platform/x86/intel/smartconnect/intel-smartconnect.c
--
2.31.1

2021-08-10 17:23:13

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 09/20] Move Intel SCU IPC of pdx86 to intel directory to increase readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Kconfig | 47 -----------------
drivers/platform/x86/Makefile | 6 +--
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 5 ++
drivers/platform/x86/intel/scu/Kconfig | 52 +++++++++++++++++++
drivers/platform/x86/intel/scu/Makefile | 11 ++++
.../x86/{ => intel/scu}/intel_scu_ipc.c | 0
.../x86/{ => intel/scu}/intel_scu_ipcutil.c | 0
.../x86/{ => intel/scu}/intel_scu_pcidrv.c | 0
.../x86/{ => intel/scu}/intel_scu_pltdrv.c | 0
.../x86/{ => intel/scu}/intel_scu_wdt.c | 0
11 files changed, 70 insertions(+), 52 deletions(-)
create mode 100644 drivers/platform/x86/intel/scu/Kconfig
create mode 100644 drivers/platform/x86/intel/scu/Makefile
rename drivers/platform/x86/{ => intel/scu}/intel_scu_ipc.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_ipcutil.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_pcidrv.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_pltdrv.c (100%)
rename drivers/platform/x86/{ => intel/scu}/intel_scu_wdt.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index 00fa213e9adb..c8c58a8f0ef9 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1086,53 +1086,6 @@ config INTEL_UNCORE_FREQ_CONTROL
will be called intel-uncore-frequency.


-config INTEL_SCU_IPC
- bool
-
-config INTEL_SCU
- bool
- select INTEL_SCU_IPC
-
-config INTEL_SCU_PCI
- bool "Intel SCU PCI driver"
- depends on PCI
- select INTEL_SCU
- help
- This driver is used to bridge the communications between kernel
- and SCU on some embedded Intel x86 platforms. It also creates
- devices that are connected to the SoC through the SCU.
- Platforms supported:
- Medfield
- Clovertrail
- Merrifield
- Broxton
- Apollo Lake
-
-config INTEL_SCU_PLATFORM
- tristate "Intel SCU platform driver"
- depends on ACPI
- select INTEL_SCU
- help
- This driver is used to bridge the communications between kernel
- and SCU (sometimes called PMC as well). The driver currently
- supports Intel Elkhart Lake and compatible platforms.
-
-config INTEL_SCU_WDT
- bool
- default INTEL_SCU_PCI
- depends on INTEL_MID_WATCHDOG
- help
- This is a specific platform code to instantiate watchdog device
- on ACPI-based Intel MID platforms.
-
-config INTEL_SCU_IPC_UTIL
- tristate "Intel SCU IPC utility driver"
- depends on INTEL_SCU
- help
- The IPC Util driver provides an interface with the SCU enabling
- low level access for debug work and updating the firmware. Say
- N unless you will be doing this on an Intel MID platform.
-
config INTEL_TELEMETRY
tristate "Intel SoC Telemetry Driver"
depends on X86_64
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index dbb62085e7f9..72b1a4782d48 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -125,11 +125,7 @@ obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o



-obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o
-obj-$(CONFIG_INTEL_SCU_PCI) += intel_scu_pcidrv.o
-obj-$(CONFIG_INTEL_SCU_PLATFORM) += intel_scu_pltdrv.o
-obj-$(CONFIG_INTEL_SCU_WDT) += intel_scu_wdt.o
-obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += intel_scu_ipcutil.o
+
obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \
intel_telemetry_pltdrv.o \
intel_telemetry_debugfs.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index 189a34226fe0..0f1543dc5299 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -27,6 +27,7 @@ source "drivers/platform/x86/intel/mrfld/Kconfig"
source "drivers/platform/x86/intel/pmc_core/Kconfig"
source "drivers/platform/x86/intel/pmt/Kconfig"
source "drivers/platform/x86/intel/punit/Kconfig"
+source "drivers/platform/x86/intel/scu/Kconfig"


endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index 9bd49a920900..6fff503ba998 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -22,3 +22,8 @@ obj-$(CONFIG_INTEL_PMT_CLASS) += pmt/
obj-$(CONFIG_INTEL_PMT_TELEMETRY) += pmt/
obj-$(CONFIG_INTEL_PMT_CRASHLOG) += pmt/
obj-$(CONFIG_INTEL_PUNIT_IPC) += punit/
+obj-$(CONFIG_INTEL_SCU_IPC) += scu/
+obj-$(CONFIG_INTEL_SCU_PCI) += scu/
+obj-$(CONFIG_INTEL_SCU_PLATFORM) += scu/
+obj-$(CONFIG_INTEL_SCU_WDT) += scu/
+obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += scu/
diff --git a/drivers/platform/x86/intel/scu/Kconfig b/drivers/platform/x86/intel/scu/Kconfig
new file mode 100644
index 000000000000..ac3b2ab039b4
--- /dev/null
+++ b/drivers/platform/x86/intel/scu/Kconfig
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+config INTEL_SCU_IPC
+ bool
+
+config INTEL_SCU
+ bool
+ select INTEL_SCU_IPC
+
+config INTEL_SCU_PCI
+ bool "Intel SCU PCI driver"
+ depends on PCI
+ select INTEL_SCU
+ help
+ This driver is used to bridge the communications between kernel
+ and SCU on some embedded Intel x86 platforms. It also creates
+ devices that are connected to the SoC through the SCU.
+ Platforms supported:
+ Medfield
+ Clovertrail
+ Merrifield
+ Broxton
+ Apollo Lake
+
+config INTEL_SCU_PLATFORM
+ tristate "Intel SCU platform driver"
+ depends on ACPI
+ select INTEL_SCU
+ help
+ This driver is used to bridge the communications between kernel
+ and SCU (sometimes called PMC as well). The driver currently
+ supports Intel Elkhart Lake and compatible platforms.
+
+config INTEL_SCU_WDT
+ bool
+ default INTEL_SCU_PCI
+ depends on INTEL_MID_WATCHDOG
+ help
+ This is a specific platform code to instantiate watchdog device
+ on ACPI-based Intel MID platforms.
+
+config INTEL_SCU_IPC_UTIL
+ tristate "Intel SCU IPC utility driver"
+ depends on INTEL_SCU
+ help
+ The IPC Util driver provides an interface with the SCU enabling
+ low level access for debug work and updating the firmware. Say
+ N unless you will be doing this on an Intel MID platform.
+
diff --git a/drivers/platform/x86/intel/scu/Makefile b/drivers/platform/x86/intel/scu/Makefile
new file mode 100644
index 000000000000..39cab5f19029
--- /dev/null
+++ b/drivers/platform/x86/intel/scu/Makefile
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Intel x86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o
+obj-$(CONFIG_INTEL_SCU_PCI) += intel_scu_pcidrv.o
+obj-$(CONFIG_INTEL_SCU_PLATFORM) += intel_scu_pltdrv.o
+obj-$(CONFIG_INTEL_SCU_WDT) += intel_scu_wdt.o
+obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += intel_scu_ipcutil.o
+
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel/scu/intel_scu_ipc.c
similarity index 100%
rename from drivers/platform/x86/intel_scu_ipc.c
rename to drivers/platform/x86/intel/scu/intel_scu_ipc.c
diff --git a/drivers/platform/x86/intel_scu_ipcutil.c b/drivers/platform/x86/intel/scu/intel_scu_ipcutil.c
similarity index 100%
rename from drivers/platform/x86/intel_scu_ipcutil.c
rename to drivers/platform/x86/intel/scu/intel_scu_ipcutil.c
diff --git a/drivers/platform/x86/intel_scu_pcidrv.c b/drivers/platform/x86/intel/scu/intel_scu_pcidrv.c
similarity index 100%
rename from drivers/platform/x86/intel_scu_pcidrv.c
rename to drivers/platform/x86/intel/scu/intel_scu_pcidrv.c
diff --git a/drivers/platform/x86/intel_scu_pltdrv.c b/drivers/platform/x86/intel/scu/intel_scu_pltdrv.c
similarity index 100%
rename from drivers/platform/x86/intel_scu_pltdrv.c
rename to drivers/platform/x86/intel/scu/intel_scu_pltdrv.c
diff --git a/drivers/platform/x86/intel_scu_wdt.c b/drivers/platform/x86/intel/scu/intel_scu_wdt.c
similarity index 100%
rename from drivers/platform/x86/intel_scu_wdt.c
rename to drivers/platform/x86/intel/scu/intel_scu_wdt.c
--
2.31.1

2021-08-10 17:23:18

by Kate Hsuan

[permalink] [raw]
Subject: [PATCH 08/20] Move Intel P-Unit of pdx86 to intel/ directory to improve readability.

Signed-off-by: Kate Hsuan <[email protected]>
---
drivers/platform/x86/Kconfig | 43 -------------------
drivers/platform/x86/Makefile | 2 +-
drivers/platform/x86/intel/Kconfig | 1 +
drivers/platform/x86/intel/Makefile | 1 +
drivers/platform/x86/intel/punit/Kconfig | 10 +++++
drivers/platform/x86/intel/punit/Makefile | 6 +++
.../x86/{ => intel/punit}/intel_punit_ipc.c | 0
7 files changed, 19 insertions(+), 44 deletions(-)
create mode 100644 drivers/platform/x86/intel/punit/Kconfig
create mode 100644 drivers/platform/x86/intel/punit/Makefile
rename drivers/platform/x86/{ => intel/punit}/intel_punit_ipc.c (100%)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index b9a324ba17e3..00fa213e9adb 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -1086,49 +1086,6 @@ config INTEL_UNCORE_FREQ_CONTROL
will be called intel-uncore-frequency.


-
-config INTEL_PMT_CLASS
- tristate
- help
- The Intel Platform Monitoring Technology (PMT) class driver provides
- the basic sysfs interface and file hierarchy used by PMT devices.
-
- For more information, see:
- <file:Documentation/ABI/testing/sysfs-class-intel_pmt>
-
- To compile this driver as a module, choose M here: the module
- will be called intel_pmt_class.
-
-config INTEL_PMT_TELEMETRY
- tristate "Intel Platform Monitoring Technology (PMT) Telemetry driver"
- depends on MFD_INTEL_PMT
- select INTEL_PMT_CLASS
- help
- The Intel Platform Monitory Technology (PMT) Telemetry driver provides
- access to hardware telemetry metrics on devices that support the
- feature.
-
- To compile this driver as a module, choose M here: the module
- will be called intel_pmt_telemetry.
-
-config INTEL_PMT_CRASHLOG
- tristate "Intel Platform Monitoring Technology (PMT) Crashlog driver"
- depends on MFD_INTEL_PMT
- select INTEL_PMT_CLASS
- help
- The Intel Platform Monitoring Technology (PMT) crashlog driver provides
- access to hardware crashlog capabilities on devices that support the
- feature.
-
- To compile this driver as a module, choose M here: the module
- will be called intel_pmt_crashlog.
-
-config INTEL_PUNIT_IPC
- tristate "Intel P-Unit IPC Driver"
- help
- This driver provides support for Intel P-Unit Mailbox IPC mechanism,
- which is used to bridge the communications between kernel and P-Unit.
-
config INTEL_SCU_IPC
bool

diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
index 1310b1ebc3f0..dbb62085e7f9 100644
--- a/drivers/platform/x86/Makefile
+++ b/drivers/platform/x86/Makefile
@@ -124,7 +124,7 @@ obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o



-obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o
+
obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o
obj-$(CONFIG_INTEL_SCU_PCI) += intel_scu_pcidrv.o
obj-$(CONFIG_INTEL_SCU_PLATFORM) += intel_scu_pltdrv.o
diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig
index 38bfca25940d..189a34226fe0 100644
--- a/drivers/platform/x86/intel/Kconfig
+++ b/drivers/platform/x86/intel/Kconfig
@@ -26,6 +26,7 @@ source "drivers/platform/x86/intel/chtdc_ti/Kconfig"
source "drivers/platform/x86/intel/mrfld/Kconfig"
source "drivers/platform/x86/intel/pmc_core/Kconfig"
source "drivers/platform/x86/intel/pmt/Kconfig"
+source "drivers/platform/x86/intel/punit/Kconfig"


endif # X86_PLATFORM_DRIVERS_INTEL
diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile
index 746bee1db055..9bd49a920900 100644
--- a/drivers/platform/x86/intel/Makefile
+++ b/drivers/platform/x86/intel/Makefile
@@ -21,3 +21,4 @@ obj-$(CONFIG_INTEL_PMC_CORE) += pmc_core/
obj-$(CONFIG_INTEL_PMT_CLASS) += pmt/
obj-$(CONFIG_INTEL_PMT_TELEMETRY) += pmt/
obj-$(CONFIG_INTEL_PMT_CRASHLOG) += pmt/
+obj-$(CONFIG_INTEL_PUNIT_IPC) += punit/
diff --git a/drivers/platform/x86/intel/punit/Kconfig b/drivers/platform/x86/intel/punit/Kconfig
new file mode 100644
index 000000000000..db56ef3bb086
--- /dev/null
+++ b/drivers/platform/x86/intel/punit/Kconfig
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# X86 Platform Specific Drivers
+#
+
+config INTEL_PUNIT_IPC
+ tristate "Intel P-Unit IPC Driver"
+ help
+ This driver provides support for Intel P-Unit Mailbox IPC mechanism,
+ which is used to bridge the communications between kernel and P-Unit.
diff --git a/drivers/platform/x86/intel/punit/Makefile b/drivers/platform/x86/intel/punit/Makefile
new file mode 100644
index 000000000000..f25284806f63
--- /dev/null
+++ b/drivers/platform/x86/intel/punit/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# X86 Platform Specific Drivers
+#
+
+obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o
\ No newline at end of file
diff --git a/drivers/platform/x86/intel_punit_ipc.c b/drivers/platform/x86/intel/punit/intel_punit_ipc.c
similarity index 100%
rename from drivers/platform/x86/intel_punit_ipc.c
rename to drivers/platform/x86/intel/punit/intel_punit_ipc.c
--
2.31.1