Skip to content

Commit

Permalink
platform/x86: intel_scu: Move to intel sub-directory
Browse files Browse the repository at this point in the history
Move intel_scu to intel sub-directory to improve readability.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
  • Loading branch information
Kate Hsuan authored and intel-lab-lkp committed Aug 16, 2021
1 parent 4137b2c commit 30a4d97
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 51 deletions.
46 changes: 0 additions & 46 deletions drivers/platform/x86/Kconfig
Expand Up @@ -1168,52 +1168,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_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"
Expand Down
6 changes: 1 addition & 5 deletions drivers/platform/x86/Makefile
Expand Up @@ -129,11 +129,7 @@ obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o

# Intel PMIC / PMC / P-Unit devices

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
Expand Down
1 change: 1 addition & 0 deletions drivers/platform/x86/intel/Kconfig
Expand Up @@ -59,5 +59,6 @@ config INTEL_PUNIT_IPC
which is used to bridge the communications between kernel and P-Unit.

source "drivers/platform/x86/intel/pmc/Kconfig"
source "drivers/platform/x86/intel/scu/Kconfig"

endif # X86_PLATFORM_DRIVERS_INTEL
6 changes: 6 additions & 0 deletions drivers/platform/x86/intel/Makefile
Expand Up @@ -18,3 +18,9 @@ obj-$(CONFIG_INTEL_MRFLD_PWRBTN) += intel_mrfld_pwrbtn.o
intel_punit_ipc-y := punit_ipc.o
obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o
obj-$(CONFIG_INTEL_PMC_CORE) += pmc/
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/

52 changes: 52 additions & 0 deletions drivers/platform/x86/intel/scu/Kconfig
@@ -0,0 +1,52 @@
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for drivers/platform/x86/intel
# 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.
16 changes: 16 additions & 0 deletions drivers/platform/x86/intel/scu/Makefile
@@ -0,0 +1,16 @@
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for drivers/platform/x86/intel
# Intel x86 Platform-Specific Drivers
#

intel_scu_ipc-y := ipc.o
obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o
intel_scu_pcidrv-y := pcidrv.o
obj-$(CONFIG_INTEL_SCU_PCI) += intel_scu_pcidrv.o
intel_scu_pltdrv-y := pltdrv.o
obj-$(CONFIG_INTEL_SCU_PLATFORM) += intel_scu_pltdrv.o
intel_scu_wdt-y := wdt.o
obj-$(CONFIG_INTEL_SCU_WDT) += intel_scu_wdt.o
intel_scu_ipcutil-y := ipcutil.o
obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += intel_scu_ipcutil.o
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 30a4d97

Please sign in to comment.