From 61598093bbdd283a7edc367d900f223070ead8d2 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:43:03 +0000
Subject: [PATCH] add ax88772C AX88772C_eeprom_tools

---
 kernel/drivers/gpu/drm/rockchip/Kconfig |   98 +++++++++++++++++++++++++++++++++---------------
 1 files changed, 67 insertions(+), 31 deletions(-)

diff --git a/kernel/drivers/gpu/drm/rockchip/Kconfig b/kernel/drivers/gpu/drm/rockchip/Kconfig
index 9823788..3154597 100644
--- a/kernel/drivers/gpu/drm/rockchip/Kconfig
+++ b/kernel/drivers/gpu/drm/rockchip/Kconfig
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-only
 config DRM_ROCKCHIP
 	tristate "DRM Support for Rockchip"
 	depends on DRM
@@ -7,7 +8,8 @@
 	select VIDEOMODE_HELPERS
 	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
 	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
-	select DRM_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
+	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
+	select DRM_RGB if ROCKCHIP_RGB
 	select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
 	help
 	  Choose this option if you have a Rockchip soc chipset.
@@ -19,66 +21,88 @@
 if DRM_ROCKCHIP
 
 config ROCKCHIP_DRM_DEBUG
-	tristate "Rockchip DRM debug"
+	bool "Rockchip DRM debug"
+	depends on DEBUG_FS
 	help
-	  This option add a debug node to dump buf from application.
-	  dump buffer store at: /data/vop_buf
+	  This option add a debug node to dump buf from userspace
+	  dump buffer store at: /data
 	  debug node: /d/dri/0/ff900000.vop/vop_dump/dump
-	  cat /d/dri/0/ff900000.vop/vop_dump/dump get more help.
+	  cat /d/dri/0/ff900000.vop/vop_dump/dump get more help
+	  the upper ff900000.vop is different at different SOC platform.
+
+config ROCKCHIP_DRM_DIRECT_SHOW
+	bool "Rockchip DRM direct show"
+	help
+	  This is a quick display scheme api in kernel space.
+
+config ROCKCHIP_DRM_SELF_TEST
+	bool "Rockchip DRM self test case"
+	depends on ROCKCHIP_DRM_DIRECT_SHOW
+	help
+	  This offer setf test demo to display image at kernel space.
 
 config ROCKCHIP_VOP
 	bool "Rockchip VOP driver"
-	default y
+	default y if (CPU_RK3036 || CPU_RK30XX || CPU_RK312X || \
+		      CPU_PX30   || CPU_RK3308 || CPU_RV1106 || \
+		      CPU_RV1126 || CPU_RK3288 || CPU_RK3368 || \
+		      CPU_RK3399 || CPU_RK322X || CPU_RK3328) && \
+		      !ROCKCHIP_MINI_KERNEL
 	help
 	  This selects support for the VOP driver.If you want to
-	  enable VOP on Rockchip SoC, you should selet this option.
+	  enable VOP on Rockchip SoC, you should select this option.
 
 config ROCKCHIP_VOP2
 	bool "Rockchip VOP2 driver"
-	default y if !CPU_RV1126
+	default y if CPU_RK3528 || CPU_RK3562 || CPU_RK3568 || CPU_RK3588
 	help
 	  This selects support for the VOP2 driver. If you want to
-	  enable VOP2 on RK3566 and RK3568 based SoC, you should
-	  selet this option.
-
-config ROCKCHIP_PSR
-	bool
-	help
-	  If you want to enable PSR function on Rockchip SoC, you
-	  should select this option.
+	  enable VOP2 on Rockchip SoC, you should select this option.
 
 config ROCKCHIP_ANALOGIX_DP
 	bool "Rockchip specific extensions for Analogix DP driver"
-	select ROCKCHIP_PSR
 	help
 	  This selects support for Rockchip SoC specific extensions
 	  for the Analogix Core DP driver. If you want to enable DP
-	  on RK3288 based SoC, you should select this option.
+	  on RK3288 or RK3399 based SoC, you should select this option.
 
 config ROCKCHIP_CDN_DP
 	bool "Rockchip cdn DP"
-	depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
 	help
 	  This selects support for Rockchip SoC specific extensions
 	  for the cdn DP driver. If you want to enable Dp on
 	  RK3399 based SoC, you should select this
 	  option.
 
+config ROCKCHIP_DRM_TVE
+	bool "Rockchip TVE support"
+	depends on DRM_ROCKCHIP
+	help
+	  Choose this option to enable support for Rockchip TVE controllers.
+	  say Y to enable its driver.
+
 config ROCKCHIP_DW_HDMI
 	bool "Rockchip specific extensions for Synopsys DW HDMI"
 	help
 	  This selects support for Rockchip SoC specific extensions
 	  for the Synopsys DesignWare HDMI driver. If you want to
-	  enable HDMI on RK3288 based SoC, you should selet this
-	  option.
+	  enable HDMI on RK3288 or RK3399 based SoC, you should select
+	  this option.
 
 config ROCKCHIP_DW_MIPI_DSI
 	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
+	select GENERIC_PHY_MIPI_DPHY
 	help
 	  This selects support for Rockchip SoC specific extensions
 	  for the Synopsys DesignWare HDMI driver. If you want to
-	  enable MIPI DSI on RK3288 based SoC, you should selet this
-	  option.
+	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
+	  select this option.
+
+config ROCKCHIP_DW_DP
+	bool "Rockchip specific extensions for Synopsys DW DPTX"
+	help
+	  Choose this option for Synopsys DesignWare Cores DisplayPort
+	  transmit controller support on Rockchip SoC.
 
 config ROCKCHIP_INNO_HDMI
 	bool "Rockchip specific extensions for Innosilicon HDMI"
@@ -96,12 +120,6 @@
 	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
 	  driver.
 
-config ROCKCHIP_DRM_TVE
-	bool "Rockchip TVE support"
-	help
-	  Choose this option to enable support for Rockchip TVE controllers.
-	  say Y to enable its driver.
-
 config ROCKCHIP_RGB
 	bool "Rockchip RGB support"
 	depends on PINCTRL
@@ -111,14 +129,32 @@
 	  and serial RGB format to panel or connect to a conversion chip.
 	  say Y to enable its driver.
 
+config ROCKCHIP_RK3066_HDMI
+	bool "Rockchip specific extensions for RK3066 HDMI"
+	help
+	  This selects support for Rockchip SoC specific extensions
+	  for the RK3066 HDMI driver. If you want to enable
+	  HDMI on RK3066 based SoC, you should select this option.
+
+config ROCKCHIP_VCONN
+	bool "Rockchip Virtual connector driver for HDMI/DP/DSI"
+	help
+	  This selects support virtual HDMI/DP/DSI drived by
+	  rockchip vop, This is used for some test.
+
 config DRM_ROCKCHIP_VVOP
-	tristate "Rockchip virtual VOP drm driver"
+	bool "Rockchip virtual VOP drm driver"
 	help
 	  Say y here if you want use some module of rockchip drm, but
 	  don't need a real vop driver(et: you just want rockchip drm
 	  gem driver to allocate memory).
 
-source "drivers/gpu/drm/rockchip/ebc-dev/Kconfig"
+config ROCKCHIP_DW_HDCP2
+	tristate "Synopsis Designware HDCP2 interface"
+	help
+	  Choose this option to enable support for the Synopsys
+	  Designware HDCP2 Controller.
+
 source "drivers/gpu/drm/rockchip/rk618/Kconfig"
 source "drivers/gpu/drm/rockchip/rk628/Kconfig"
 

--
Gitblit v1.6.2