]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: intel_scu_ipc: Split out SCU IPC functionality from the SCU driver
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 16 Apr 2020 08:15:33 +0000 (11:15 +0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Apr 2020 10:17:05 +0000 (11:17 +0100)
commitdbb68a873e9c35ce66a4080641c291fb8b2e64fc
treec63e85e72300bed37aa39bdc3cc53e5f0f619ef1
parent0e6c92ce1d170795a396f8108369eb2c8412797f
platform/x86: intel_scu_ipc: Split out SCU IPC functionality from the SCU driver

The SCU IPC functionality is usable outside of Intel MID devices. For
example modern Intel CPUs include the same thing but now it is called
PMC (Power Management Controller) instead of SCU. To make the IPC
available for those split the driver into core part (intel_scu_ipc.c)
and the SCU PCI driver part (intel_scu_pcidrv.c) which then calls the
former before it goes and creates rest of the SCU devices. The SCU IPC
will also register a new class that gets assigned to the device that is
created under the parent PCI device.

We also split the Kconfig symbols so that INTEL_SCU_IPC enables the SCU
IPC library and INTEL_SCU_PCI the SCU driver and convert the users
accordingly. While there remove default y from the INTEL_SCU_PCI symbol
as it is already selected by X86_INTEL_MID.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/x86/Kconfig
arch/x86/include/asm/intel_scu_ipc.h
drivers/mfd/Kconfig
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/intel_scu_ipc.c
drivers/platform/x86/intel_scu_pcidrv.c [new file with mode: 0644]