phy: socionext: Kconfig: Add configuration menu for Socionext phy drivers

Started by Cai Huoqing on Sep 23, 2021

Subsystems (2)

Maintainers (2)

DORMANTno replies

open the first message on its own page

Message details and related content
Adding a configuration menu to hold many Socionext phy drivers
helps to make the menu display more concise.

Signed-off-by: Cai Huoqing <redacted>
---
 drivers/phy/socionext/Kconfig | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/drivers/phy/socionext/Kconfig b/drivers/phy/socionext/Kconfig
index a3970e0f89da..44241cdca97a 100644
--- a/drivers/phy/socionext/Kconfig
+++ b/drivers/phy/socionext/Kconfig
@@ -2,11 +2,12 @@
 #
 # PHY drivers for Socionext platforms.
 #
+menu "PHY drivers for Socionext platforms"
+	depends on ARCH_UNIPHIER || COMPILE_TEST
+	depends on OF && HAS_IOMEM
 
 config PHY_UNIPHIER_USB2
 	tristate "UniPhier USB2 PHY driver"
-	depends on ARCH_UNIPHIER || COMPILE_TEST
-	depends on OF && HAS_IOMEM
 	select GENERIC_PHY
 	select MFD_SYSCON
 	help
@@ -18,8 +19,6 @@ config PHY_UNIPHIER_USB2
 
 config PHY_UNIPHIER_USB3
 	tristate "UniPhier USB3 PHY driver"
-	depends on ARCH_UNIPHIER || COMPILE_TEST
-	depends on OF && HAS_IOMEM
 	select GENERIC_PHY
 	help
 	  Enable this to support USB PHY implemented in USB3 controller
@@ -27,8 +26,6 @@ config PHY_UNIPHIER_USB3
 
 config PHY_UNIPHIER_PCIE
 	tristate "Uniphier PHY driver for PCIe controller"
-	depends on ARCH_UNIPHIER || COMPILE_TEST
-	depends on OF && HAS_IOMEM
 	default PCIE_UNIPHIER
 	select GENERIC_PHY
 	help
@@ -37,10 +34,10 @@ config PHY_UNIPHIER_PCIE
 
 config PHY_UNIPHIER_AHCI
 	tristate "UniPhier AHCI PHY driver"
-	depends on ARCH_UNIPHIER || COMPILE_TEST
-	depends on OF && HAS_IOMEM
 	default SATA_AHCI_PLATFORM
 	select GENERIC_PHY
 	help
 	  Enable this to support PHY implemented in AHCI controller
 	  on UniPhier SoCs. This driver supports PXs2 and PXs3 SoCs.
+
+endmenu
-- 
2.25.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help