[PATCH] phy: mediatek: Kconfig: Add configuration menu for Mediatek phy drivers

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


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

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

diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig
index 55f8e6c048ab..5da045813b5a 100644
--- a/drivers/phy/mediatek/Kconfig
+++ b/drivers/phy/mediatek/Kconfig
@@ -2,9 +2,11 @@
 #
 # Phy drivers for Mediatek devices
 #
+menu "PHY drivers for Mediatek platforms"
+	depends on ARCH_MEDIATEK || COMPILE_TEST
+
 config PHY_MTK_TPHY
 	tristate "MediaTek T-PHY Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on OF && OF_ADDRESS
 	depends on HAS_IOMEM
 	select GENERIC_PHY
@@ -18,7 +20,6 @@ config PHY_MTK_TPHY
 
 config PHY_MTK_UFS
 	tristate "MediaTek UFS M-PHY driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on OF
 	select GENERIC_PHY
 	help
@@ -29,7 +30,6 @@ config PHY_MTK_UFS
 
 config PHY_MTK_XSPHY
 	tristate "MediaTek XS-PHY Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on OF && OF_ADDRESS
 	depends on HAS_IOMEM
 	select GENERIC_PHY
@@ -40,7 +40,6 @@ config PHY_MTK_XSPHY
 
 config PHY_MTK_HDMI
 	tristate "MediaTek HDMI-PHY Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on COMMON_CLK
 	depends on OF
 	select GENERIC_PHY
@@ -49,9 +48,10 @@ config PHY_MTK_HDMI
 
 config PHY_MTK_MIPI_DSI
 	tristate "MediaTek MIPI-DSI Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on COMMON_CLK
 	depends on OF
 	select GENERIC_PHY
 	help
 	  Support MIPI DSI for Mediatek SoCs.
+
+endmenu
-- 
2.25.1




More information about the linux-arm-kernel mailing list