Loading...
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-hid-y := hid.o
21obj-$(CONFIG_INTEL_HID_EVENT) += intel-hid.o
22intel-vbtn-y := vbtn.o
23obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o
24
25# Intel miscellaneous drivers
26obj-$(CONFIG_INTEL_ISHTP_ECLITE) += ishtp_eclite.o
27intel_int0002_vgpio-y := int0002_vgpio.o
28obj-$(CONFIG_INTEL_INT0002_VGPIO) += intel_int0002_vgpio.o
29intel_oaktrail-y := oaktrail.o
30obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o
31intel_sdsi-y := sdsi.o
32obj-$(CONFIG_INTEL_SDSI) += intel_sdsi.o
33intel_vsec-y := vsec.o
34obj-$(CONFIG_INTEL_VSEC) += intel_vsec.o
35
36# Intel PMIC / PMC / P-Unit drivers
37intel_bxtwc_tmu-y := bxtwc_tmu.o
38obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += intel_bxtwc_tmu.o
39intel_crystal_cove_charger-y := crystal_cove_charger.o
40obj-$(CONFIG_X86_ANDROID_TABLETS) += intel_crystal_cove_charger.o
41intel_chtdc_ti_pwrbtn-y := chtdc_ti_pwrbtn.o
42obj-$(CONFIG_INTEL_CHTDC_TI_PWRBTN) += intel_chtdc_ti_pwrbtn.o
43intel_chtwc_int33fe-y := chtwc_int33fe.o
44obj-$(CONFIG_INTEL_CHTWC_INT33FE) += intel_chtwc_int33fe.o
45intel_mrfld_pwrbtn-y := mrfld_pwrbtn.o
46obj-$(CONFIG_INTEL_MRFLD_PWRBTN) += intel_mrfld_pwrbtn.o
47intel_punit_ipc-y := punit_ipc.o
48obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o
49
50# Intel Uncore drivers
51intel-rst-y := rst.o
52obj-$(CONFIG_INTEL_RST) += intel-rst.o
53intel-smartconnect-y := smartconnect.o
54obj-$(CONFIG_INTEL_SMARTCONNECT) += intel-smartconnect.o
55intel_turbo_max_3-y := turbo_max_3.o
56obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o
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)))