0001 # SPDX-License-Identifier: GPL-2.0-only
0002 config DRM_OMAP
0003 tristate "OMAP DRM"
0004 depends on DRM && OF
0005 depends on ARCH_OMAP2PLUS || ARCH_MULTIPLATFORM
0006 select DRM_KMS_HELPER
0007 select VIDEOMODE_HELPERS
0008 select HDMI
0009 default n
0010 help
0011 DRM display driver for OMAP2/3/4 based boards.
0012
0013 if DRM_OMAP
0014
0015 config OMAP2_DSS_DEBUG
0016 bool "Debug support"
0017 default n
0018 help
0019 This enables printing of debug messages. Alternatively, debug messages
0020 can also be enabled by setting CONFIG_DYNAMIC_DEBUG and then setting
0021 appropriate flags in <debugfs>/dynamic_debug/control.
0022
0023 config OMAP2_DSS_DEBUGFS
0024 bool "Debugfs filesystem support"
0025 depends on DEBUG_FS
0026 default n
0027 help
0028 This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
0029 querying about clock configuration and register configuration of dss,
0030 dispc, dsi, hdmi and rfbi.
0031
0032 config OMAP2_DSS_COLLECT_IRQ_STATS
0033 bool "Collect DSS IRQ statistics"
0034 depends on OMAP2_DSS_DEBUGFS
0035 default n
0036 help
0037 Collect DSS IRQ statistics, printable via debugfs.
0038
0039 The statistics can be found from
0040 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
0041 <debugfs>/omapdss/dsi_irq for DSI interrupts.
0042
0043 config OMAP2_DSS_DPI
0044 bool "DPI support"
0045 default y
0046 help
0047 DPI Interface. This is the Parallel Display Interface.
0048
0049 config OMAP2_DSS_VENC
0050 bool "VENC support"
0051 default y
0052 help
0053 OMAP Video Encoder support for S-Video and composite TV-out.
0054
0055 config OMAP2_DSS_HDMI_COMMON
0056 bool
0057
0058 config OMAP4_DSS_HDMI
0059 bool "HDMI support for OMAP4"
0060 default y
0061 select OMAP2_DSS_HDMI_COMMON
0062 help
0063 HDMI support for OMAP4 based SoCs.
0064
0065 config OMAP4_DSS_HDMI_CEC
0066 bool "Enable HDMI CEC support for OMAP4"
0067 depends on OMAP4_DSS_HDMI
0068 select CEC_CORE
0069 default y
0070 help
0071 When selected the HDMI transmitter will support the CEC feature.
0072
0073 config OMAP5_DSS_HDMI
0074 bool "HDMI support for OMAP5"
0075 default n
0076 select OMAP2_DSS_HDMI_COMMON
0077 help
0078 HDMI Interface for OMAP5 and similar cores. This adds the High
0079 Definition Multimedia Interface. See http://www.hdmi.org/ for HDMI
0080 specification.
0081
0082 config OMAP2_DSS_SDI
0083 bool "SDI support"
0084 default n
0085 help
0086 SDI (Serial Display Interface) support.
0087
0088 SDI is a high speed one-way display serial bus between the host
0089 processor and a display.
0090
0091 config OMAP2_DSS_DSI
0092 bool "DSI support"
0093 default n
0094 select DRM_MIPI_DSI
0095 help
0096 MIPI DSI (Display Serial Interface) support.
0097
0098 DSI is a high speed half-duplex serial interface between the host
0099 processor and a peripheral, such as a display or a framebuffer chip.
0100
0101 See http://www.mipi.org/ for DSI specifications.
0102
0103 config OMAP2_DSS_MIN_FCK_PER_PCK
0104 int "Minimum FCK/PCK ratio (for scaling)"
0105 range 0 32
0106 default 0
0107 help
0108 This can be used to adjust the minimum FCK/PCK ratio.
0109
0110 With this you can make sure that DISPC FCK is at least
0111 n x PCK. Video plane scaling requires higher FCK than
0112 normally.
0113
0114 If this is set to 0, there's no extra constraint on the
0115 DISPC FCK. However, the FCK will at minimum be
0116 2xPCK (if active matrix) or 3xPCK (if passive matrix).
0117
0118 Max FCK is 173MHz, so this doesn't work if your PCK
0119 is very high.
0120
0121 config OMAP2_DSS_SLEEP_AFTER_VENC_RESET
0122 bool "Sleep 20ms after VENC reset"
0123 default y
0124 help
0125 There is a 20ms sleep after VENC reset which seemed to fix the
0126 reset. The reason for the bug is unclear, and it's also unclear
0127 on what platforms this happens.
0128
0129 This option enables the sleep, and is enabled by default. You can
0130 disable the sleep if it doesn't cause problems on your platform.
0131
0132 endif