24 lines
953 B
Makefile
24 lines
953 B
Makefile
|
subdir-ccflags-y += -Wall -Werror
|
||
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
||
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/typec/tcpc/inc
|
||
|
subdir-ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/charger
|
||
|
subdir-ccflags-y += -I$(srctree)/drivers/power/supply/mediatek/misc
|
||
|
else
|
||
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/power/mt6757
|
||
|
endif
|
||
|
|
||
|
obj-$(CONFIG_MFD_MT6370_PMU) += mt6370_pmu_i2c.o mt6370_pmu_regmap.o\
|
||
|
mt6370_pmu_irq.o mt6370_pmu_subdevs.o\
|
||
|
mt6370_pmu_core.o
|
||
|
obj-$(CONFIG_MT6370_PMU_LDO) += mt6370_pmu_ldo.o
|
||
|
obj-$(CONFIG_MT6370_PMU_DSV) += mt6370_pmu_dsv.o mt6370_pmu_dsv_debugfs.o
|
||
|
obj-$(CONFIG_MT6370_PMU_FLED) += mt6370_pmu_fled.o
|
||
|
obj-$(CONFIG_MT6370_PMU_BLED) += mt6370_pmu_bled.o
|
||
|
obj-$(CONFIG_MT6370_PMU_RGBLED) += mt6370_pmu_rgbled.o
|
||
|
|
||
|
ifeq ($(CONFIG_MTK_GAUGE_VERSION),30)
|
||
|
obj-$(CONFIG_MT6370_PMU_CHARGER) += mt6370_pmu_charger.o
|
||
|
else
|
||
|
obj-$(CONFIG_MT6370_PMU_CHARGER) += mt6370_pmu_charger_gm20.o
|
||
|
endif
|