xref: /linux/drivers/platform/x86/intel/Makefile (revision cdd30ebb1b9f36159d66f088b61aee264e649d7a)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for drivers/platform/x86/intel
4# Intel x86 Platform-Specific Drivers
5#
6
7obj-$(CONFIG_INTEL_ATOMISP2_PDX86)	+= atomisp2/
8obj-$(CONFIG_INTEL_IFS)			+= ifs/
9obj-$(CONFIG_INTEL_SAR_INT1092)		+= int1092/
10obj-$(CONFIG_INTEL_SKL_INT3472)		+= int3472/
11obj-$(CONFIG_INTEL_PMC_CORE)		+= pmc/
12obj-$(CONFIG_INTEL_PMT_CLASS)		+= pmt/
13obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += speed_select_if/
14obj-$(CONFIG_INTEL_TELEMETRY)		+= telemetry/
15obj-$(CONFIG_INTEL_WMI)			+= wmi/
16obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL)	+= uncore-frequency/
17
18
19# Intel input drivers
20intel-target-$(CONFIG_INTEL_HID_EVENT)		+= hid.o
21intel-target-$(CONFIG_INTEL_VBTN)		+= vbtn.o
22
23# Intel miscellaneous drivers
24intel-target-$(CONFIG_INTEL_INT0002_VGPIO)	+= int0002_vgpio.o
25intel-target-$(CONFIG_INTEL_ISHTP_ECLITE)	+= ishtp_eclite.o
26intel-target-$(CONFIG_INTEL_OAKTRAIL)		+= oaktrail.o
27intel-target-$(CONFIG_INTEL_SDSI)		+= sdsi.o
28intel-target-$(CONFIG_INTEL_VSEC)		+= vsec.o
29
30# Intel PMIC / PMC / P-Unit drivers
31intel-target-$(CONFIG_INTEL_BYTCRC_PWRSRC)	+= bytcrc_pwrsrc.o
32intel-target-$(CONFIG_INTEL_BXTWC_PMIC_TMU)	+= bxtwc_tmu.o
33intel-target-$(CONFIG_INTEL_CHTDC_TI_PWRBTN)	+= chtdc_ti_pwrbtn.o
34intel-target-$(CONFIG_INTEL_CHTWC_INT33FE)	+= chtwc_int33fe.o
35intel-target-$(CONFIG_X86_ANDROID_TABLETS)	+= crystal_cove_charger.o
36intel-target-$(CONFIG_INTEL_MRFLD_PWRBTN)	+= mrfld_pwrbtn.o
37intel-target-$(CONFIG_INTEL_PUNIT_IPC)		+= punit_ipc.o
38
39# TPMI drivers
40intel-target-$(CONFIG_INTEL_PLR_TPMI)		+= plr_tpmi.o
41intel-target-$(CONFIG_INTEL_TPMI_POWER_DOMAINS)	+= tpmi_power_domains.o
42intel-target-$(CONFIG_INTEL_TPMI)		+= vsec_tpmi.o
43
44# Intel Uncore drivers
45intel-target-$(CONFIG_INTEL_RST)		+= rst.o
46intel-target-$(CONFIG_INTEL_SMARTCONNECT)	+= smartconnect.o
47intel-target-$(CONFIG_INTEL_TURBO_MAX_3)	+= turbo_max_3.o
48
49# Add 'intel' prefix to each module listed in intel-target-*
50define INTEL_OBJ_TARGET
51intel-$(1)-y := $(1).o
52obj-$(2) += intel-$(1).o
53endef
54
55$(foreach target, $(basename $(intel-target-y)), $(eval $(call INTEL_OBJ_TARGET,$(target),y)))
56$(foreach target, $(basename $(intel-target-m)), $(eval $(call INTEL_OBJ_TARGET,$(target),m)))
57