| MET_PLF := $(MTK_PLATFORM) |
| |
| met-y += $(MET_PLF)/plf_trace.o |
| |
| ################################################################################ |
| # MET_AP_EMI |
| ################################################################################ |
| FEATURE_AP_EMI := $(if $(FEATURE_AP_EMI),$(FEATURE_AP_EMI),y) |
| $(info FEATURE_AP_EMI = $(FEATURE_AP_EMI)) |
| ifneq ($(FEATURE_AP_EMI), n) |
| MET_AP_EMI := y |
| # for mtk_dramc.h |
| ifneq ("$(wildcard $(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM)/mtk_dramc.h)","") |
| ccflags-y += -I$(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM)/ |
| else |
| MET_AP_EMI = n |
| $(info ======== Missing $(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM)/mtk_dramc.h ========) |
| $(info ======== disable MET_AP_EMI ========) |
| endif |
| else |
| MET_AP_EMI := n |
| endif |
| |
| $(info EMI_SEDA_VERSION = $(EMI_SEDA_VERSION)) |
| $(info EMI_DRAMC_VERSION = $(EMI_DRAMC_VERSION)) |
| ifeq ("$(EMI_DRAMC_VERSION)", "V1") |
| ccflags-y += -I$(MET_PLF_DIR)/dramc/V1/ |
| met-$(MET_AP_EMI) += $(MET_PLF)/dramc/V1/mtk_dramc.o |
| endif |
| ifeq ("$(EMI_DRAMC_VERSION)", "V2") |
| ccflags-y += -I$(MET_PLF_DIR)/dramc/V2/ |
| met-$(MET_AP_EMI) += $(MET_PLF)/dramc/V2/mtk_dramc.o |
| endif |
| ifeq ("$(EMI_SEDA_VERSION)", "SEDA2") |
| met-$(MET_AP_EMI) += $(MET_PLF)/emi/SEDA2/met_emi.o |
| met-$(MET_AP_EMI) += $(MET_PLF)/emi/SEDA2/mtk_emi_bm.o |
| endif |
| ifeq ("$(EMI_SEDA_VERSION)", "SEDA3") |
| met-$(MET_AP_EMI) += $(MET_PLF)/emi/SEDA3/met_emi.o |
| met-$(MET_AP_EMI) += $(MET_PLF)/emi/SEDA3/mtk_emi_bm.o |
| endif |
| ifeq ("$(EMI_SEDA_VERSION)", "SEDA3_5") |
| met-$(MET_AP_EMI) += $(MET_PLF)/emi/SEDA3_5/met_emi.o |
| met-$(MET_AP_EMI) += $(MET_PLF)/emi/SEDA3_5/mtk_emi_bm.o |
| endif |