0001 # SPDX-License-Identifier: GPL-2.0-only
0002
0003 config DRM_MSM
0004 tristate "MSM DRM"
0005 depends on DRM
0006 depends on ARCH_QCOM || SOC_IMX5 || COMPILE_TEST
0007 depends on COMMON_CLK
0008 depends on IOMMU_SUPPORT
0009 depends on QCOM_OCMEM || QCOM_OCMEM=n
0010 depends on QCOM_LLCC || QCOM_LLCC=n
0011 depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n
0012 select IOMMU_IO_PGTABLE
0013 select QCOM_MDT_LOADER if ARCH_QCOM
0014 select REGULATOR
0015 select DRM_DP_AUX_BUS
0016 select DRM_DISPLAY_DP_HELPER
0017 select DRM_DISPLAY_HELPER
0018 select DRM_KMS_HELPER
0019 select DRM_PANEL
0020 select DRM_BRIDGE
0021 select DRM_PANEL_BRIDGE
0022 select DRM_SCHED
0023 select SHMEM
0024 select TMPFS
0025 select QCOM_SCM
0026 select WANT_DEV_COREDUMP
0027 select SND_SOC_HDMI_CODEC if SND_SOC
0028 select SYNC_FILE
0029 select PM_OPP
0030 select NVMEM
0031 help
0032 DRM/KMS driver for MSM/snapdragon.
0033
0034 config DRM_MSM_GPU_STATE
0035 bool
0036 depends on DRM_MSM && (DEBUG_FS || DEV_COREDUMP)
0037 default y
0038
0039 config DRM_MSM_GPU_SUDO
0040 bool "Enable SUDO flag on submits"
0041 depends on DRM_MSM && EXPERT
0042 default n
0043 help
0044 Enable userspace that has CAP_SYS_RAWIO to submit GPU commands
0045 that are run from RB instead of IB1. This essentially gives
0046 userspace kernel level access, but is useful for firmware
0047 debugging.
0048
0049 Only use this if you are a driver developer. This should *not*
0050 be enabled for production kernels. If unsure, say N.
0051
0052 config DRM_MSM_MDSS
0053 bool
0054 depends on DRM_MSM
0055 default n
0056
0057 config DRM_MSM_MDP4
0058 bool "Enable MDP4 support in MSM DRM driver"
0059 depends on DRM_MSM
0060 default y
0061 help
0062 Compile in support for the Mobile Display Processor v4 (MDP4) in
0063 the MSM DRM driver. It is the older display controller found in
0064 devices using APQ8064/MSM8960/MSM8x60 platforms.
0065
0066 config DRM_MSM_MDP5
0067 bool "Enable MDP5 support in MSM DRM driver"
0068 depends on DRM_MSM
0069 select DRM_MSM_MDSS
0070 default y
0071 help
0072 Compile in support for the Mobile Display Processor v5 (MDP5) in
0073 the MSM DRM driver. It is the display controller found in devices
0074 using e.g. APQ8016/MSM8916/APQ8096/MSM8996/MSM8974/SDM6x0 platforms.
0075
0076 config DRM_MSM_DPU
0077 bool "Enable DPU support in MSM DRM driver"
0078 depends on DRM_MSM
0079 select DRM_MSM_MDSS
0080 default y
0081 help
0082 Compile in support for the Display Processing Unit in
0083 the MSM DRM driver. It is the display controller found in devices
0084 using e.g. SDM845 and newer platforms.
0085
0086 config DRM_MSM_DP
0087 bool "Enable DisplayPort support in MSM DRM driver"
0088 depends on DRM_MSM
0089 select RATIONAL
0090 default y
0091 help
0092 Compile in support for DP driver in MSM DRM driver. DP external
0093 display support is enabled through this config option. It can
0094 be primary or secondary display on device.
0095
0096 config DRM_MSM_DSI
0097 bool "Enable DSI support in MSM DRM driver"
0098 depends on DRM_MSM
0099 select DRM_PANEL
0100 select DRM_MIPI_DSI
0101 default y
0102 help
0103 Choose this option if you have a need for MIPI DSI connector
0104 support.
0105
0106 config DRM_MSM_DSI_28NM_PHY
0107 bool "Enable DSI 28nm PHY driver in MSM DRM"
0108 depends on DRM_MSM_DSI
0109 default y
0110 help
0111 Choose this option if the 28nm DSI PHY is used on the platform.
0112
0113 config DRM_MSM_DSI_20NM_PHY
0114 bool "Enable DSI 20nm PHY driver in MSM DRM"
0115 depends on DRM_MSM_DSI
0116 default y
0117 help
0118 Choose this option if the 20nm DSI PHY is used on the platform.
0119
0120 config DRM_MSM_DSI_28NM_8960_PHY
0121 bool "Enable DSI 28nm 8960 PHY driver in MSM DRM"
0122 depends on DRM_MSM_DSI
0123 default y
0124 help
0125 Choose this option if the 28nm DSI PHY 8960 variant is used on the
0126 platform.
0127
0128 config DRM_MSM_DSI_14NM_PHY
0129 bool "Enable DSI 14nm PHY driver in MSM DRM (used by MSM8996/APQ8096)"
0130 depends on DRM_MSM_DSI
0131 default y
0132 help
0133 Choose this option if DSI PHY on 8996 is used on the platform.
0134
0135 config DRM_MSM_DSI_10NM_PHY
0136 bool "Enable DSI 10nm PHY driver in MSM DRM (used by SDM845)"
0137 depends on DRM_MSM_DSI
0138 default y
0139 help
0140 Choose this option if DSI PHY on SDM845 is used on the platform.
0141
0142 config DRM_MSM_DSI_7NM_PHY
0143 bool "Enable DSI 7nm PHY driver in MSM DRM"
0144 depends on DRM_MSM_DSI
0145 default y
0146 help
0147 Choose this option if DSI PHY on SM8150/SM8250/SC7280 is used on
0148 the platform.
0149
0150 config DRM_MSM_HDMI
0151 bool "Enable HDMI support in MSM DRM driver"
0152 depends on DRM_MSM
0153 default y
0154 help
0155 Compile in support for the HDMI output MSM DRM driver. It can
0156 be a primary or a secondary display on device. Note that this is used
0157 only for the direct HDMI output. If the device outputs HDMI data
0158 throught some kind of DSI-to-HDMI bridge, this option can be disabled.
0159
0160 config DRM_MSM_HDMI_HDCP
0161 bool "Enable HDMI HDCP support in MSM DRM driver"
0162 depends on DRM_MSM && DRM_MSM_HDMI
0163 default y
0164 help
0165 Choose this option to enable HDCP state machine