162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ciconfig FB_OMAP2_DSS_INIT
362306a36Sopenharmony_ci	bool
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciconfig FB_OMAP2_DSS
662306a36Sopenharmony_ci	tristate
762306a36Sopenharmony_ci	select VIDEOMODE_HELPERS
862306a36Sopenharmony_ci	select FB_OMAP2_DSS_INIT
962306a36Sopenharmony_ci	select HDMI
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciconfig FB_OMAP2_DSS_DEBUG
1262306a36Sopenharmony_ci	bool "Debug support"
1362306a36Sopenharmony_ci	help
1462306a36Sopenharmony_ci	  This enables printing of debug messages. Alternatively, debug messages
1562306a36Sopenharmony_ci	  can also be enabled by setting CONFIG_DYNAMIC_DEBUG and then setting
1662306a36Sopenharmony_ci	  appropriate flags in <debugfs>/dynamic_debug/control.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciconfig FB_OMAP2_DSS_DEBUGFS
1962306a36Sopenharmony_ci	bool "Debugfs filesystem support"
2062306a36Sopenharmony_ci	depends on DEBUG_FS
2162306a36Sopenharmony_ci	help
2262306a36Sopenharmony_ci	  This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
2362306a36Sopenharmony_ci	  querying about clock configuration and register configuration of dss,
2462306a36Sopenharmony_ci	  dispc, dsi, hdmi and rfbi.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciconfig FB_OMAP2_DSS_COLLECT_IRQ_STATS
2762306a36Sopenharmony_ci	bool "Collect DSS IRQ statistics"
2862306a36Sopenharmony_ci	depends on FB_OMAP2_DSS_DEBUGFS
2962306a36Sopenharmony_ci	help
3062306a36Sopenharmony_ci	  Collect DSS IRQ statistics, printable via debugfs.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci	  The statistics can be found from
3362306a36Sopenharmony_ci	  <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
3462306a36Sopenharmony_ci	  <debugfs>/omapdss/dsi_irq for DSI interrupts.
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciconfig FB_OMAP2_DSS_DPI
3762306a36Sopenharmony_ci	bool "DPI support"
3862306a36Sopenharmony_ci	default y
3962306a36Sopenharmony_ci	help
4062306a36Sopenharmony_ci	  DPI Interface. This is the Parallel Display Interface.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciconfig FB_OMAP2_DSS_VENC
4362306a36Sopenharmony_ci	bool "VENC support"
4462306a36Sopenharmony_ci	default y
4562306a36Sopenharmony_ci	help
4662306a36Sopenharmony_ci	  OMAP Video Encoder support for S-Video and composite TV-out.
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ciconfig FB_OMAP2_DSS_HDMI_COMMON
4962306a36Sopenharmony_ci	bool
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciconfig FB_OMAP4_DSS_HDMI
5262306a36Sopenharmony_ci	bool "HDMI support for OMAP4"
5362306a36Sopenharmony_ci	default y
5462306a36Sopenharmony_ci	select FB_OMAP2_DSS_HDMI_COMMON
5562306a36Sopenharmony_ci	help
5662306a36Sopenharmony_ci	  HDMI support for OMAP4 based SoCs.
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ciconfig FB_OMAP5_DSS_HDMI
5962306a36Sopenharmony_ci	bool "HDMI support for OMAP5"
6062306a36Sopenharmony_ci	select FB_OMAP2_DSS_HDMI_COMMON
6162306a36Sopenharmony_ci	help
6262306a36Sopenharmony_ci	  HDMI Interface for OMAP5 and similar cores. This adds the High
6362306a36Sopenharmony_ci	  Definition Multimedia Interface. See https://www.hdmi.org/ for HDMI
6462306a36Sopenharmony_ci	  specification.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ciconfig FB_OMAP2_DSS_SDI
6762306a36Sopenharmony_ci	bool "SDI support"
6862306a36Sopenharmony_ci	help
6962306a36Sopenharmony_ci	  SDI (Serial Display Interface) support.
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ci	  SDI is a high speed one-way display serial bus between the host
7262306a36Sopenharmony_ci	  processor and a display.
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ciconfig FB_OMAP2_DSS_DSI
7562306a36Sopenharmony_ci	bool "DSI support"
7662306a36Sopenharmony_ci	help
7762306a36Sopenharmony_ci	  MIPI DSI (Display Serial Interface) support.
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ci	  DSI is a high speed half-duplex serial interface between the host
8062306a36Sopenharmony_ci	  processor and a peripheral, such as a display or a framebuffer chip.
8162306a36Sopenharmony_ci
8262306a36Sopenharmony_ci	  See https://www.mipi.org/ for DSI specifications.
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ciconfig FB_OMAP2_DSS_MIN_FCK_PER_PCK
8562306a36Sopenharmony_ci	int "Minimum FCK/PCK ratio (for scaling)"
8662306a36Sopenharmony_ci	range 0 32
8762306a36Sopenharmony_ci	default 0
8862306a36Sopenharmony_ci	help
8962306a36Sopenharmony_ci	  This can be used to adjust the minimum FCK/PCK ratio.
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ci	  With this you can make sure that DISPC FCK is at least
9262306a36Sopenharmony_ci	  n x PCK. Video plane scaling requires higher FCK than
9362306a36Sopenharmony_ci	  normally.
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci	  If this is set to 0, there's no extra constraint on the
9662306a36Sopenharmony_ci	  DISPC FCK. However, the FCK will at minimum be
9762306a36Sopenharmony_ci	  2xPCK (if active matrix) or 3xPCK (if passive matrix).
9862306a36Sopenharmony_ci
9962306a36Sopenharmony_ci	  Max FCK is 173MHz, so this doesn't work if your PCK
10062306a36Sopenharmony_ci	  is very high.
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ciconfig FB_OMAP2_DSS_SLEEP_AFTER_VENC_RESET
10362306a36Sopenharmony_ci	bool "Sleep 20ms after VENC reset"
10462306a36Sopenharmony_ci	default y
10562306a36Sopenharmony_ci	help
10662306a36Sopenharmony_ci	  There is a 20ms sleep after VENC reset which seemed to fix the
10762306a36Sopenharmony_ci	  reset. The reason for the bug is unclear, and it's also unclear
10862306a36Sopenharmony_ci	  on what platforms this happens.
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ci	  This option enables the sleep, and is enabled by default. You can
11162306a36Sopenharmony_ci	  disable the sleep if it doesn't cause problems on your platform.
112