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