123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- subdir-ccflags-y += -Werror
- mediatek-drm-y := mtk_drm_drv.o \
- mtk_disp_color.o \
- mtk_disp_ccorr.o \
- mtk_disp_gamma.o \
- mtk_disp_aal.o \
- mtk_disp_dither.o \
- mtk_disp_ovl.o \
- mtk_disp_rdma.o \
- mtk_disp_rsz.o \
- mtk_disp_wdma.o \
- mtk_drm_crtc.o \
- mtk_drm_ddp.o \
- mtk_drm_ddp_addon.o \
- mtk_drm_ddp_comp.o \
- mtk_drm_fb.o \
- mtk_drm_gem.o \
- mtk_drm_plane.o \
- mtk_dsi.o \
- mtk_mipi_tx.o \
- mtk_writeback.o \
- mtk_sync.o \
- mtk_fence.o \
- mtk_drm_session.o \
- mtk_dump.o \
- mtk_debug.o \
- mtk_layering_rule.o \
- mtk_layering_rule_base.o \
- mtk_rect.o \
- mtk_drm_mmp.o \
- mtk_drm_trace.o \
- mtk_panel_ext.o \
- mtk_drm_helper.o \
- mtk_drm_lowpower.o \
- mtk_disp_postmask.o \
- mtk_drm_assert.o \
- mtk_drm_fbconsole.o \
- mtk_disp_recovery.o \
- mtk_disp_pmqos.o \
- mtk_disp_dsc.o \
- mtk_drm_arr.o \
- mtk_disp_merge.o \
- mtk_dmdp_aal.o \
- mtk_fbconfig_kdebug.o
- ifeq ($(CONFIG_DRM_MEDIATEK_DEBUG_FS),y)
- mediatek-drm-y += mtk_drm_debugfs.o
- endif
- ifeq ($(CONFIG_MTK_HDMI_SUPPORT), y)
- obj-y += mtk_dp_intf.o \
- mtk_dp.o \
- mtk_dp_hal.o \
- mtk_dp_debug.o
- ifeq (yy, $(CONFIG_MTK_TEE_GP_SUPPORT)$(CONFIG_TRUSTONIC_TEE_SUPPORT))
- obj-y += ca/
- ccflags-y += -DDPTX_HDCP_ENABLE
- obj-y += mtk_dp_hdcp1x.o \
- mtk_dp_hdcp2.o
- endif
- endif
- mediatek-drm-$(CONFIG_DRM_FBDEV_EMULATION) += mtk_drm_fbdev.o
- obj-$(CONFIG_DRM_MEDIATEK) += mediatek-drm.o
- mediatek-drm-hdmi-objs := mtk_cec.o \
- mtk_hdmi.o \
- mtk_hdmi_ddc.o \
- mtk_mt8173_hdmi_phy.o
- obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o \
- mtk_dpi.o \
- mtk_lvds.o \
- mtk_lvds_phy.o
- ccflags-y += -I$(srctree)/drivers/misc/mediatek/dramc/$(MTK_PLATFORM) \
- -I$(srctree)/drivers/misc/mediatek/smi/ \
- -I$(srctree)/drivers/misc/mediatek/mmp/ \
- -I$(srctree)/drivers/misc/mediatek/mmdvfs/ \
- -I$(srctree)/drivers/iommu/ \
- -I$(srctree)/drivers/devfreq/ \
- -I$(srctree)/drivers/gpu/drm/ \
- -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach/ \
- -I$(srctree)/drivers/misc/mediatek/include/mt-plat \
- -I$(srctree)/drivers/misc/mediatek/leds/ \
- -I$(srctree)/drivers/misc/mediatek/leds/$(MTK_PLATFORM) \
- -I$(srctree)/drivers/misc/mediatek/cmdq/mailbox/
- ccflags-$(CONFIG_MTK_CMDQ_MBOX_EXT) += -I$(srctree)/drivers/misc/mediatek/cmdq/mailbox
- subdir-ccflags-y += -I$(srctree)/drivers/staging/android/ion/ \
- -I$(srctree)/drivers/staging/android/ion/mtk
- ifeq (y, $(filter y, $(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT6893) $(CONFIG_MACH_MT6873) $(CONFIG_MACH_MT6853)))
- ccflags-y += -DDRM_MMPATH
- ccflags-y += -DNOT_SUPPORT_CABC_HW
- ccflags-y += -DDISP_MDP_COLOR_ON
- ccflags-y += -DCCORR_SUPPORT
- endif
- ifeq (y, $(filter y, $(CONFIG_MACH_MT6833)))
- ccflags-y += -DNOT_SUPPORT_CABC_HW
- ccflags-y += -DDISP_MDP_COLOR_ON
- ccflags-y += -DCCORR_SUPPORT
- endif
|