kernel_samsung_a34x-permissive/drivers/devfreq/helio-dvfsrc-v3/Makefile
2024-04-28 15:51:13 +02:00

85 lines
4.2 KiB
Makefile

#
# Copyright (C) 2019 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
ccflags-y += -Werror -I$(srctree)/drivers/devfreq
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/spm/$(MTK_PLATFORM)/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM)/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/include/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/
ccflags-y += -I$(srctree)/drivers/watchdog/mediatek/include/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM)/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/sspm/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/sspm/$(MTK_PLATFORM)/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/emi/$(MTK_PLATFORM)/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/emi/submodule/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/smi/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/$(CONFIG_MTK_PLATFORM)/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/mmp/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/mmdvfs/
ifneq (,$(filter $(CONFIG_MACH_MT6781), y))
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/qos/mt6781/
else
ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/qos/$(MTK_PLATFORM)/
endif
ccflags-y += -I$(srctree)/drivers/misc/mediatek/dbgtop/
ccflags-y += -I$(srctree)/drivers/watchdog/mediatek/include/
ccflags-y += -I$(srctree)/include/memory/mediatek/
ifneq (,$(filter $(CONFIG_MACH_MT6885), y))
ccflags-y += -DDVFSRC_SMC_CONTROL
endif
ifneq (,$(filter $(CONFIG_MACH_MT6873), y))
ccflags-y += -DDVFSRC_SMC_CONTROL
ccflags-y += -DDVFSRC_SUSPEND_SUPPORT
endif
ifneq (,$(filter $(CONFIG_MACH_MT6853), y))
ccflags-y += -DDVFSRC_SMC_CONTROL
ccflags-y += -DDVFSRC_SUSPEND_SUPPORT
endif
ifneq (,$(filter $(CONFIG_MACH_MT6893), y))
ccflags-y += -DDVFSRC_SMC_CONTROL
ccflags-y += -DDVFSRC_SUSPEND_SUPPORT
endif
ifneq (,$(filter $(CONFIG_MACH_MT6833), y))
ccflags-y += -DDVFSRC_SMC_CONTROL
ccflags-y += -DDVFSRC_SUSPEND_SUPPORT
endif
ifneq (,$(filter $(CONFIG_MACH_MT6877), y))
ccflags-y += -DDVFSRC_SMC_CONTROL
ccflags-y += -DDVFSRC_SUSPEND_SUPPORT
endif
ifneq (,$(filter $(CONFIG_MACH_MT6781), y))
ccflags-y += -DDVFSRC_SMC_CONTROL
ccflags-y += -DDVFSRC_SUSPEND_SUPPORT
endif
obj-y += helio-dvfsrc-qos.o helio-dvfsrc-sysfs.o helio-dvfsrc-opp.o
ifeq ($(CONFIG_MTK_DVFSRC_MT6781_PRETEST),y)
obj-$(CONFIG_MTK_DVFSRC_MT6781_PRETEST) += helio-dvfsrc-opp-v6781.o helio-dvfsrc-v6781.o helio-dvfsrc-ip-v2.o
else
obj-$(CONFIG_MACH_MT6785) += helio-dvfsrc-opp-mt6785.o helio-dvfsrc-mt6785.o helio-dvfsrc-ip-v2.o
endif
obj-$(CONFIG_MACH_MT6885) += helio-dvfsrc-opp-mt6885.o helio-dvfsrc-mt6885.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
obj-$(CONFIG_MACH_MT6873) += helio-dvfsrc-opp-mt6873.o helio-dvfsrc-mt6873.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
ifeq ($(CONFIG_MTK_DVFSRC_MT6833_PRETEST),y)
obj-$(CONFIG_MTK_DVFSRC_MT6833_PRETEST) += helio-dvfsrc-opp-mt6833.o helio-dvfsrc-mt6833.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
else ifeq ($(CONFIG_MTK_DVFSRC_MT6877_PRETEST),y)
obj-$(CONFIG_MTK_DVFSRC_MT6877_PRETEST) += helio-dvfsrc-opp-v6877.o helio-dvfsrc-v6877.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
else
obj-$(CONFIG_MACH_MT6853) += helio-dvfsrc-opp-mt6853.o helio-dvfsrc-mt6853.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
endif
obj-$(CONFIG_MACH_MT6893) += helio-dvfsrc-opp-mt6893.o helio-dvfsrc-mt6893.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
obj-$(CONFIG_MACH_MT6833) += helio-dvfsrc-opp-mt6833.o helio-dvfsrc-mt6833.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
obj-$(CONFIG_MACH_MT6877) += helio-dvfsrc-opp-v6877.o helio-dvfsrc-v6877.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o
obj-$(CONFIG_MACH_MT6781) += helio-dvfsrc-opp-v6781.o helio-dvfsrc-v6781.o helio-dvfsrc-ip-v2.o helio-dvfsrc-smc-control.o