xref: /linux/drivers/gpu/drm/omapdrm/Kconfig (revision a3a02a52bcfcbcc4a637d4b68bf1bc391c9fad02)
1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_OMAP
3	tristate "OMAP DRM"
4	depends on MMU
5	depends on DRM && OF
6	depends on ARCH_OMAP2PLUS || (COMPILE_TEST && PAGE_SIZE_LESS_THAN_64KB)
7	select DRM_KMS_HELPER
8	select FB_DMAMEM_HELPERS_DEFERRED if DRM_FBDEV_EMULATION
9	select VIDEOMODE_HELPERS
10	select HDMI
11	default n
12	help
13	  DRM display driver for OMAP2/3/4 based boards.
14
15if DRM_OMAP
16
17config OMAP2_DSS_DEBUG
18	bool "Debug support"
19	default n
20	help
21	  This enables printing of debug messages. Alternatively, debug messages
22	  can also be enabled by setting CONFIG_DYNAMIC_DEBUG and then setting
23	  appropriate flags in <debugfs>/dynamic_debug/control.
24
25config OMAP2_DSS_DEBUGFS
26	bool "Debugfs filesystem support"
27	depends on DEBUG_FS
28	default n
29	help
30	  This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
31	  querying about clock configuration and register configuration of dss,
32	  dispc, dsi, hdmi and rfbi.
33
34config OMAP2_DSS_COLLECT_IRQ_STATS
35	bool "Collect DSS IRQ statistics"
36	depends on OMAP2_DSS_DEBUGFS
37	default n
38	help
39	  Collect DSS IRQ statistics, printable via debugfs.
40
41	  The statistics can be found from
42	  <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
43	  <debugfs>/omapdss/dsi_irq for DSI interrupts.
44
45config OMAP2_DSS_DPI
46	bool "DPI support"
47	default y
48	help
49	  DPI Interface. This is the Parallel Display Interface.
50
51config OMAP2_DSS_VENC
52	bool "VENC support"
53	default y
54	help
55	  OMAP Video Encoder support for S-Video and composite TV-out.
56
57config OMAP2_DSS_HDMI_COMMON
58	bool
59
60config OMAP4_DSS_HDMI
61	bool "HDMI support for OMAP4"
62	default y
63	select OMAP2_DSS_HDMI_COMMON
64	help
65	  HDMI support for OMAP4 based SoCs.
66
67config OMAP4_DSS_HDMI_CEC
68	bool "Enable HDMI CEC support for OMAP4"
69	depends on OMAP4_DSS_HDMI
70	select CEC_CORE
71	default y
72	help
73	  When selected the HDMI transmitter will support the CEC feature.
74
75config OMAP5_DSS_HDMI
76	bool "HDMI support for OMAP5"
77	default n
78	select OMAP2_DSS_HDMI_COMMON
79	help
80	  HDMI Interface for OMAP5 and similar cores. This adds the High
81	  Definition Multimedia Interface. See http://www.hdmi.org/ for HDMI
82	  specification.
83
84config OMAP2_DSS_SDI
85	bool "SDI support"
86	default n
87	help
88	  SDI (Serial Display Interface) support.
89
90	  SDI is a high speed one-way display serial bus between the host
91	  processor and a display.
92
93config OMAP2_DSS_DSI
94	bool "DSI support"
95	default n
96	select DRM_MIPI_DSI
97	help
98	  MIPI DSI (Display Serial Interface) support.
99
100	  DSI is a high speed half-duplex serial interface between the host
101	  processor and a peripheral, such as a display or a framebuffer chip.
102
103	  See http://www.mipi.org/ for DSI specifications.
104
105config OMAP2_DSS_MIN_FCK_PER_PCK
106	int "Minimum FCK/PCK ratio (for scaling)"
107	range 0 32
108	default 0
109	help
110	  This can be used to adjust the minimum FCK/PCK ratio.
111
112	  With this you can make sure that DISPC FCK is at least
113	  n x PCK. Video plane scaling requires higher FCK than
114	  normally.
115
116	  If this is set to 0, there's no extra constraint on the
117	  DISPC FCK. However, the FCK will at minimum be
118	  2xPCK (if active matrix) or 3xPCK (if passive matrix).
119
120	  Max FCK is 173MHz, so this doesn't work if your PCK
121	  is very high.
122
123config OMAP2_DSS_SLEEP_AFTER_VENC_RESET
124	bool "Sleep 20ms after VENC reset"
125	default y
126	help
127	  There is a 20ms sleep after VENC reset which seemed to fix the
128	  reset. The reason for the bug is unclear, and it's also unclear
129	  on what platforms this happens.
130
131	  This option enables the sleep, and is enabled by default. You can
132	  disable the sleep if it doesn't cause problems on your platform.
133
134endif
135