xref: /linux/drivers/gpu/drm/rockchip/Kconfig (revision 2d4f7bdafd709a5cf38f42358bd4c31c621a3e1b)
12048e328SMark Yaoconfig DRM_ROCKCHIP
22048e328SMark Yao	tristate "DRM Support for Rockchip"
32048e328SMark Yao	depends on DRM && ROCKCHIP_IOMMU
42a6ae85aSArnd Bergmann	select DRM_GEM_CMA_HELPER
52048e328SMark Yao	select DRM_KMS_HELPER
62048e328SMark Yao	select DRM_PANEL
72048e328SMark Yao	select VIDEOMODE_HELPERS
8b9670ca2SArnd Bergmann	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
9b9670ca2SArnd Bergmann	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
10*2d4f7bdaSNickey Yang	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
111f0f0151SSandy Huang	select DRM_RGB if ROCKCHIP_RGB
12b9670ca2SArnd Bergmann	select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
132048e328SMark Yao	help
142048e328SMark Yao	  Choose this option if you have a Rockchip soc chipset.
152048e328SMark Yao	  This driver provides kernel mode setting and buffer
162048e328SMark Yao	  management to userspace. This driver does not provide
172048e328SMark Yao	  2D or 3D acceleration; acceleration is performed by other
182048e328SMark Yao	  IP found on the SoC.
1912b9f204SAndy Yan
20b9670ca2SArnd Bergmannif DRM_ROCKCHIP
21b9670ca2SArnd Bergmann
229e32e16eSYakir Yangconfig ROCKCHIP_ANALOGIX_DP
238820b68bSJeffy Chen	bool "Rockchip specific extensions for Analogix DP driver"
249e32e16eSYakir Yang	help
259e32e16eSYakir Yang	  This selects support for Rockchip SoC specific extensions
269e32e16eSYakir Yang	  for the Analogix Core DP driver. If you want to enable DP
27dc879f61SSandy Huang	  on RK3288 or RK3399 based SoC, you should select this option.
289e32e16eSYakir Yang
291a0f7ed3SChris Zhongconfig ROCKCHIP_CDN_DP
308820b68bSJeffy Chen        bool "Rockchip cdn DP"
31b9670ca2SArnd Bergmann	depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
321a0f7ed3SChris Zhong        help
331a0f7ed3SChris Zhong	  This selects support for Rockchip SoC specific extensions
341a0f7ed3SChris Zhong	  for the cdn DP driver. If you want to enable Dp on
351a0f7ed3SChris Zhong	  RK3399 based SoC, you should select this
361a0f7ed3SChris Zhong	  option.
371a0f7ed3SChris Zhong
3812b9f204SAndy Yanconfig ROCKCHIP_DW_HDMI
398820b68bSJeffy Chen        bool "Rockchip specific extensions for Synopsys DW HDMI"
4012b9f204SAndy Yan        help
4112b9f204SAndy Yan	  This selects support for Rockchip SoC specific extensions
4212b9f204SAndy Yan	  for the Synopsys DesignWare HDMI driver. If you want to
43dc879f61SSandy Huang	  enable HDMI on RK3288 or RK3399 based SoC, you should select
44dc879f61SSandy Huang	  this option.
4584e05408SChris Zhong
4684e05408SChris Zhongconfig ROCKCHIP_DW_MIPI_DSI
478820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
4884e05408SChris Zhong	help
4984e05408SChris Zhong	  This selects support for Rockchip SoC specific extensions
5084e05408SChris Zhong	  for the Synopsys DesignWare HDMI driver. If you want to
51dc879f61SSandy Huang	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
52dc879f61SSandy Huang	  select this option.
53412d4ae6SYakir Yang
54412d4ae6SYakir Yangconfig ROCKCHIP_INNO_HDMI
558820b68bSJeffy Chen	bool "Rockchip specific extensions for Innosilicon HDMI"
56412d4ae6SYakir Yang	help
57412d4ae6SYakir Yang	  This selects support for Rockchip SoC specific extensions
58412d4ae6SYakir Yang	  for the Innosilicon HDMI driver. If you want to enable
59412d4ae6SYakir Yang	  HDMI on RK3036 based SoC, you should select this option.
60b9670ca2SArnd Bergmann
6134cc0aa2SSandy Huangconfig ROCKCHIP_LVDS
6234cc0aa2SSandy Huang	bool "Rockchip LVDS support"
6334cc0aa2SSandy Huang	depends on DRM_ROCKCHIP
6430cfcf01SArnd Bergmann	depends on PINCTRL && OF
6534cc0aa2SSandy Huang	help
6634cc0aa2SSandy Huang	  Choose this option to enable support for Rockchip LVDS controllers.
6734cc0aa2SSandy Huang	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
6834cc0aa2SSandy Huang	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
6934cc0aa2SSandy Huang	  driver.
701f0f0151SSandy Huang
711f0f0151SSandy Huangconfig ROCKCHIP_RGB
721f0f0151SSandy Huang	bool "Rockchip RGB support"
731f0f0151SSandy Huang	depends on DRM_ROCKCHIP
741f0f0151SSandy Huang	depends on PINCTRL
751f0f0151SSandy Huang	help
761f0f0151SSandy Huang	  Choose this option to enable support for Rockchip RGB output.
771f0f0151SSandy Huang	  Some Rockchip CRTCs, like rv1108, can directly output parallel
781f0f0151SSandy Huang	  and serial RGB format to panel or connect to a conversion chip.
791f0f0151SSandy Huang	  say Y to enable its driver.
80b9670ca2SArnd Bergmannendif
81