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