| ################################################################################ |
| # Include Path |
| ################################################################################ |
| MET_VCOREDVFS_INC := $(KERNEL_SRC)/drivers/misc/mediatek/base/power/include/vcorefs_v3 |
| MET_PTPOD_INC := $(KERNEL_SRC)/drivers/misc/mediatek/base/power/cpufreq_v1/src/mach/$(MTK_PLATFORM)/ |
| |
| |
| ################################################################################ |
| # Feature Spec |
| # CPUPMU_VERSION: V8_0/V8_2 |
| # EMI_SEDA_VERSION: SEDA2/SEDA3 |
| # EMI_DRAMC_VERSION: V1/V2 |
| ################################################################################ |
| CPUPMU_VERSION := V8_0 |
| EMI_SEDA_VERSION := SEDA2 |
| EMI_DRAMC_VERSION := V2 |
| |
| |
| ################################################################################ |
| # Feature On/Off |
| ################################################################################ |
| FEATURE_CPUDSU := n |
| FEATURE_SSPM_EMI := n |
| FEATURE_AP_EMI := y |
| FEATURE_THERMAL := y |
| FEATURE_GPU := n |
| FEATURE_VCOREDVFS := n |
| FEATURE_PTPOD := n |
| FEATURE_WALLTIME := n |
| FEATURE_ONDIEMET := n |
| FEATURE_ONDIEMET_WALLTIME := n |
| |
| |
| ################################################################################ |
| # MET_AP_EMI |
| ################################################################################ |
| $(info FEATURE_AP_EMI = $(FEATURE_AP_EMI)) |
| $(info EMI_SEDA_VERSION = $(EMI_SEDA_VERSION)) |
| $(info EMI_DRAMC_VERSION = $(EMI_DRAMC_VERSION)) |
| |
| MET_AP_EMI := $(if $(filter n,$(FEATURE_AP_EMI)),n,y) |
| ifeq ($(MET_AP_EMI), y) |
| ccflags-y += -I$(KERNEL_SRC)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM)/ |
| ccflags-y += -I$(MET_PLF_DIR)/dramc/V2/ |
| |
| met-$(MET_AP_EMI) += $(MTK_PLATFORM)/emi/SEDA2/met_emi.o |
| met-$(MET_AP_EMI) += $(MTK_PLATFORM)/emi/SEDA2/mtk_emi_bm.o |
| met-$(MET_AP_EMI) += $(MTK_PLATFORM)/dramc/V2/mtk_dramc.o |
| endif |
| |
| |
| ################################################################################ |
| # MET_THERMAL |
| ################################################################################ |
| FEATURE_THERMAL := $(if $(FEATURE_THERMAL),$(FEATURE_THERMAL),y) |
| $(info FEATURE_THERMAL = $(FEATURE_THERMAL)) |
| |
| ifneq ($(FEATURE_THERMAL), n) |
| ifeq ($(CONFIG_THERMAL),y) |
| MET_THERMAL := y |
| |
| # for mtk_thermal.h |
| ifneq ("$(wildcard $(KERNEL_SRC)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach/mtk_thermal.h)","") |
| ccflags-y += -I$(KERNEL_SRC)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach/ |
| else |
| MET_THERMAL = n |
| $(info ======== Missing $(KERNEL_SRC)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach/mtk_thermal.h ========) |
| |
| $(info ======== disable MET_THERMAL ========) |
| endif |
| |
| # for mtk_thermal_monitor.h |
| ifneq ("$(wildcard $(KERNEL_SRC)/drivers/misc/mediatek/include/mt-plat/mtk_thermal_monitor.h)","") |
| ccflags-y += -I$(KERNEL_SRC)/drivers/misc/mediatek/include/mt-plat/ |
| else |
| MET_THERMAL = n |
| $(info ======== Missing $(KERNEL_SRC)/drivers/misc/mediatek/include/mt-plat/mtk_thermal_monitor.h ========) |
| $(info ======== disable MET_THERMAL ========) |
| endif |
| else |
| $(info ======== CONFIG_THERMAL $(CONFIG_THERMAL) ========) |
| $(info ======== disable MET_THERMAL ========) |
| MET_THERMAL := n |
| endif |
| else |
| MET_THERMAL := n |
| endif |
| |
| met-$(MET_THERMAL) += $(MTK_PLATFORM)/met_thermal.o |