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_RFBI
43	bool "RFBI support"
44	depends on BROKEN
45	help
46	  MIPI DBI support (RFBI, Remote Framebuffer Interface, in Texas
47	  Instrument's terminology).
48
49	  DBI is a bus between the host processor and a peripheral,
50	  such as a display or a framebuffer chip.
51
52	  See http://www.mipi.org/ for DBI specifications.
53
54config FB_OMAP2_DSS_VENC
55	bool "VENC support"
56        default y
57	help
58	  OMAP Video Encoder support for S-Video and composite TV-out.
59
60config FB_OMAP2_DSS_HDMI_COMMON
61	bool
62
63config FB_OMAP4_DSS_HDMI
64	bool "HDMI support for OMAP4"
65        default y
66	select FB_OMAP2_DSS_HDMI_COMMON
67	help
68	  HDMI support for OMAP4 based SoCs.
69
70config FB_OMAP5_DSS_HDMI
71	bool "HDMI support for OMAP5"
72	select FB_OMAP2_DSS_HDMI_COMMON
73	help
74	  HDMI Interface for OMAP5 and similar cores. This adds the High
75	  Definition Multimedia Interface. See http://www.hdmi.org/ for HDMI
76	  specification.
77
78config FB_OMAP2_DSS_SDI
79	bool "SDI support"
80	help
81	  SDI (Serial Display Interface) support.
82
83	  SDI is a high speed one-way display serial bus between the host
84	  processor and a display.
85
86config FB_OMAP2_DSS_DSI
87	bool "DSI support"
88	help
89	  MIPI DSI (Display Serial Interface) support.
90
91	  DSI is a high speed half-duplex serial interface between the host
92	  processor and a peripheral, such as a display or a framebuffer chip.
93
94	  See http://www.mipi.org/ for DSI specifications.
95
96config FB_OMAP2_DSS_MIN_FCK_PER_PCK
97	int "Minimum FCK/PCK ratio (for scaling)"
98	range 0 32
99	default 0
100	help
101	  This can be used to adjust the minimum FCK/PCK ratio.
102
103	  With this you can make sure that DISPC FCK is at least
104	  n x PCK. Video plane scaling requires higher FCK than
105	  normally.
106
107	  If this is set to 0, there's no extra constraint on the
108	  DISPC FCK. However, the FCK will at minimum be
109	  2xPCK (if active matrix) or 3xPCK (if passive matrix).
110
111	  Max FCK is 173MHz, so this doesn't work if your PCK
112	  is very high.
113
114config FB_OMAP2_DSS_SLEEP_AFTER_VENC_RESET
115	bool "Sleep 20ms after VENC reset"
116	default y
117	help
118	  There is a 20ms sleep after VENC reset which seemed to fix the
119	  reset. The reason for the bug is unclear, and it's also unclear
120	  on what platforms this happens.
121
122	  This option enables the sleep, and is enabled by default. You can
123	  disable the sleep if it doesn't cause problems on your platform.
124