xref: /openbmc/linux/drivers/gpu/drm/msm/Kconfig (revision ba61bb17)
1
2config DRM_MSM
3	tristate "MSM DRM"
4	depends on DRM
5	depends on ARCH_QCOM || (ARM && COMPILE_TEST)
6	depends on OF && COMMON_CLK
7	depends on MMU
8	select QCOM_MDT_LOADER if ARCH_QCOM
9	select REGULATOR
10	select DRM_KMS_HELPER
11	select DRM_PANEL
12	select SHMEM
13	select TMPFS
14	select QCOM_SCM
15	select SND_SOC_HDMI_CODEC if SND_SOC
16	select SYNC_FILE
17	select PM_OPP
18	default y
19	help
20	  DRM/KMS driver for MSM/snapdragon.
21
22config DRM_MSM_REGISTER_LOGGING
23	bool "MSM DRM register logging"
24	depends on DRM_MSM
25	default n
26	help
27	  Compile in support for logging register reads/writes in a format
28	  that can be parsed by envytools demsm tool.  If enabled, register
29	  logging can be switched on via msm.reglog=y module param.
30
31config DRM_MSM_GPU_SUDO
32	bool "Enable SUDO flag on submits"
33	depends on DRM_MSM && EXPERT
34	default n
35	help
36	  Enable userspace that has CAP_SYS_RAWIO to submit GPU commands
37	  that are run from RB instead of IB1.  This essentially gives
38	  userspace kernel level access, but is useful for firmware
39	  debugging.
40
41	  Only use this if you are a driver developer.  This should *not*
42	  be enabled for production kernels.  If unsure, say N.
43
44config DRM_MSM_HDMI_HDCP
45	bool "Enable HDMI HDCP support in MSM DRM driver"
46	depends on DRM_MSM && QCOM_SCM
47	default y
48	help
49	  Choose this option to enable HDCP state machine
50
51config DRM_MSM_DSI
52	bool "Enable DSI support in MSM DRM driver"
53	depends on DRM_MSM
54	select DRM_PANEL
55	select DRM_MIPI_DSI
56	default y
57	help
58	  Choose this option if you have a need for MIPI DSI connector
59	  support.
60
61config DRM_MSM_DSI_PLL
62	bool "Enable DSI PLL driver in MSM DRM"
63	depends on DRM_MSM_DSI && COMMON_CLK
64	default y
65	help
66	  Choose this option to enable DSI PLL driver which provides DSI
67	  source clocks under common clock framework.
68
69config DRM_MSM_DSI_28NM_PHY
70	bool "Enable DSI 28nm PHY driver in MSM DRM"
71	depends on DRM_MSM_DSI
72	default y
73	help
74	  Choose this option if the 28nm DSI PHY is used on the platform.
75
76config DRM_MSM_DSI_20NM_PHY
77	bool "Enable DSI 20nm PHY driver in MSM DRM"
78	depends on DRM_MSM_DSI
79	default y
80	help
81	  Choose this option if the 20nm DSI PHY is used on the platform.
82
83config DRM_MSM_DSI_28NM_8960_PHY
84	bool "Enable DSI 28nm 8960 PHY driver in MSM DRM"
85	depends on DRM_MSM_DSI
86	default y
87	help
88	  Choose this option if the 28nm DSI PHY 8960 variant is used on the
89	  platform.
90
91config DRM_MSM_DSI_14NM_PHY
92	bool "Enable DSI 14nm PHY driver in MSM DRM (used by MSM8996/APQ8096)"
93	depends on DRM_MSM_DSI
94	default y
95	help
96	  Choose this option if DSI PHY on 8996 is used on the platform.
97
98config DRM_MSM_DSI_10NM_PHY
99	bool "Enable DSI 10nm PHY driver in MSM DRM (used by SDM845)"
100	depends on DRM_MSM_DSI
101	default y
102	help
103	  Choose this option if DSI PHY on SDM845 is used on the platform.
104