1# SPDX-License-Identifier: GPL-2.0-only 2config DRM_ROCKCHIP 3 tristate "DRM Support for Rockchip" 4 depends on DRM 5 select DRM_GEM_CMA_HELPER 6 select DRM_KMS_HELPER 7 select DRM_PANEL 8 select VIDEOMODE_HELPERS 9 select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP 10 select DRM_DW_HDMI if ROCKCHIP_DW_HDMI 11 select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI 12 select DRM_RGB if ROCKCHIP_RGB 13 select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC 14 help 15 Choose this option if you have a Rockchip soc chipset. 16 This driver provides kernel mode setting and buffer 17 management to userspace. This driver does not provide 18 2D or 3D acceleration; acceleration is performed by other 19 IP found on the SoC. 20 21if DRM_ROCKCHIP 22 23config ROCKCHIP_DRM_DEBUG 24 bool "Rockchip DRM debug" 25 depends on DEBUG_FS 26 help 27 This option add a debug node to dump buf from userspace 28 dump buffer store at: /data 29 debug node: /d/dri/0/ff900000.vop/vop_dump/dump 30 cat /d/dri/0/ff900000.vop/vop_dump/dump get more help 31 the upper ff900000.vop is different at different SOC platform. 32 33config ROCKCHIP_DRM_DIRECT_SHOW 34 bool "Rockchip DRM direct show" 35 help 36 This is a quick display scheme api in kernel space. 37 38config ROCKCHIP_DRM_SELF_TEST 39 bool "Rockchip DRM self test case" 40 depends on ROCKCHIP_DRM_DIRECT_SHOW 41 help 42 This offer setf test demo to display image at kernel space. 43 44config ROCKCHIP_VOP 45 bool "Rockchip VOP driver" 46 default y if (CPU_RK3036 || CPU_RK30XX || CPU_RK312X || \ 47 CPU_PX30 || CPU_RK3308 || CPU_RV1106 || \ 48 CPU_RV1126 || CPU_RK3288 || CPU_RK3368 || \ 49 CPU_RK3399 || CPU_RK322X || CPU_RK3328) && \ 50 !ROCKCHIP_MINI_KERNEL 51 help 52 This selects support for the VOP driver.If you want to 53 enable VOP on Rockchip SoC, you should select this option. 54 55config ROCKCHIP_VOP2 56 bool "Rockchip VOP2 driver" 57 default y if CPU_RK3528 || CPU_RK3562 || CPU_RK3568 || CPU_RK3588 58 help 59 This selects support for the VOP2 driver. If you want to 60 enable VOP2 on Rockchip SoC, you should select this option. 61 62config ROCKCHIP_ANALOGIX_DP 63 bool "Rockchip specific extensions for Analogix DP driver" 64 help 65 This selects support for Rockchip SoC specific extensions 66 for the Analogix Core DP driver. If you want to enable DP 67 on RK3288 or RK3399 based SoC, you should select this option. 68 69config ROCKCHIP_CDN_DP 70 bool "Rockchip cdn DP" 71 help 72 This selects support for Rockchip SoC specific extensions 73 for the cdn DP driver. If you want to enable Dp on 74 RK3399 based SoC, you should select this 75 option. 76 77config ROCKCHIP_DRM_TVE 78 bool "Rockchip TVE support" 79 depends on DRM_ROCKCHIP 80 help 81 Choose this option to enable support for Rockchip TVE controllers. 82 say Y to enable its driver. 83 84config ROCKCHIP_DW_HDMI 85 bool "Rockchip specific extensions for Synopsys DW HDMI" 86 help 87 This selects support for Rockchip SoC specific extensions 88 for the Synopsys DesignWare HDMI driver. If you want to 89 enable HDMI on RK3288 or RK3399 based SoC, you should select 90 this option. 91 92config ROCKCHIP_DW_MIPI_DSI 93 bool "Rockchip specific extensions for Synopsys DW MIPI DSI" 94 select GENERIC_PHY_MIPI_DPHY 95 help 96 This selects support for Rockchip SoC specific extensions 97 for the Synopsys DesignWare HDMI driver. If you want to 98 enable MIPI DSI on RK3288 or RK3399 based SoC, you should 99 select this option. 100 101config ROCKCHIP_DW_DP 102 bool "Rockchip specific extensions for Synopsys DW DPTX" 103 help 104 Choose this option for Synopsys DesignWare Cores DisplayPort 105 transmit controller support on Rockchip SoC. 106 107config ROCKCHIP_INNO_HDMI 108 bool "Rockchip specific extensions for Innosilicon HDMI" 109 help 110 This selects support for Rockchip SoC specific extensions 111 for the Innosilicon HDMI driver. If you want to enable 112 HDMI on RK3036 based SoC, you should select this option. 113 114config ROCKCHIP_LVDS 115 bool "Rockchip LVDS support" 116 depends on PINCTRL && OF 117 help 118 Choose this option to enable support for Rockchip LVDS controllers. 119 Rockchip rk3288 SoC has LVDS TX Controller can be used, and it 120 support LVDS, rgb, dual LVDS output mode. say Y to enable its 121 driver. 122 123config ROCKCHIP_RGB 124 bool "Rockchip RGB support" 125 depends on PINCTRL 126 help 127 Choose this option to enable support for Rockchip RGB output. 128 Some Rockchip CRTCs, like rv1108, can directly output parallel 129 and serial RGB format to panel or connect to a conversion chip. 130 say Y to enable its driver. 131 132config ROCKCHIP_RK3066_HDMI 133 bool "Rockchip specific extensions for RK3066 HDMI" 134 help 135 This selects support for Rockchip SoC specific extensions 136 for the RK3066 HDMI driver. If you want to enable 137 HDMI on RK3066 based SoC, you should select this option. 138 139config ROCKCHIP_VCONN 140 bool "Rockchip Virtual connector driver for HDMI/DP/DSI" 141 help 142 This selects support virtual HDMI/DP/DSI drived by 143 rockchip vop, This is used for some test. 144 145config DRM_ROCKCHIP_VVOP 146 bool "Rockchip virtual VOP drm driver" 147 help 148 Say y here if you want use some module of rockchip drm, but 149 don't need a real vop driver(et: you just want rockchip drm 150 gem driver to allocate memory). 151 152config ROCKCHIP_DW_HDCP2 153 tristate "Synopsis Designware HDCP2 interface" 154 help 155 Choose this option to enable support for the Synopsys 156 Designware HDCP2 Controller. 157 158source "drivers/gpu/drm/rockchip/rk618/Kconfig" 159source "drivers/gpu/drm/rockchip/rk628/Kconfig" 160 161endif 162