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