forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/rockchip/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 config DRM_ROCKCHIP
23 tristate "DRM Support for Rockchip"
34 depends on DRM
....@@ -7,7 +8,8 @@
78 select VIDEOMODE_HELPERS
89 select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
910 select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
10
- select DRM_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
11
+ select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
12
+ select DRM_RGB if ROCKCHIP_RGB
1113 select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
1214 help
1315 Choose this option if you have a Rockchip soc chipset.
....@@ -18,67 +20,96 @@
1820
1921 if DRM_ROCKCHIP
2022
21
-config ROCKCHIP_DRM_DEBUG
22
- tristate "Rockchip DRM debug"
23
+config ROCKCHIP_DRM_CUBIC_LUT
24
+ bool "Support 3D cubic LUT"
25
+ depends on NO_GKI
2326 help
24
- This option add a debug node to dump buf from application.
25
- dump buffer store at: /data/vop_buf
27
+ This add properties to support provision of a 3D cubic
28
+ look up table, allowing for color specific adjustments.
29
+
30
+config ROCKCHIP_DRM_DEBUG
31
+ bool "Rockchip DRM debug"
32
+ depends on DEBUG_FS
33
+ help
34
+ This option add a debug node to dump buf from userspace
35
+ dump buffer store at: /data
2636 debug node: /d/dri/0/ff900000.vop/vop_dump/dump
27
- cat /d/dri/0/ff900000.vop/vop_dump/dump get more help.
37
+ cat /d/dri/0/ff900000.vop/vop_dump/dump get more help
38
+ the upper ff900000.vop is different at different SOC platform.
39
+
40
+config ROCKCHIP_DRM_DIRECT_SHOW
41
+ bool "Rockchip DRM direct show"
42
+ help
43
+ This is a quick display scheme api in kernel space.
44
+
45
+config ROCKCHIP_DRM_SELF_TEST
46
+ bool "Rockchip DRM self test case"
47
+ depends on ROCKCHIP_DRM_DIRECT_SHOW
48
+ help
49
+ This offer setf test demo to display image at kernel space.
2850
2951 config ROCKCHIP_VOP
3052 bool "Rockchip VOP driver"
31
- default y
53
+ default y if (CPU_RK3036 || CPU_RK30XX || CPU_RK312X || \
54
+ CPU_PX30 || CPU_RK3308 || CPU_RV1106 || \
55
+ CPU_RV1126 || CPU_RK3288 || CPU_RK3368 || \
56
+ CPU_RK3399 || CPU_RK322X || CPU_RK3328) && \
57
+ !ROCKCHIP_MINI_KERNEL
3258 help
3359 This selects support for the VOP driver.If you want to
34
- enable VOP on Rockchip SoC, you should selet this option.
60
+ enable VOP on Rockchip SoC, you should select this option.
3561
3662 config ROCKCHIP_VOP2
3763 bool "Rockchip VOP2 driver"
38
- default y if !CPU_RV1126
64
+ default y if CPU_RK3528 || CPU_RK3562 || CPU_RK3568 || CPU_RK3588
3965 help
4066 This selects support for the VOP2 driver. If you want to
41
- enable VOP2 on RK3566 and RK3568 based SoC, you should
42
- selet this option.
43
-
44
-config ROCKCHIP_PSR
45
- bool
46
- help
47
- If you want to enable PSR function on Rockchip SoC, you
48
- should select this option.
67
+ enable VOP2 on Rockchip SoC, you should select this option.
4968
5069 config ROCKCHIP_ANALOGIX_DP
5170 bool "Rockchip specific extensions for Analogix DP driver"
52
- select ROCKCHIP_PSR
5371 help
5472 This selects support for Rockchip SoC specific extensions
5573 for the Analogix Core DP driver. If you want to enable DP
56
- on RK3288 based SoC, you should select this option.
74
+ on RK3288 or RK3399 based SoC, you should select this option.
5775
5876 config ROCKCHIP_CDN_DP
5977 bool "Rockchip cdn DP"
60
- depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
6178 help
6279 This selects support for Rockchip SoC specific extensions
6380 for the cdn DP driver. If you want to enable Dp on
6481 RK3399 based SoC, you should select this
6582 option.
6683
84
+config ROCKCHIP_DRM_TVE
85
+ bool "Rockchip TVE support"
86
+ depends on DRM_ROCKCHIP
87
+ help
88
+ Choose this option to enable support for Rockchip TVE controllers.
89
+ say Y to enable its driver.
90
+
6791 config ROCKCHIP_DW_HDMI
6892 bool "Rockchip specific extensions for Synopsys DW HDMI"
6993 help
7094 This selects support for Rockchip SoC specific extensions
7195 for the Synopsys DesignWare HDMI driver. If you want to
72
- enable HDMI on RK3288 based SoC, you should selet this
73
- option.
96
+ enable HDMI on RK3288 or RK3399 based SoC, you should select
97
+ this option.
7498
7599 config ROCKCHIP_DW_MIPI_DSI
76100 bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
101
+ select GENERIC_PHY_MIPI_DPHY
77102 help
78103 This selects support for Rockchip SoC specific extensions
79104 for the Synopsys DesignWare HDMI driver. If you want to
80
- enable MIPI DSI on RK3288 based SoC, you should selet this
81
- option.
105
+ enable MIPI DSI on RK3288 or RK3399 based SoC, you should
106
+ select this option.
107
+
108
+config ROCKCHIP_DW_DP
109
+ bool "Rockchip specific extensions for Synopsys DW DPTX"
110
+ help
111
+ Choose this option for Synopsys DesignWare Cores DisplayPort
112
+ transmit controller support on Rockchip SoC.
82113
83114 config ROCKCHIP_INNO_HDMI
84115 bool "Rockchip specific extensions for Innosilicon HDMI"
....@@ -96,12 +127,6 @@
96127 support LVDS, rgb, dual LVDS output mode. say Y to enable its
97128 driver.
98129
99
-config ROCKCHIP_DRM_TVE
100
- bool "Rockchip TVE support"
101
- help
102
- Choose this option to enable support for Rockchip TVE controllers.
103
- say Y to enable its driver.
104
-
105130 config ROCKCHIP_RGB
106131 bool "Rockchip RGB support"
107132 depends on PINCTRL
....@@ -111,14 +136,32 @@
111136 and serial RGB format to panel or connect to a conversion chip.
112137 say Y to enable its driver.
113138
139
+config ROCKCHIP_RK3066_HDMI
140
+ bool "Rockchip specific extensions for RK3066 HDMI"
141
+ help
142
+ This selects support for Rockchip SoC specific extensions
143
+ for the RK3066 HDMI driver. If you want to enable
144
+ HDMI on RK3066 based SoC, you should select this option.
145
+
146
+config ROCKCHIP_VCONN
147
+ bool "Rockchip Virtual connector driver for HDMI/DP/DSI"
148
+ help
149
+ This selects support virtual HDMI/DP/DSI drived by
150
+ rockchip vop, This is used for some test.
151
+
114152 config DRM_ROCKCHIP_VVOP
115
- tristate "Rockchip virtual VOP drm driver"
153
+ bool "Rockchip virtual VOP drm driver"
116154 help
117155 Say y here if you want use some module of rockchip drm, but
118156 don't need a real vop driver(et: you just want rockchip drm
119157 gem driver to allocate memory).
120158
121
-source "drivers/gpu/drm/rockchip/ebc-dev/Kconfig"
159
+config ROCKCHIP_DW_HDCP2
160
+ tristate "Synopsis Designware HDCP2 interface"
161
+ help
162
+ Choose this option to enable support for the Synopsys
163
+ Designware HDCP2 Controller.
164
+
122165 source "drivers/gpu/drm/rockchip/rk618/Kconfig"
123166 source "drivers/gpu/drm/rockchip/rk628/Kconfig"
124167