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