[PATCH] phy: rockchip: Kconfig: Add configuration menu for Rockchip phy drivers

Cai Huoqing caihuoqing at baidu.com
Wed Sep 22 19:50:50 PDT 2021


Adding a configuration menu to hold many Rockchip phy drivers
helps to make the menu display more concise.

Signed-off-by: Cai Huoqing <caihuoqing at baidu.com>
---
 drivers/phy/rockchip/Kconfig | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/drivers/phy/rockchip/Kconfig b/drivers/phy/rockchip/Kconfig
index e812adad7242..8b6dd594f43e 100644
--- a/drivers/phy/rockchip/Kconfig
+++ b/drivers/phy/rockchip/Kconfig
@@ -2,16 +2,18 @@
 #
 # Phy drivers for Rockchip platforms
 #
+menu "PHY drivers for Rockchip platforms"
+	depends on ARCH_ROCKCHIP || COMPILE_TEST
+
 config PHY_ROCKCHIP_DP
 	tristate "Rockchip Display Port PHY Driver"
-	depends on ARCH_ROCKCHIP && OF
+	depends on OF
 	select GENERIC_PHY
 	help
 	  Enable this to support the Rockchip Display Port PHY.
 
 config PHY_ROCKCHIP_DPHY_RX0
 	tristate "Rockchip MIPI Synopsys DPHY RX0 driver"
-	depends on ARCH_ROCKCHIP || COMPILE_TEST
 	select GENERIC_PHY_MIPI_DPHY
 	select GENERIC_PHY
 	help
@@ -23,14 +25,14 @@ config PHY_ROCKCHIP_DPHY_RX0
 
 config PHY_ROCKCHIP_EMMC
 	tristate "Rockchip EMMC PHY Driver"
-	depends on ARCH_ROCKCHIP && OF
+	depends on OF
 	select GENERIC_PHY
 	help
 	  Enable this to support the Rockchip EMMC PHY.
 
 config PHY_ROCKCHIP_INNO_HDMI
 	tristate "Rockchip INNO HDMI PHY Driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	depends on COMMON_CLK
 	depends on HAS_IOMEM
 	select GENERIC_PHY
@@ -39,7 +41,7 @@ config PHY_ROCKCHIP_INNO_HDMI
 
 config PHY_ROCKCHIP_INNO_USB2
 	tristate "Rockchip INNO USB2PHY Driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	depends on COMMON_CLK
 	depends on EXTCON
 	depends on USB_SUPPORT
@@ -50,7 +52,7 @@ config PHY_ROCKCHIP_INNO_USB2
 
 config PHY_ROCKCHIP_INNO_CSIDPHY
 	tristate "Rockchip Innosilicon MIPI CSI PHY driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	select GENERIC_PHY
 	select GENERIC_PHY_MIPI_DPHY
 	help
@@ -59,7 +61,7 @@ config PHY_ROCKCHIP_INNO_CSIDPHY
 
 config PHY_ROCKCHIP_INNO_DSIDPHY
 	tristate "Rockchip Innosilicon MIPI/LVDS/TTL PHY driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	select GENERIC_PHY
 	select GENERIC_PHY_MIPI_DPHY
 	help
@@ -68,7 +70,7 @@ config PHY_ROCKCHIP_INNO_DSIDPHY
 
 config PHY_ROCKCHIP_PCIE
 	tristate "Rockchip PCIe PHY Driver"
-	depends on (ARCH_ROCKCHIP && OF) || COMPILE_TEST
+	depends on OF
 	depends on HAS_IOMEM
 	select GENERIC_PHY
 	select MFD_SYSCON
@@ -77,7 +79,7 @@ config PHY_ROCKCHIP_PCIE
 
 config PHY_ROCKCHIP_TYPEC
 	tristate "Rockchip TYPEC PHY Driver"
-	depends on OF && (ARCH_ROCKCHIP || COMPILE_TEST)
+	depends on OF
 	select EXTCON
 	select GENERIC_PHY
 	select RESET_CONTROLLER
@@ -86,7 +88,9 @@ config PHY_ROCKCHIP_TYPEC
 
 config PHY_ROCKCHIP_USB
 	tristate "Rockchip USB2 PHY Driver"
-	depends on ARCH_ROCKCHIP && OF
+	depends on OF
 	select GENERIC_PHY
 	help
 	  Enable this to support the Rockchip USB 2.0 PHY.
+
+endmenu
-- 
2.25.1




More information about the linux-arm-kernel mailing list