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