Skip to content

Commit

Permalink
config: Add configurations for Sony Open Devices
Browse files Browse the repository at this point in the history
We currently use a common configuration across all of the
supported platforms in Sony Open Devices.
  • Loading branch information
kholk committed Aug 3, 2020
1 parent 96f5629 commit abb390d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only

# auto-detect subdirs
ifeq ($(CONFIG_DISP_QCOM_REFERENCE_PLATFORMS),y)
ifeq ($(CONFIG_ARCH_KONA), y)
include $(srctree)/techpack/display/config/konadisp.conf
endif
Expand All @@ -24,6 +25,19 @@ endif
ifeq ($(CONFIG_ARCH_BENGAL), y)
LINUXINCLUDE += -include $(srctree)/techpack/display/config/bengaldispconf.h
endif
endif # CONFIG_DISP_QCOM_REFERENCE_PLATFORMS


ifneq ($(CONFIG_DISP_TARGET_NO_DISPLAY), y)
include $(srctree)/techpack/display/config/sony/disp_common.conf
LINUXINCLUDE += -include $(srctree)/techpack/display/config/sony/disp_common.h

ifneq ($(CONFIG_DISP_TARGET_DISABLE_DISPLAYPORT), y)
include $(srctree)/techpack/display/config/sony/disp_displayport.conf
LINUXINCLUDE += -include $(srctree)/techpack/display/config/sony/disp_displayport.h
endif

endif # !CONFIG_DISP_TARGET_NO_DISPLAY

obj-$(CONFIG_DRM_MSM) += msm/
obj-$(CONFIG_MSM_SDE_ROTATOR) += rotator/
Expand Down
12 changes: 12 additions & 0 deletions config/sony/disp_common.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export CONFIG_DRM_MSM=y
export CONFIG_DRM_MSM_SDE=y
export CONFIG_SYNC_FILE=y
export CONFIG_DRM_MSM_DSI=y
export CONFIG_DSI_PARSER=y
export CONFIG_DRM_SDE_WB=y
export CONFIG_QCOM_MDSS_PLL=y
export CONFIG_MSM_SDE_ROTATOR=y
export CONFIG_DRM_SDE_RSC=y
export CONFIG_DRM_SDE_SPECIFIC_PANEL=y
export CONFIG_DRM_MSM_DSI_SOMC_PANEL=y
export CONFIG_SOMC_PANEL_INCELL=y
14 changes: 14 additions & 0 deletions config/sony/disp_common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */

#define CONFIG_DRM_MSM 1
#define CONFIG_DRM_MSM_SDE 1
#define CONFIG_SYNC_FILE 1
#define CONFIG_DRM_MSM_DSI 1
#define CONFIG_DSI_PARSER 1
#define CONFIG_DRM_SDE_WB 1
#define CONFIG_QCOM_MDSS_PLL 1
#define CONFIG_MSM_SDE_ROTATOR 1
#define CONFIG_DRM_SDE_RSC 1
#define CONFIG_DRM_SDE_SPECIFIC_PANEL 1
#define CONFIG_DRM_MSM_DSI_SOMC_PANEL 1
#define CONFIG_SOMC_PANEL_INCELL 1
3 changes: 3 additions & 0 deletions config/sony/disp_displayport.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export CONFIG_DRM_MSM_DP=y
export CONFIG_QCOM_MDSS_DP_PLL=y
export CONFIG_DRM_MSM_DP_SOMC_PANEL=y
5 changes: 5 additions & 0 deletions config/sony/disp_displayport.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */

#define CONFIG_DRM_MSM_DP 1
#define CONFIG_QCOM_MDSS_DP_PLL 1
#define CONFIG_DRM_MSM_DP_SOMC_PANEL 1

0 comments on commit abb390d

Please sign in to comment.