Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_ROCKCHIP
3 tristate "DRM Support for Rockchip"
4 depends on DRM && ROCKCHIP_IOMMU
5 depends on OF
6 select DRM_CLIENT_SELECTION
7 select DRM_GEM_DMA_HELPER
8 select DRM_KMS_HELPER
9 select DRM_PANEL
10 select VIDEOMODE_HELPERS
11 select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
12 select DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP
13 select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
14 select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
15 select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
16 select DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2
17 select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
18 select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
19 select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
20 help
21 Choose this option if you have a Rockchip soc chipset.
22 This driver provides kernel mode setting and buffer
23 management to userspace. This driver does not provide
24 2D or 3D acceleration; acceleration is performed by other
25 IP found on the SoC.
26
27if DRM_ROCKCHIP
28
29config ROCKCHIP_VOP
30 bool "Rockchip VOP driver"
31 default y
32 help
33 This selects support for the VOP driver. You should enable it
34 on older SoCs.
35
36config ROCKCHIP_VOP2
37 bool "Rockchip VOP2 driver"
38 help
39 This selects support for the VOP2 driver. The VOP2 hardware is
40 first found on the RK3568.
41
42config ROCKCHIP_ANALOGIX_DP
43 bool "Rockchip specific extensions for Analogix DP driver"
44 depends on ROCKCHIP_VOP
45 select DRM_DISPLAY_HELPER
46 select DRM_DISPLAY_DP_HELPER
47 help
48 This selects support for Rockchip SoC specific extensions
49 for the Analogix Core DP driver. If you want to enable DP
50 on RK3288 or RK3399 based SoC, you should select this option.
51
52config ROCKCHIP_CDN_DP
53 bool "Rockchip cdn DP"
54 depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
55 select DRM_DISPLAY_HELPER
56 select DRM_BRIDGE_CONNECTOR
57 select DRM_DISPLAY_DP_HELPER
58 help
59 This selects support for Rockchip SoC specific extensions
60 for the cdn DP driver. If you want to enable Dp on
61 RK3399 based SoC, you should select this
62 option.
63
64config ROCKCHIP_DW_HDMI
65 bool "Rockchip specific extensions for Synopsys DW HDMI"
66 help
67 This selects support for Rockchip SoC specific extensions
68 for the Synopsys DesignWare HDMI driver. If you want to
69 enable HDMI on RK3288 or RK3399 based SoC, you should select
70 this option.
71
72config ROCKCHIP_DW_HDMI_QP
73 bool "Rockchip specific extensions for Synopsys DW HDMI QP"
74 select DRM_BRIDGE_CONNECTOR
75 help
76 This selects support for Rockchip SoC specific extensions
77 for the Synopsys DesignWare HDMI QP driver. If you want to
78 enable HDMI on RK3588 based SoC, you should select this option.
79
80config ROCKCHIP_DW_MIPI_DSI
81 bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
82 select GENERIC_PHY_MIPI_DPHY
83 help
84 This selects support for Rockchip SoC specific extensions
85 for the Synopsys DesignWare dsi driver. If you want to
86 enable MIPI DSI on RK3288 or RK3399 based SoC, you should
87 select this option.
88
89config ROCKCHIP_DW_MIPI_DSI2
90 bool "Rockchip specific extensions for Synopsys DW MIPI DSI2"
91 select GENERIC_PHY_MIPI_DPHY
92 help
93 This selects support for Rockchip SoC specific extensions
94 for the Synopsys DesignWare DSI2 driver. If you want to
95 enable MIPI DSI on RK3576 or RK3588 based SoC, you should
96 select this option.
97
98config ROCKCHIP_INNO_HDMI
99 bool "Rockchip specific extensions for Innosilicon HDMI"
100 select DRM_DISPLAY_HDMI_HELPER
101 select DRM_DISPLAY_HDMI_STATE_HELPER
102 select DRM_DISPLAY_HELPER
103 help
104 This selects support for Rockchip SoC specific extensions
105 for the Innosilicon HDMI driver. If you want to enable
106 HDMI on RK3036 based SoC, you should select this option.
107
108config ROCKCHIP_LVDS
109 bool "Rockchip LVDS support"
110 depends on DRM_ROCKCHIP
111 depends on PINCTRL && OF
112 select DRM_DISPLAY_HELPER
113 select DRM_BRIDGE_CONNECTOR
114 help
115 Choose this option to enable support for Rockchip LVDS controllers.
116 Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
117 support LVDS, rgb, dual LVDS output mode. say Y to enable its
118 driver.
119
120config ROCKCHIP_RGB
121 bool "Rockchip RGB support"
122 depends on DRM_ROCKCHIP
123 depends on PINCTRL
124 select DRM_DISPLAY_HELPER
125 select DRM_BRIDGE_CONNECTOR
126 help
127 Choose this option to enable support for Rockchip RGB output.
128 Some Rockchip CRTCs, like rv1108, can directly output parallel
129 and serial RGB format to panel or connect to a conversion chip.
130 say Y to enable its driver.
131
132config ROCKCHIP_RK3066_HDMI
133 bool "Rockchip specific extensions for RK3066 HDMI"
134 depends on DRM_ROCKCHIP
135 help
136 This selects support for Rockchip SoC specific extensions
137 for the RK3066 HDMI driver. If you want to enable
138 HDMI on RK3066 based SoC, you should select this option.
139endif