[PATCH] phy: amlogic: Kconfig: Add configuration menu for Amlogic phy drivers

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


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

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

diff --git a/drivers/phy/amlogic/Kconfig b/drivers/phy/amlogic/Kconfig
index db5d0cd757e3..f16802831d56 100644
--- a/drivers/phy/amlogic/Kconfig
+++ b/drivers/phy/amlogic/Kconfig
@@ -2,10 +2,12 @@
 #
 # Phy drivers for Amlogic platforms
 #
+menu "PHY drivers for Amlogic platforms"
+	depends on OF && (ARCH_MESON || COMPILE_TEST)
+
 config PHY_MESON8B_USB2
 	tristate "Meson8, Meson8b, Meson8m2 and GXBB USB2 PHY driver"
 	default ARCH_MESON
-	depends on OF && (ARCH_MESON || COMPILE_TEST)
 	depends on USB_SUPPORT
 	select USB_COMMON
 	select GENERIC_PHY
@@ -18,7 +20,6 @@ config PHY_MESON8B_USB2
 config PHY_MESON_GXL_USB2
 	tristate "Meson GXL and GXM USB2 PHY drivers"
 	default ARCH_MESON
-	depends on OF && (ARCH_MESON || COMPILE_TEST)
 	depends on USB_SUPPORT
 	select GENERIC_PHY
 	select REGMAP_MMIO
@@ -30,7 +31,6 @@ config PHY_MESON_GXL_USB2
 config PHY_MESON_G12A_USB2
 	tristate "Meson G12A USB2 PHY driver"
 	default ARCH_MESON
-	depends on OF && (ARCH_MESON || COMPILE_TEST)
 	select GENERIC_PHY
 	select REGMAP_MMIO
 	help
@@ -41,7 +41,6 @@ config PHY_MESON_G12A_USB2
 config PHY_MESON_G12A_USB3_PCIE
 	tristate "Meson G12A USB3+PCIE Combo PHY driver"
 	default ARCH_MESON
-	depends on OF && (ARCH_MESON || COMPILE_TEST)
 	select GENERIC_PHY
 	select REGMAP_MMIO
 	help
@@ -52,7 +51,6 @@ config PHY_MESON_G12A_USB3_PCIE
 config PHY_MESON_AXG_PCIE
 	tristate "Meson AXG PCIE PHY driver"
 	default ARCH_MESON
-	depends on OF && (ARCH_MESON || COMPILE_TEST)
 	select GENERIC_PHY
 	select REGMAP_MMIO
 	help
@@ -63,7 +61,6 @@ config PHY_MESON_AXG_PCIE
 config PHY_MESON_AXG_MIPI_PCIE_ANALOG
 	tristate "Meson AXG MIPI + PCIE analog PHY driver"
 	default ARCH_MESON
-	depends on OF && (ARCH_MESON || COMPILE_TEST)
 	select GENERIC_PHY
 	select REGMAP_MMIO
 	select GENERIC_PHY_MIPI_DPHY
@@ -75,7 +72,6 @@ config PHY_MESON_AXG_MIPI_PCIE_ANALOG
 config PHY_MESON_AXG_MIPI_DPHY
 	tristate "Meson AXG MIPI DPHY driver"
 	default ARCH_MESON
-	depends on OF && (ARCH_MESON || COMPILE_TEST)
 	select GENERIC_PHY
 	select REGMAP_MMIO
 	select GENERIC_PHY_MIPI_DPHY
@@ -83,3 +79,5 @@ config PHY_MESON_AXG_MIPI_DPHY
 	  Enable this to support the Meson MIPI DPHY found in Meson AXG
 	  SoCs.
 	  If unsure, say N.
+
+endmenu
-- 
2.25.1




More information about the linux-phy mailing list