From 07fc99faa097d60b1452c3683949e88a3458f62b Mon Sep 17 00:00:00 2001 From: j7b3y Date: Thu, 9 Jan 2025 13:16:57 +0900 Subject: [PATCH] add e1q Change-Id: I876c0623aaed2161ceaa9b3d06bed60cd558e52e --- qcom/opensource/display-drivers/msm/Kbuild | 36 +++++++++++++++++++ .../display-drivers/sec_panel_Kconfig | 6 ++++ 2 files changed, 42 insertions(+) diff --git a/qcom/opensource/display-drivers/msm/Kbuild b/qcom/opensource/display-drivers/msm/Kbuild index 8f827951d0..a05120cb14 100644 --- a/qcom/opensource/display-drivers/msm/Kbuild +++ b/qcom/opensource/display-drivers/msm/Kbuild @@ -274,6 +274,41 @@ msm_drm-$(CONFIG_DRM_MSM) += msm_atomic.o \ msm_smmu.o \ msm_prop.o +ifeq ($(CONFIG_SEC_E1Q_PROJECT), y) +include $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAE_AMB616FM01/E1_S6E3FAE_AMB616FM01.conf +ccflags-y += -include $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAE_AMB616FM01/E1_S6E3FAE_AMB616FM01.h + +XXD := /usr/bin/xxd +SED := /bin/sed + +#Translate .dat file to .h to cover the case which can not use request_firmware(Recovery Mode) +CLEAR_TMP := $(shell rm -f E1_S6E3FAE_AMB616FM01_PDF_DATA) +COPY_TO_HERE := $(shell cp -vf $(DISPLAY_ROOT)/msm/samsung/panel_data_file/E1_S6E3FAE_AMB616FM01.dat E1_S6E3FAE_AMB616FM01_PDF_DATA) +DATA_TO_HEX := $(shell $(XXD) -i E1_S6E3FAE_AMB616FM01_PDF_DATA > $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAE_AMB616FM01/E1_S6E3FAE_AMB616FM01_PDF.h) +ADD_NULL_CHR := $(shell $(SED) -i -e 's/\([0-9a-f]\)$$/\0, 0x00/' $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAE_AMB616FM01/E1_S6E3FAE_AMB616FM01_PDF.h) + +msm_drm-$(CONFIG_PANEL_E1_S6E3FAE_AMB616FM01_FHD) += samsung/E1_S6E3FAE_AMB616FM01/E1_S6E3FAE_AMB616FM01_panel.o + +include $(DISPLAY_ROOT)/msm/samsung/panel_common.conf +ccflags-y += -include $(DISPLAY_ROOT)/msm/samsung/panel_common_conf.h + +msm_drm-$(CONFIG_DISPLAY_SAMSUNG) += samsung/PBA_BOOTING/ss_dsi_panel_PBA_BOOTING_fhd.o +include $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAC_AMB606AW01/E1_S6E3FAC_AMB606AW01.conf +ccflags-y += -include $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAC_AMB606AW01/E1_S6E3FAC_AMB606AW01.h + +XXD := /usr/bin/xxd +SED := /bin/sed + +#Translate .dat file to .h to cover the case which can not use request_firmware(Recovery Mode) +CLEAR_TMP := $(shell rm -f E1_S6E3FAC_AMB606AW01_PDF_DATA) +COPY_TO_HERE := $(shell cp -vf $(DISPLAY_ROOT)/msm/samsung/panel_data_file/E1_S6E3FAC_AMB606AW01.dat E1_S6E3FAC_AMB606AW01_PDF_DATA) +DATA_TO_HEX := $(shell $(XXD) -i E1_S6E3FAC_AMB606AW01_PDF_DATA > $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAC_AMB606AW01/E1_S6E3FAC_AMB606AW01_PDF.h) +ADD_NULL_CHR := $(shell $(SED) -i -e 's/\([0-9a-f]\)$$/\0, 0x00/' $(DISPLAY_ROOT)/msm/samsung/E1_S6E3FAC_AMB606AW01/E1_S6E3FAC_AMB606AW01_PDF.h) + +msm_drm-$(CONFIG_PANEL_E1_S6E3FAC_AMB606AW01_FHD) += samsung/E1_S6E3FAC_AMB606AW01/E1_S6E3FAC_AMB606AW01_panel.o +endif + +ifeq ($(CONFIG_SEC_E3Q_PROJECT), y) include $(DISPLAY_ROOT)/msm/samsung/E3_S6E3HAE_AMB681AZ01/E3_S6E3HAE_AMB681AZ01.conf ccflags-y += -include $(DISPLAY_ROOT)/msm/samsung/E3_S6E3HAE_AMB681AZ01/E3_S6E3HAE_AMB681AZ01.h @@ -305,6 +340,7 @@ DATA_TO_HEX := $(shell $(XXD) -i E3_S6E3HAF_AMB679FN01_PDF_DATA > $(DISPLAY_ROOT ADD_NULL_CHR := $(shell $(SED) -i -e 's/\([0-9a-f]\)$$/\0, 0x00/' $(DISPLAY_ROOT)/msm/samsung/E3_S6E3HAF_AMB679FN01/E3_S6E3HAF_AMB679FN01_PDF.h) msm_drm-$(CONFIG_PANEL_E3_S6E3HAF_AMB679FN01_WQHD) += samsung/E3_S6E3HAF_AMB679FN01/E3_S6E3HAF_AMB679FN01_panel.o +endif include $(DISPLAY_ROOT)/msm/samsung/panel_common.conf ccflags-y += -include $(DISPLAY_ROOT)/msm/samsung/panel_common_conf.h diff --git a/qcom/opensource/display-drivers/sec_panel_Kconfig b/qcom/opensource/display-drivers/sec_panel_Kconfig index 71de089a04..6de2e3c30e 100644 --- a/qcom/opensource/display-drivers/sec_panel_Kconfig +++ b/qcom/opensource/display-drivers/sec_panel_Kconfig @@ -1,3 +1,9 @@ +config PANEL_E1_S6E3FAC_AMB606AW01_FHD + bool "LSI S6E3FAC LDI" + +config PANEL_E1_S6E3FAE_AMB616FM01_FHD + bool "LSI S6E3FAE LDI" + config PANEL_E3_S6E3HAE_AMB681AZ01_WQHD bool "LSI S6E3HAE LDI"