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