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