1# SPDX-License-Identifier: GPL-2.0-only 2config DRM_ROCKCHIP 3 tristate "DRM Support for Rockchip" 4 depends on DRM && ROCKCHIP_IOMMU 5 depends on OF 6 select DRM_CLIENT_SELECTION 7 select DRM_GEM_DMA_HELPER 8 select DRM_KMS_HELPER 9 select DRM_PANEL 10 select VIDEOMODE_HELPERS 11 select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP 12 select DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP 13 select DRM_DW_DP if ROCKCHIP_DW_DP 14 select DRM_DW_HDMI if ROCKCHIP_DW_HDMI 15 select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP 16 select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI 17 select DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2 18 select DRM_INNO_HDMI if ROCKCHIP_INNO_HDMI 19 select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI 20 select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI 21 select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC 22 help 23 Choose this option if you have a Rockchip soc chipset. 24 This driver provides kernel mode setting and buffer 25 management to userspace. This driver does not provide 26 2D or 3D acceleration; acceleration is performed by other 27 IP found on the SoC. 28 29if DRM_ROCKCHIP 30 31config ROCKCHIP_VOP 32 bool "Rockchip VOP driver" 33 default y 34 help 35 This selects support for the VOP driver. You should enable it 36 on older SoCs. 37 38config ROCKCHIP_VOP2 39 bool "Rockchip VOP2 driver" 40 help 41 This selects support for the VOP2 driver. The VOP2 hardware is 42 first found on the RK3568. 43 44config ROCKCHIP_ANALOGIX_DP 45 bool "Rockchip specific extensions for Analogix DP driver" 46 depends on ROCKCHIP_VOP 47 select DRM_DISPLAY_HELPER 48 select DRM_DISPLAY_DP_HELPER 49 help 50 This selects support for Rockchip SoC specific extensions 51 for the Analogix Core DP driver. If you want to enable DP 52 on RK3288 or RK3399 based SoC, you should select this option. 53 54config ROCKCHIP_CDN_DP 55 bool "Rockchip cdn DP" 56 depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m) 57 select DRM_DISPLAY_HELPER 58 select DRM_BRIDGE_CONNECTOR 59 select DRM_DISPLAY_DP_HELPER 60 help 61 This selects support for Rockchip SoC specific extensions 62 for the cdn DP driver. If you want to enable Dp on 63 RK3399 based SoC, you should select this 64 option. 65 66config ROCKCHIP_DW_DP 67 bool "Rockchip specific extensions for Synopsys DW DP" 68 help 69 This selects support for Rockchip SoC specific extensions 70 to enable Synopsys DesignWare Cores based DisplayPort transmit 71 controller support on Rockchip SoC, If you want to enable DP on 72 rk3588 based SoC, you should select this option. 73 74config ROCKCHIP_DW_HDMI 75 bool "Rockchip specific extensions for Synopsys DW HDMI" 76 help 77 This selects support for Rockchip SoC specific extensions 78 for the Synopsys DesignWare HDMI driver. If you want to 79 enable HDMI on RK3288 or RK3399 based SoC, you should select 80 this option. 81 82config ROCKCHIP_DW_HDMI_QP 83 bool "Rockchip specific extensions for Synopsys DW HDMI QP" 84 select DRM_BRIDGE_CONNECTOR 85 help 86 This selects support for Rockchip SoC specific extensions 87 for the Synopsys DesignWare HDMI QP driver. If you want to 88 enable HDMI on RK3588 based SoC, you should select this option. 89 90config ROCKCHIP_DW_MIPI_DSI 91 bool "Rockchip specific extensions for Synopsys DW MIPI DSI" 92 select GENERIC_PHY_MIPI_DPHY 93 help 94 This selects support for Rockchip SoC specific extensions 95 for the Synopsys DesignWare dsi driver. If you want to 96 enable MIPI DSI on RK3288 or RK3399 based SoC, you should 97 select this option. 98 99config ROCKCHIP_DW_MIPI_DSI2 100 bool "Rockchip specific extensions for Synopsys DW MIPI DSI2" 101 select GENERIC_PHY_MIPI_DPHY 102 help 103 This selects support for Rockchip SoC specific extensions 104 for the Synopsys DesignWare DSI2 driver. If you want to 105 enable MIPI DSI on RK3576 or RK3588 based SoC, you should 106 select this option. 107 108config ROCKCHIP_INNO_HDMI 109 bool "Rockchip specific extensions for Innosilicon HDMI" 110 select DRM_DISPLAY_HDMI_HELPER 111 select DRM_DISPLAY_HDMI_STATE_HELPER 112 select DRM_DISPLAY_HELPER 113 help 114 This selects support for Rockchip SoC specific extensions 115 for the Innosilicon HDMI driver. If you want to enable 116 HDMI on RK3036 based SoC, you should select this option. 117 118config ROCKCHIP_LVDS 119 bool "Rockchip LVDS support" 120 depends on DRM_ROCKCHIP 121 depends on PINCTRL && OF 122 select DRM_DISPLAY_HELPER 123 select DRM_BRIDGE_CONNECTOR 124 help 125 Choose this option to enable support for Rockchip LVDS controllers. 126 Rockchip rk3288 SoC has LVDS TX Controller can be used, and it 127 support LVDS, rgb, dual LVDS output mode. say Y to enable its 128 driver. 129 130config ROCKCHIP_RGB 131 bool "Rockchip RGB support" 132 depends on DRM_ROCKCHIP 133 depends on PINCTRL 134 select DRM_DISPLAY_HELPER 135 select DRM_BRIDGE_CONNECTOR 136 help 137 Choose this option to enable support for Rockchip RGB output. 138 Some Rockchip CRTCs, like rv1108, can directly output parallel 139 and serial RGB format to panel or connect to a conversion chip. 140 say Y to enable its driver. 141 142config ROCKCHIP_RK3066_HDMI 143 bool "Rockchip specific extensions for RK3066 HDMI" 144 depends on DRM_ROCKCHIP 145 help 146 This selects support for Rockchip SoC specific extensions 147 for the RK3066 HDMI driver. If you want to enable 148 HDMI on RK3066 based SoC, you should select this option. 149endif 150