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