forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
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.
....@@ -19,66 +21,88 @@
1921 if DRM_ROCKCHIP
2022
2123 config ROCKCHIP_DRM_DEBUG
22
- tristate "Rockchip DRM debug"
24
+ bool "Rockchip DRM debug"
25
+ depends on DEBUG_FS
2326 help
24
- This option add a debug node to dump buf from application.
25
- dump buffer store at: /data/vop_buf
27
+ This option add a debug node to dump buf from userspace
28
+ dump buffer store at: /data
2629 debug node: /d/dri/0/ff900000.vop/vop_dump/dump
27
- cat /d/dri/0/ff900000.vop/vop_dump/dump get more help.
30
+ cat /d/dri/0/ff900000.vop/vop_dump/dump get more help
31
+ the upper ff900000.vop is different at different SOC platform.
32
+
33
+config ROCKCHIP_DRM_DIRECT_SHOW
34
+ bool "Rockchip DRM direct show"
35
+ help
36
+ This is a quick display scheme api in kernel space.
37
+
38
+config ROCKCHIP_DRM_SELF_TEST
39
+ bool "Rockchip DRM self test case"
40
+ depends on ROCKCHIP_DRM_DIRECT_SHOW
41
+ help
42
+ This offer setf test demo to display image at kernel space.
2843
2944 config ROCKCHIP_VOP
3045 bool "Rockchip VOP driver"
31
- default y
46
+ default y if (CPU_RK3036 || CPU_RK30XX || CPU_RK312X || \
47
+ CPU_PX30 || CPU_RK3308 || CPU_RV1106 || \
48
+ CPU_RV1126 || CPU_RK3288 || CPU_RK3368 || \
49
+ CPU_RK3399 || CPU_RK322X || CPU_RK3328) && \
50
+ !ROCKCHIP_MINI_KERNEL
3251 help
3352 This selects support for the VOP driver.If you want to
34
- enable VOP on Rockchip SoC, you should selet this option.
53
+ enable VOP on Rockchip SoC, you should select this option.
3554
3655 config ROCKCHIP_VOP2
3756 bool "Rockchip VOP2 driver"
38
- default y if !CPU_RV1126
57
+ default y if CPU_RK3528 || CPU_RK3562 || CPU_RK3568 || CPU_RK3588
3958 help
4059 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.
60
+ enable VOP2 on Rockchip SoC, you should select this option.
4961
5062 config ROCKCHIP_ANALOGIX_DP
5163 bool "Rockchip specific extensions for Analogix DP driver"
52
- select ROCKCHIP_PSR
5364 help
5465 This selects support for Rockchip SoC specific extensions
5566 for the Analogix Core DP driver. If you want to enable DP
56
- on RK3288 based SoC, you should select this option.
67
+ on RK3288 or RK3399 based SoC, you should select this option.
5768
5869 config ROCKCHIP_CDN_DP
5970 bool "Rockchip cdn DP"
60
- depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
6171 help
6272 This selects support for Rockchip SoC specific extensions
6373 for the cdn DP driver. If you want to enable Dp on
6474 RK3399 based SoC, you should select this
6575 option.
6676
77
+config ROCKCHIP_DRM_TVE
78
+ bool "Rockchip TVE support"
79
+ depends on DRM_ROCKCHIP
80
+ help
81
+ Choose this option to enable support for Rockchip TVE controllers.
82
+ say Y to enable its driver.
83
+
6784 config ROCKCHIP_DW_HDMI
6885 bool "Rockchip specific extensions for Synopsys DW HDMI"
6986 help
7087 This selects support for Rockchip SoC specific extensions
7188 for the Synopsys DesignWare HDMI driver. If you want to
72
- enable HDMI on RK3288 based SoC, you should selet this
73
- option.
89
+ enable HDMI on RK3288 or RK3399 based SoC, you should select
90
+ this option.
7491
7592 config ROCKCHIP_DW_MIPI_DSI
7693 bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
94
+ select GENERIC_PHY_MIPI_DPHY
7795 help
7896 This selects support for Rockchip SoC specific extensions
7997 for the Synopsys DesignWare HDMI driver. If you want to
80
- enable MIPI DSI on RK3288 based SoC, you should selet this
81
- option.
98
+ enable MIPI DSI on RK3288 or RK3399 based SoC, you should
99
+ select this option.
100
+
101
+config ROCKCHIP_DW_DP
102
+ bool "Rockchip specific extensions for Synopsys DW DPTX"
103
+ help
104
+ Choose this option for Synopsys DesignWare Cores DisplayPort
105
+ transmit controller support on Rockchip SoC.
82106
83107 config ROCKCHIP_INNO_HDMI
84108 bool "Rockchip specific extensions for Innosilicon HDMI"
....@@ -96,12 +120,6 @@
96120 support LVDS, rgb, dual LVDS output mode. say Y to enable its
97121 driver.
98122
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
-
105123 config ROCKCHIP_RGB
106124 bool "Rockchip RGB support"
107125 depends on PINCTRL
....@@ -111,14 +129,32 @@
111129 and serial RGB format to panel or connect to a conversion chip.
112130 say Y to enable its driver.
113131
132
+config ROCKCHIP_RK3066_HDMI
133
+ bool "Rockchip specific extensions for RK3066 HDMI"
134
+ help
135
+ This selects support for Rockchip SoC specific extensions
136
+ for the RK3066 HDMI driver. If you want to enable
137
+ HDMI on RK3066 based SoC, you should select this option.
138
+
139
+config ROCKCHIP_VCONN
140
+ bool "Rockchip Virtual connector driver for HDMI/DP/DSI"
141
+ help
142
+ This selects support virtual HDMI/DP/DSI drived by
143
+ rockchip vop, This is used for some test.
144
+
114145 config DRM_ROCKCHIP_VVOP
115
- tristate "Rockchip virtual VOP drm driver"
146
+ bool "Rockchip virtual VOP drm driver"
116147 help
117148 Say y here if you want use some module of rockchip drm, but
118149 don't need a real vop driver(et: you just want rockchip drm
119150 gem driver to allocate memory).
120151
121
-source "drivers/gpu/drm/rockchip/ebc-dev/Kconfig"
152
+config ROCKCHIP_DW_HDCP2
153
+ tristate "Synopsis Designware HDCP2 interface"
154
+ help
155
+ Choose this option to enable support for the Synopsys
156
+ Designware HDCP2 Controller.
157
+
122158 source "drivers/gpu/drm/rockchip/rk618/Kconfig"
123159 source "drivers/gpu/drm/rockchip/rk628/Kconfig"
124160