diff mbox series

phy: rockchip: Kconfig: Add configuration menu for Rockchip phy drivers

Message ID 20210923025051.454-1-caihuoqing@baidu.com
State Rejected
Headers show
Series phy: rockchip: Kconfig: Add configuration menu for Rockchip phy drivers | expand

Commit Message

Cai,Huoqing Sept. 23, 2021, 2:50 a.m. UTC
Adding a configuration menu to hold many Rockchip phy drivers
helps to make the menu display more concise.

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

Patch

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