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