From f9a823d55098c24c164b12c4d885be28126389ab Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sun, 3 Aug 2025 13:18:05 +0530 Subject: [PATCH] qcom: display-drivers: Add oplus flags to Kbuild Change-Id: I6226a5b061459382f7097db21d44c9f48eb5b899 --- .../display-drivers/config/gki_sundisp.conf | 1 + .../display-drivers/config/gki_sundispconf.h | 1 + qcom/opensource/display-drivers/msm/Kbuild | 31 +++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/qcom/opensource/display-drivers/config/gki_sundisp.conf b/qcom/opensource/display-drivers/config/gki_sundisp.conf index 3d7b2e3d53..b3281f6d43 100644 --- a/qcom/opensource/display-drivers/config/gki_sundisp.conf +++ b/qcom/opensource/display-drivers/config/gki_sundisp.conf @@ -8,6 +8,7 @@ export OPLUS_FEATURE_DISPLAY_HIGH_PRECISION=y export OPLUS_FEATURE_DISPLAY_TEMP_COMPENSATION=y export OPLUS_FEATURE_DISPLAY_ONSCREENFINGERPRINT=y export OPLUS_TRACKPOINT_REPORT=y +export OPLUS_FEATURE_APDMR=y #endif /* OPLUS_FEATURE_DISPLAY */ #ifdef OPLUS_FEATURE_TP_BASIC export OPLUS_FEATURE_TP_BASIC=y diff --git a/qcom/opensource/display-drivers/config/gki_sundispconf.h b/qcom/opensource/display-drivers/config/gki_sundispconf.h index b9abe5b56b..a0493cebad 100644 --- a/qcom/opensource/display-drivers/config/gki_sundispconf.h +++ b/qcom/opensource/display-drivers/config/gki_sundispconf.h @@ -10,6 +10,7 @@ #define OPLUS_FEATURE_DISPLAY_TEMP_COMPENSATION 1 #define OPLUS_FEATURE_DISPLAY_ONSCREENFINGERPRINT 1 #define OPLUS_TRACKPOINT_REPORT 1 +#define OPLUS_FEATURE_APDMR 1 //#endif /* OPLUS_FEATURE_DISPLAY */ //#ifdef OPLUS_FEATURE_TP_BASIC #define OPLUS_FEATURE_TP_BASIC 1 diff --git a/qcom/opensource/display-drivers/msm/Kbuild b/qcom/opensource/display-drivers/msm/Kbuild index 0dade100dd..e6f7cfe9a5 100644 --- a/qcom/opensource/display-drivers/msm/Kbuild +++ b/qcom/opensource/display-drivers/msm/Kbuild @@ -289,3 +289,34 @@ msm_drm-$(CONFIG_DRM_MSM) += msm_atomic.o \ msm_gem_vma.o \ msm_smmu.o \ msm_prop.o + +msm_drm-$(OPLUS_FEATURE_DISPLAY) += \ + ../oplus/SM8750/oplus_display_utils.o \ + ../oplus/SM8750/oplus_display_sysfs_attrs.o \ + ../oplus/SM8750/oplus_display_dc_diming.o \ + ../oplus/SM8750/oplus_display_ffl.o \ + ../oplus/SM8750/oplus_display_device.o \ + ../oplus/SM8750/oplus_display_proc.o \ + ../oplus/SM8750/oplus_display_power.o \ + ../oplus/SM8750/oplus_display_effect.o \ + ../oplus/SM8750/oplus_display_device_ioctl.o \ + ../oplus/SM8750/oplus_display_bl.o \ + ../oplus/SM8750/oplus_display_interface.o \ + ../oplus/SM8750/oplus_display_pwm.o \ + ../oplus/SM8750/oplus_display_parse.o \ + ../oplus/SM8750/oplus_display_panel_cmd.o \ + ../oplus/SM8750/oplus_display_ext.o \ + ../oplus/SM8750/oplus_display_esd.o \ + ../oplus/SM8750/oplus_bl_ic_ktz8868.o + +msm_drm-$(OPLUS_FEATURE_DISPLAY_ADFR) += ../oplus/SM8750/oplus_adfr.o + +msm_drm-$(OPLUS_FEATURE_DISPLAY_TEMP_COMPENSATION) += ../oplus/SM8750/oplus_display_temp_compensation.o + +msm_drm-$(OPLUS_FEATURE_DISPLAY_ONSCREENFINGERPRINT) += ../oplus/SM8750/oplus_onscreenfingerprint.o + +msm_drm-$(OPLUS_FEATURE_TP_BASIC) += ../oplus/SM8750/oplus_display_notify_tp.o + +ccflags-$(OPLUS_FEATURE_DISPLAY) += \ + -I$(DISPLAY_ROOT)/oplus/SM8750 \ + -I$(DISPLAY_ROOT)/oplus/SM8750/include \