xref: /openbmc/linux/drivers/gpu/drm/msm/Kconfig (revision cd8a064f)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2c8afe684SRob Clark
3c8afe684SRob Clarkconfig DRM_MSM
4c8afe684SRob Clark	tristate "MSM DRM"
5c8afe684SRob Clark	depends on DRM
6b3ed524fSChristian König	depends on ARCH_QCOM || SOC_IMX5 || COMPILE_TEST
7afece15aSArnd Bergmann	depends on COMMON_CLK
8e319a1b9SArnd Bergmann	depends on IOMMU_SUPPORT
926c0b26dSBrian Masney	depends on QCOM_OCMEM || QCOM_OCMEM=n
105ea4dba6SArnd Bergmann	depends on QCOM_LLCC || QCOM_LLCC=n
115ea4dba6SArnd Bergmann	depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n
1224a96719SArnd Bergmann	depends on PM
13b145c6e6SJordan Crouse	select IOMMU_IO_PGTABLE
14bdab8e8bSArnd Bergmann	select QCOM_MDT_LOADER if ARCH_QCOM
15b7bbd640SRob Clark	select REGULATOR
16f5d01644SDmitry Baryshkov	select DRM_DP_AUX_BUS
171e0f6642SThomas Zimmermann	select DRM_DISPLAY_DP_HELPER
181e0f6642SThomas Zimmermann	select DRM_DISPLAY_HELPER
19c8afe684SRob Clark	select DRM_KMS_HELPER
203e87599bSRob Clark	select DRM_PANEL
2163885c16SRob Clark	select DRM_BRIDGE
2263885c16SRob Clark	select DRM_PANEL_BRIDGE
231d8a5ca4SRob Clark	select DRM_SCHED
24*cd8a064fSThomas Zimmermann	select FB_SYSMEM_HELPERS if DRM_FBDEV_EMULATION
25c8afe684SRob Clark	select SHMEM
26c8afe684SRob Clark	select TMPFS
27424953cfSArnd Bergmann	select QCOM_SCM
28c0fec7f5SJordan Crouse	select WANT_DEV_COREDUMP
29f1427016SSrinivas Kandagatla	select SND_SOC_HDMI_CODEC if SND_SOC
30f0a42bb5SRob Clark	select SYNC_FILE
31ac20fa0aSRob Clark	select PM_OPP
32f5b1a878SAkhil P Oommen	select NVMEM
33c11fa120SAkhil P Oommen	select PM_GENERIC_DOMAINS
34c8afe684SRob Clark	help
35c8afe684SRob Clark	  DRM/KMS driver for MSM/snapdragon.
36c8afe684SRob Clark
37b02872dfSJordan Crouseconfig DRM_MSM_GPU_STATE
38b02872dfSJordan Crouse	bool
39b02872dfSJordan Crouse	depends on DRM_MSM && (DEBUG_FS || DEV_COREDUMP)
40b02872dfSJordan Crouse	default y
41b02872dfSJordan Crouse
426a8bd08dSRob Clarkconfig DRM_MSM_GPU_SUDO
436a8bd08dSRob Clark	bool "Enable SUDO flag on submits"
446a8bd08dSRob Clark	depends on DRM_MSM && EXPERT
456a8bd08dSRob Clark	default n
466a8bd08dSRob Clark	help
476a8bd08dSRob Clark	  Enable userspace that has CAP_SYS_RAWIO to submit GPU commands
486a8bd08dSRob Clark	  that are run from RB instead of IB1.  This essentially gives
496a8bd08dSRob Clark	  userspace kernel level access, but is useful for firmware
506a8bd08dSRob Clark	  debugging.
516a8bd08dSRob Clark
526a8bd08dSRob Clark	  Only use this if you are a driver developer.  This should *not*
536a8bd08dSRob Clark	  be enabled for production kernels.  If unsure, say N.
546a8bd08dSRob Clark
55dc43e923SDmitry Baryshkovconfig DRM_MSM_MDSS
56dc43e923SDmitry Baryshkov	bool
57dc43e923SDmitry Baryshkov	depends on DRM_MSM
58dc43e923SDmitry Baryshkov	default n
59dc43e923SDmitry Baryshkov
60dc43e923SDmitry Baryshkovconfig DRM_MSM_MDP4
61dc43e923SDmitry Baryshkov	bool "Enable MDP4 support in MSM DRM driver"
62424953cfSArnd Bergmann	depends on DRM_MSM
63feb46f02SRob Clark	default y
64feb46f02SRob Clark	help
65dc43e923SDmitry Baryshkov	  Compile in support for the Mobile Display Processor v4 (MDP4) in
66dc43e923SDmitry Baryshkov	  the MSM DRM driver. It is the older display controller found in
67dc43e923SDmitry Baryshkov	  devices using APQ8064/MSM8960/MSM8x60 platforms.
68dc43e923SDmitry Baryshkov
69dc43e923SDmitry Baryshkovconfig DRM_MSM_MDP5
70dc43e923SDmitry Baryshkov	bool "Enable MDP5 support in MSM DRM driver"
71dc43e923SDmitry Baryshkov	depends on DRM_MSM
72dc43e923SDmitry Baryshkov	select DRM_MSM_MDSS
73dc43e923SDmitry Baryshkov	default y
74dc43e923SDmitry Baryshkov	help
75dc43e923SDmitry Baryshkov	  Compile in support for the Mobile Display Processor v5 (MDP5) in
76dc43e923SDmitry Baryshkov	  the MSM DRM driver. It is the display controller found in devices
77dc43e923SDmitry Baryshkov	  using e.g. APQ8016/MSM8916/APQ8096/MSM8996/MSM8974/SDM6x0 platforms.
78dc43e923SDmitry Baryshkov
79dc43e923SDmitry Baryshkovconfig DRM_MSM_DPU
80dc43e923SDmitry Baryshkov	bool "Enable DPU support in MSM DRM driver"
81dc43e923SDmitry Baryshkov	depends on DRM_MSM
82dc43e923SDmitry Baryshkov	select DRM_MSM_MDSS
83dc43e923SDmitry Baryshkov	default y
84dc43e923SDmitry Baryshkov	help
85dc43e923SDmitry Baryshkov	  Compile in support for the Display Processing Unit in
86dc43e923SDmitry Baryshkov	  the MSM DRM driver. It is the display controller found in devices
87dc43e923SDmitry Baryshkov	  using e.g. SDM845 and newer platforms.
88feb46f02SRob Clark
89c943b494SChandan Uddarajuconfig DRM_MSM_DP
90c943b494SChandan Uddaraju	bool "Enable DisplayPort support in MSM DRM driver"
91c943b494SChandan Uddaraju	depends on DRM_MSM
9253d22794SJackie Liu	select RATIONAL
9314975cffSChandan Uddaraju	default y
94c943b494SChandan Uddaraju	help
95c943b494SChandan Uddaraju	  Compile in support for DP driver in MSM DRM driver. DP external
96c943b494SChandan Uddaraju	  display support is enabled through this config option. It can
97c943b494SChandan Uddaraju	  be primary or secondary display on device.
98c943b494SChandan Uddaraju
99a689554bSHai Liconfig DRM_MSM_DSI
100a689554bSHai Li	bool "Enable DSI support in MSM DRM driver"
101a689554bSHai Li	depends on DRM_MSM
102a689554bSHai Li	select DRM_PANEL
103a689554bSHai Li	select DRM_MIPI_DSI
104a689554bSHai Li	default y
105a689554bSHai Li	help
106a689554bSHai Li	  Choose this option if you have a need for MIPI DSI connector
107a689554bSHai Li	  support.
108a689554bSHai Li
1091bf4d7c5SHai Liconfig DRM_MSM_DSI_28NM_PHY
1101bf4d7c5SHai Li	bool "Enable DSI 28nm PHY driver in MSM DRM"
1111bf4d7c5SHai Li	depends on DRM_MSM_DSI
1121bf4d7c5SHai Li	default y
1131bf4d7c5SHai Li	help
1141bf4d7c5SHai Li	  Choose this option if the 28nm DSI PHY is used on the platform.
1151bf4d7c5SHai Li
1161bf4d7c5SHai Liconfig DRM_MSM_DSI_20NM_PHY
1171bf4d7c5SHai Li	bool "Enable DSI 20nm PHY driver in MSM DRM"
1181bf4d7c5SHai Li	depends on DRM_MSM_DSI
1191bf4d7c5SHai Li	default y
1201bf4d7c5SHai Li	help
1211bf4d7c5SHai Li	  Choose this option if the 20nm DSI PHY is used on the platform.
122225380b3SArchit Taneja
123225380b3SArchit Tanejaconfig DRM_MSM_DSI_28NM_8960_PHY
124225380b3SArchit Taneja	bool "Enable DSI 28nm 8960 PHY driver in MSM DRM"
125225380b3SArchit Taneja	depends on DRM_MSM_DSI
126225380b3SArchit Taneja	default y
127225380b3SArchit Taneja	help
128225380b3SArchit Taneja	  Choose this option if the 28nm DSI PHY 8960 variant is used on the
129225380b3SArchit Taneja	  platform.
130f079f6d9SArchit Taneja
131f079f6d9SArchit Tanejaconfig DRM_MSM_DSI_14NM_PHY
132f079f6d9SArchit Taneja	bool "Enable DSI 14nm PHY driver in MSM DRM (used by MSM8996/APQ8096)"
133f079f6d9SArchit Taneja	depends on DRM_MSM_DSI
134f079f6d9SArchit Taneja	default y
135f079f6d9SArchit Taneja	help
136f079f6d9SArchit Taneja	  Choose this option if DSI PHY on 8996 is used on the platform.
137973e02dbSArchit Taneja
138973e02dbSArchit Tanejaconfig DRM_MSM_DSI_10NM_PHY
139973e02dbSArchit Taneja	bool "Enable DSI 10nm PHY driver in MSM DRM (used by SDM845)"
140973e02dbSArchit Taneja	depends on DRM_MSM_DSI
141973e02dbSArchit Taneja	default y
142973e02dbSArchit Taneja	help
143973e02dbSArchit Taneja	  Choose this option if DSI PHY on SDM845 is used on the platform.
1441ef7c99dSJonathan Marek
1451ef7c99dSJonathan Marekconfig DRM_MSM_DSI_7NM_PHY
1468b034e67SNeil Armstrong	bool "Enable DSI 7nm/5nm/4nm PHY driver in MSM DRM"
1471ef7c99dSJonathan Marek	depends on DRM_MSM_DSI
1481ef7c99dSJonathan Marek	default y
1491ef7c99dSJonathan Marek	help
1508b034e67SNeil Armstrong	  Choose this option if DSI PHY on SM8150/SM8250/SM8350/SM8450/SM8550/SC7280
1512f9ae4e3SDmitry Baryshkov	  is used on the platform.
152dc43e923SDmitry Baryshkov
153dc43e923SDmitry Baryshkovconfig DRM_MSM_HDMI
154dc43e923SDmitry Baryshkov	bool "Enable HDMI support in MSM DRM driver"
155dc43e923SDmitry Baryshkov	depends on DRM_MSM
156dc43e923SDmitry Baryshkov	default y
157dc43e923SDmitry Baryshkov	help
158dc43e923SDmitry Baryshkov	  Compile in support for the HDMI output MSM DRM driver. It can
159dc43e923SDmitry Baryshkov	  be a primary or a secondary display on device. Note that this is used
160dc43e923SDmitry Baryshkov	  only for the direct HDMI output. If the device outputs HDMI data
161e0e86f25SColin Ian King	  through some kind of DSI-to-HDMI bridge, this option can be disabled.
162dc43e923SDmitry Baryshkov
163dc43e923SDmitry Baryshkovconfig DRM_MSM_HDMI_HDCP
164dc43e923SDmitry Baryshkov	bool "Enable HDMI HDCP support in MSM DRM driver"
165dc43e923SDmitry Baryshkov	depends on DRM_MSM && DRM_MSM_HDMI
166dc43e923SDmitry Baryshkov	default y
167dc43e923SDmitry Baryshkov	help
168dc43e923SDmitry Baryshkov	  Choose this option to enable HDCP state machine
169