xref: /openbmc/linux/drivers/gpu/drm/msm/Kconfig (revision dc43e923)
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
12b145c6e6SJordan Crouse	select IOMMU_IO_PGTABLE
13bdab8e8bSArnd Bergmann	select QCOM_MDT_LOADER if ARCH_QCOM
14b7bbd640SRob Clark	select REGULATOR
15adb9d5a2SThomas Zimmermann	select DRM_DP_HELPER
16c8afe684SRob Clark	select DRM_KMS_HELPER
173e87599bSRob Clark	select DRM_PANEL
1863885c16SRob Clark	select DRM_BRIDGE
1963885c16SRob Clark	select DRM_PANEL_BRIDGE
201d8a5ca4SRob Clark	select DRM_SCHED
21c8afe684SRob Clark	select SHMEM
22c8afe684SRob Clark	select TMPFS
23424953cfSArnd Bergmann	select QCOM_SCM
24c0fec7f5SJordan Crouse	select WANT_DEV_COREDUMP
25f1427016SSrinivas Kandagatla	select SND_SOC_HDMI_CODEC if SND_SOC
26f0a42bb5SRob Clark	select SYNC_FILE
27ac20fa0aSRob Clark	select PM_OPP
28f5b1a878SAkhil P Oommen	select NVMEM
29c8afe684SRob Clark	help
30c8afe684SRob Clark	  DRM/KMS driver for MSM/snapdragon.
31c8afe684SRob Clark
32b02872dfSJordan Crouseconfig DRM_MSM_GPU_STATE
33b02872dfSJordan Crouse	bool
34b02872dfSJordan Crouse	depends on DRM_MSM && (DEBUG_FS || DEV_COREDUMP)
35b02872dfSJordan Crouse	default y
36b02872dfSJordan Crouse
376a8bd08dSRob Clarkconfig DRM_MSM_GPU_SUDO
386a8bd08dSRob Clark	bool "Enable SUDO flag on submits"
396a8bd08dSRob Clark	depends on DRM_MSM && EXPERT
406a8bd08dSRob Clark	default n
416a8bd08dSRob Clark	help
426a8bd08dSRob Clark	  Enable userspace that has CAP_SYS_RAWIO to submit GPU commands
436a8bd08dSRob Clark	  that are run from RB instead of IB1.  This essentially gives
446a8bd08dSRob Clark	  userspace kernel level access, but is useful for firmware
456a8bd08dSRob Clark	  debugging.
466a8bd08dSRob Clark
476a8bd08dSRob Clark	  Only use this if you are a driver developer.  This should *not*
486a8bd08dSRob Clark	  be enabled for production kernels.  If unsure, say N.
496a8bd08dSRob Clark
50*dc43e923SDmitry Baryshkovconfig DRM_MSM_MDSS
51*dc43e923SDmitry Baryshkov	bool
52*dc43e923SDmitry Baryshkov	depends on DRM_MSM
53*dc43e923SDmitry Baryshkov	default n
54*dc43e923SDmitry Baryshkov
55*dc43e923SDmitry Baryshkovconfig DRM_MSM_MDP4
56*dc43e923SDmitry Baryshkov	bool "Enable MDP4 support in MSM DRM driver"
57424953cfSArnd Bergmann	depends on DRM_MSM
58feb46f02SRob Clark	default y
59feb46f02SRob Clark	help
60*dc43e923SDmitry Baryshkov	  Compile in support for the Mobile Display Processor v4 (MDP4) in
61*dc43e923SDmitry Baryshkov	  the MSM DRM driver. It is the older display controller found in
62*dc43e923SDmitry Baryshkov	  devices using APQ8064/MSM8960/MSM8x60 platforms.
63*dc43e923SDmitry Baryshkov
64*dc43e923SDmitry Baryshkovconfig DRM_MSM_MDP5
65*dc43e923SDmitry Baryshkov	bool "Enable MDP5 support in MSM DRM driver"
66*dc43e923SDmitry Baryshkov	depends on DRM_MSM
67*dc43e923SDmitry Baryshkov	select DRM_MSM_MDSS
68*dc43e923SDmitry Baryshkov	default y
69*dc43e923SDmitry Baryshkov	help
70*dc43e923SDmitry Baryshkov	  Compile in support for the Mobile Display Processor v5 (MDP5) in
71*dc43e923SDmitry Baryshkov	  the MSM DRM driver. It is the display controller found in devices
72*dc43e923SDmitry Baryshkov	  using e.g. APQ8016/MSM8916/APQ8096/MSM8996/MSM8974/SDM6x0 platforms.
73*dc43e923SDmitry Baryshkov
74*dc43e923SDmitry Baryshkovconfig DRM_MSM_DPU
75*dc43e923SDmitry Baryshkov	bool "Enable DPU support in MSM DRM driver"
76*dc43e923SDmitry Baryshkov	depends on DRM_MSM
77*dc43e923SDmitry Baryshkov	select DRM_MSM_MDSS
78*dc43e923SDmitry Baryshkov	default y
79*dc43e923SDmitry Baryshkov	help
80*dc43e923SDmitry Baryshkov	  Compile in support for the Display Processing Unit in
81*dc43e923SDmitry Baryshkov	  the MSM DRM driver. It is the display controller found in devices
82*dc43e923SDmitry Baryshkov	  using e.g. SDM845 and newer platforms.
83feb46f02SRob Clark
84c943b494SChandan Uddarajuconfig DRM_MSM_DP
85c943b494SChandan Uddaraju	bool "Enable DisplayPort support in MSM DRM driver"
86c943b494SChandan Uddaraju	depends on DRM_MSM
8753d22794SJackie Liu	select RATIONAL
8814975cffSChandan Uddaraju	default y
89c943b494SChandan Uddaraju	help
90c943b494SChandan Uddaraju	  Compile in support for DP driver in MSM DRM driver. DP external
91c943b494SChandan Uddaraju	  display support is enabled through this config option. It can
92c943b494SChandan Uddaraju	  be primary or secondary display on device.
93c943b494SChandan Uddaraju
94a689554bSHai Liconfig DRM_MSM_DSI
95a689554bSHai Li	bool "Enable DSI support in MSM DRM driver"
96a689554bSHai Li	depends on DRM_MSM
97a689554bSHai Li	select DRM_PANEL
98a689554bSHai Li	select DRM_MIPI_DSI
99a689554bSHai Li	default y
100a689554bSHai Li	help
101a689554bSHai Li	  Choose this option if you have a need for MIPI DSI connector
102a689554bSHai Li	  support.
103a689554bSHai Li
1041bf4d7c5SHai Liconfig DRM_MSM_DSI_28NM_PHY
1051bf4d7c5SHai Li	bool "Enable DSI 28nm PHY driver in MSM DRM"
1061bf4d7c5SHai Li	depends on DRM_MSM_DSI
1071bf4d7c5SHai Li	default y
1081bf4d7c5SHai Li	help
1091bf4d7c5SHai Li	  Choose this option if the 28nm DSI PHY is used on the platform.
1101bf4d7c5SHai Li
1111bf4d7c5SHai Liconfig DRM_MSM_DSI_20NM_PHY
1121bf4d7c5SHai Li	bool "Enable DSI 20nm PHY driver in MSM DRM"
1131bf4d7c5SHai Li	depends on DRM_MSM_DSI
1141bf4d7c5SHai Li	default y
1151bf4d7c5SHai Li	help
1161bf4d7c5SHai Li	  Choose this option if the 20nm DSI PHY is used on the platform.
117225380b3SArchit Taneja
118225380b3SArchit Tanejaconfig DRM_MSM_DSI_28NM_8960_PHY
119225380b3SArchit Taneja	bool "Enable DSI 28nm 8960 PHY driver in MSM DRM"
120225380b3SArchit Taneja	depends on DRM_MSM_DSI
121225380b3SArchit Taneja	default y
122225380b3SArchit Taneja	help
123225380b3SArchit Taneja	  Choose this option if the 28nm DSI PHY 8960 variant is used on the
124225380b3SArchit Taneja	  platform.
125f079f6d9SArchit Taneja
126f079f6d9SArchit Tanejaconfig DRM_MSM_DSI_14NM_PHY
127f079f6d9SArchit Taneja	bool "Enable DSI 14nm PHY driver in MSM DRM (used by MSM8996/APQ8096)"
128f079f6d9SArchit Taneja	depends on DRM_MSM_DSI
129f079f6d9SArchit Taneja	default y
130f079f6d9SArchit Taneja	help
131f079f6d9SArchit Taneja	  Choose this option if DSI PHY on 8996 is used on the platform.
132973e02dbSArchit Taneja
133973e02dbSArchit Tanejaconfig DRM_MSM_DSI_10NM_PHY
134973e02dbSArchit Taneja	bool "Enable DSI 10nm PHY driver in MSM DRM (used by SDM845)"
135973e02dbSArchit Taneja	depends on DRM_MSM_DSI
136973e02dbSArchit Taneja	default y
137973e02dbSArchit Taneja	help
138973e02dbSArchit Taneja	  Choose this option if DSI PHY on SDM845 is used on the platform.
1391ef7c99dSJonathan Marek
1401ef7c99dSJonathan Marekconfig DRM_MSM_DSI_7NM_PHY
1416af92798SRajeev Nandan	bool "Enable DSI 7nm PHY driver in MSM DRM"
1421ef7c99dSJonathan Marek	depends on DRM_MSM_DSI
1431ef7c99dSJonathan Marek	default y
1441ef7c99dSJonathan Marek	help
1456af92798SRajeev Nandan	  Choose this option if DSI PHY on SM8150/SM8250/SC7280 is used on
1466af92798SRajeev Nandan	  the platform.
147*dc43e923SDmitry Baryshkov
148*dc43e923SDmitry Baryshkovconfig DRM_MSM_HDMI
149*dc43e923SDmitry Baryshkov	bool "Enable HDMI support in MSM DRM driver"
150*dc43e923SDmitry Baryshkov	depends on DRM_MSM
151*dc43e923SDmitry Baryshkov	default y
152*dc43e923SDmitry Baryshkov	help
153*dc43e923SDmitry Baryshkov	  Compile in support for the HDMI output MSM DRM driver. It can
154*dc43e923SDmitry Baryshkov	  be a primary or a secondary display on device. Note that this is used
155*dc43e923SDmitry Baryshkov	  only for the direct HDMI output. If the device outputs HDMI data
156*dc43e923SDmitry Baryshkov	  throught some kind of DSI-to-HDMI bridge, this option can be disabled.
157*dc43e923SDmitry Baryshkov
158*dc43e923SDmitry Baryshkovconfig DRM_MSM_HDMI_HDCP
159*dc43e923SDmitry Baryshkov	bool "Enable HDMI HDCP support in MSM DRM driver"
160*dc43e923SDmitry Baryshkov	depends on DRM_MSM && DRM_MSM_HDMI
161*dc43e923SDmitry Baryshkov	default y
162*dc43e923SDmitry Baryshkov	help
163*dc43e923SDmitry Baryshkov	  Choose this option to enable HDCP state machine
164