forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/gpu/drm/msm/Kconfig
....@@ -1,17 +1,20 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12
23 config DRM_MSM
34 tristate "MSM DRM"
45 depends on DRM
5
- depends on ARCH_QCOM || (ARM && COMPILE_TEST)
6
+ depends on ARCH_QCOM || SOC_IMX5 || (ARM && COMPILE_TEST)
7
+ depends on IOMMU_SUPPORT
68 depends on OF && COMMON_CLK
7
- depends on MMU
9
+ depends on QCOM_OCMEM || QCOM_OCMEM=n
10
+ select IOMMU_IO_PGTABLE
811 select QCOM_MDT_LOADER if ARCH_QCOM
912 select REGULATOR
1013 select DRM_KMS_HELPER
1114 select DRM_PANEL
1215 select SHMEM
1316 select TMPFS
14
- select QCOM_SCM
17
+ select QCOM_SCM if ARCH_QCOM
1518 select QCOM_COMMAND_DB if ARCH_QCOM
1619 select WANT_DEV_COREDUMP
1720 select SND_SOC_HDMI_CODEC if SND_SOC
....@@ -19,6 +22,11 @@
1922 select PM_OPP
2023 help
2124 DRM/KMS driver for MSM/snapdragon.
25
+
26
+config DRM_MSM_GPU_STATE
27
+ bool
28
+ depends on DRM_MSM && (DEBUG_FS || DEV_COREDUMP)
29
+ default y
2230
2331 config DRM_MSM_REGISTER_LOGGING
2432 bool "MSM DRM register logging"
....@@ -48,6 +56,16 @@
4856 default y
4957 help
5058 Choose this option to enable HDCP state machine
59
+
60
+config DRM_MSM_DP
61
+ bool "Enable DisplayPort support in MSM DRM driver"
62
+ depends on DRM_MSM
63
+ select RATIONAL
64
+ default y
65
+ help
66
+ Compile in support for DP driver in MSM DRM driver. DP external
67
+ display support is enabled through this config option. It can
68
+ be primary or secondary display on device.
5169
5270 config DRM_MSM_DSI
5371 bool "Enable DSI support in MSM DRM driver"
....@@ -102,3 +120,11 @@
102120 default y
103121 help
104122 Choose this option if DSI PHY on SDM845 is used on the platform.
123
+
124
+config DRM_MSM_DSI_7NM_PHY
125
+ bool "Enable DSI 7nm PHY driver in MSM DRM (used by SM8150/SM8250)"
126
+ depends on DRM_MSM_DSI
127
+ default y
128
+ help
129
+ Choose this option if DSI PHY on SM8150/SM8250 is used on the
130
+ platform.