1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunconfig DRM_MSM 4*4882a593Smuzhiyun tristate "MSM DRM" 5*4882a593Smuzhiyun depends on DRM 6*4882a593Smuzhiyun depends on ARCH_QCOM || SOC_IMX5 || (ARM && COMPILE_TEST) 7*4882a593Smuzhiyun depends on IOMMU_SUPPORT 8*4882a593Smuzhiyun depends on OF && COMMON_CLK 9*4882a593Smuzhiyun depends on QCOM_OCMEM || QCOM_OCMEM=n 10*4882a593Smuzhiyun select IOMMU_IO_PGTABLE 11*4882a593Smuzhiyun select QCOM_MDT_LOADER if ARCH_QCOM 12*4882a593Smuzhiyun select REGULATOR 13*4882a593Smuzhiyun select DRM_KMS_HELPER 14*4882a593Smuzhiyun select DRM_PANEL 15*4882a593Smuzhiyun select SHMEM 16*4882a593Smuzhiyun select TMPFS 17*4882a593Smuzhiyun select QCOM_SCM if ARCH_QCOM 18*4882a593Smuzhiyun select QCOM_COMMAND_DB if ARCH_QCOM 19*4882a593Smuzhiyun select WANT_DEV_COREDUMP 20*4882a593Smuzhiyun select SND_SOC_HDMI_CODEC if SND_SOC 21*4882a593Smuzhiyun select SYNC_FILE 22*4882a593Smuzhiyun select PM_OPP 23*4882a593Smuzhiyun help 24*4882a593Smuzhiyun DRM/KMS driver for MSM/snapdragon. 25*4882a593Smuzhiyun 26*4882a593Smuzhiyunconfig DRM_MSM_GPU_STATE 27*4882a593Smuzhiyun bool 28*4882a593Smuzhiyun depends on DRM_MSM && (DEBUG_FS || DEV_COREDUMP) 29*4882a593Smuzhiyun default y 30*4882a593Smuzhiyun 31*4882a593Smuzhiyunconfig DRM_MSM_REGISTER_LOGGING 32*4882a593Smuzhiyun bool "MSM DRM register logging" 33*4882a593Smuzhiyun depends on DRM_MSM 34*4882a593Smuzhiyun default n 35*4882a593Smuzhiyun help 36*4882a593Smuzhiyun Compile in support for logging register reads/writes in a format 37*4882a593Smuzhiyun that can be parsed by envytools demsm tool. If enabled, register 38*4882a593Smuzhiyun logging can be switched on via msm.reglog=y module param. 39*4882a593Smuzhiyun 40*4882a593Smuzhiyunconfig DRM_MSM_GPU_SUDO 41*4882a593Smuzhiyun bool "Enable SUDO flag on submits" 42*4882a593Smuzhiyun depends on DRM_MSM && EXPERT 43*4882a593Smuzhiyun default n 44*4882a593Smuzhiyun help 45*4882a593Smuzhiyun Enable userspace that has CAP_SYS_RAWIO to submit GPU commands 46*4882a593Smuzhiyun that are run from RB instead of IB1. This essentially gives 47*4882a593Smuzhiyun userspace kernel level access, but is useful for firmware 48*4882a593Smuzhiyun debugging. 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun Only use this if you are a driver developer. This should *not* 51*4882a593Smuzhiyun be enabled for production kernels. If unsure, say N. 52*4882a593Smuzhiyun 53*4882a593Smuzhiyunconfig DRM_MSM_HDMI_HDCP 54*4882a593Smuzhiyun bool "Enable HDMI HDCP support in MSM DRM driver" 55*4882a593Smuzhiyun depends on DRM_MSM && QCOM_SCM 56*4882a593Smuzhiyun default y 57*4882a593Smuzhiyun help 58*4882a593Smuzhiyun Choose this option to enable HDCP state machine 59*4882a593Smuzhiyun 60*4882a593Smuzhiyunconfig DRM_MSM_DP 61*4882a593Smuzhiyun bool "Enable DisplayPort support in MSM DRM driver" 62*4882a593Smuzhiyun depends on DRM_MSM 63*4882a593Smuzhiyun select RATIONAL 64*4882a593Smuzhiyun default y 65*4882a593Smuzhiyun help 66*4882a593Smuzhiyun Compile in support for DP driver in MSM DRM driver. DP external 67*4882a593Smuzhiyun display support is enabled through this config option. It can 68*4882a593Smuzhiyun be primary or secondary display on device. 69*4882a593Smuzhiyun 70*4882a593Smuzhiyunconfig DRM_MSM_DSI 71*4882a593Smuzhiyun bool "Enable DSI support in MSM DRM driver" 72*4882a593Smuzhiyun depends on DRM_MSM 73*4882a593Smuzhiyun select DRM_PANEL 74*4882a593Smuzhiyun select DRM_MIPI_DSI 75*4882a593Smuzhiyun default y 76*4882a593Smuzhiyun help 77*4882a593Smuzhiyun Choose this option if you have a need for MIPI DSI connector 78*4882a593Smuzhiyun support. 79*4882a593Smuzhiyun 80*4882a593Smuzhiyunconfig DRM_MSM_DSI_PLL 81*4882a593Smuzhiyun bool "Enable DSI PLL driver in MSM DRM" 82*4882a593Smuzhiyun depends on DRM_MSM_DSI && COMMON_CLK 83*4882a593Smuzhiyun default y 84*4882a593Smuzhiyun help 85*4882a593Smuzhiyun Choose this option to enable DSI PLL driver which provides DSI 86*4882a593Smuzhiyun source clocks under common clock framework. 87*4882a593Smuzhiyun 88*4882a593Smuzhiyunconfig DRM_MSM_DSI_28NM_PHY 89*4882a593Smuzhiyun bool "Enable DSI 28nm PHY driver in MSM DRM" 90*4882a593Smuzhiyun depends on DRM_MSM_DSI 91*4882a593Smuzhiyun default y 92*4882a593Smuzhiyun help 93*4882a593Smuzhiyun Choose this option if the 28nm DSI PHY is used on the platform. 94*4882a593Smuzhiyun 95*4882a593Smuzhiyunconfig DRM_MSM_DSI_20NM_PHY 96*4882a593Smuzhiyun bool "Enable DSI 20nm PHY driver in MSM DRM" 97*4882a593Smuzhiyun depends on DRM_MSM_DSI 98*4882a593Smuzhiyun default y 99*4882a593Smuzhiyun help 100*4882a593Smuzhiyun Choose this option if the 20nm DSI PHY is used on the platform. 101*4882a593Smuzhiyun 102*4882a593Smuzhiyunconfig DRM_MSM_DSI_28NM_8960_PHY 103*4882a593Smuzhiyun bool "Enable DSI 28nm 8960 PHY driver in MSM DRM" 104*4882a593Smuzhiyun depends on DRM_MSM_DSI 105*4882a593Smuzhiyun default y 106*4882a593Smuzhiyun help 107*4882a593Smuzhiyun Choose this option if the 28nm DSI PHY 8960 variant is used on the 108*4882a593Smuzhiyun platform. 109*4882a593Smuzhiyun 110*4882a593Smuzhiyunconfig DRM_MSM_DSI_14NM_PHY 111*4882a593Smuzhiyun bool "Enable DSI 14nm PHY driver in MSM DRM (used by MSM8996/APQ8096)" 112*4882a593Smuzhiyun depends on DRM_MSM_DSI 113*4882a593Smuzhiyun default y 114*4882a593Smuzhiyun help 115*4882a593Smuzhiyun Choose this option if DSI PHY on 8996 is used on the platform. 116*4882a593Smuzhiyun 117*4882a593Smuzhiyunconfig DRM_MSM_DSI_10NM_PHY 118*4882a593Smuzhiyun bool "Enable DSI 10nm PHY driver in MSM DRM (used by SDM845)" 119*4882a593Smuzhiyun depends on DRM_MSM_DSI 120*4882a593Smuzhiyun default y 121*4882a593Smuzhiyun help 122*4882a593Smuzhiyun Choose this option if DSI PHY on SDM845 is used on the platform. 123*4882a593Smuzhiyun 124*4882a593Smuzhiyunconfig DRM_MSM_DSI_7NM_PHY 125*4882a593Smuzhiyun bool "Enable DSI 7nm PHY driver in MSM DRM (used by SM8150/SM8250)" 126*4882a593Smuzhiyun depends on DRM_MSM_DSI 127*4882a593Smuzhiyun default y 128*4882a593Smuzhiyun help 129*4882a593Smuzhiyun Choose this option if DSI PHY on SM8150/SM8250 is used on the 130*4882a593Smuzhiyun platform. 131