#
# Copyright (C) 2018 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.
#

#EAS_CONTROLLER
MTK_TOP = $(srctree)/drivers/misc/mediatek/
ccflags-y += \
	-I$(MTK_TOP)/base/power/include/ \
	-I$(MTK_TOP)/base/power/$(MTK_PLATFORM)/ \
	-I$(MTK_TOP)/dramc/$(MTK_PLATFORM)/ \
	-I$(srctree)/drivers/misc/mediatek/performance/boost_ctrl/include/ \
	-I$(srctree)/drivers/misc/mediatek/include/mt-plat/

ifeq ($(CONFIG_MACH_MT6893),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6885),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6877),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6781),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6739),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6833),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6768),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6853),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6873),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6771),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
else ifeq ($(CONFIG_MACH_MT6785),y)
ccflags-y += \
		-DMTK_K14_EAS_BOOST
endif

obj-y += eas_ctrl.o uclamp_ctrl.o
