From 16879cd25a4089cde2f3393fb09567df53402679 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Fri, 30 Mar 2018 11:52:16 -0500 Subject: net: phy: Don't limit phy addresses by default Some boards expect to find more than one phy while other boards are old and need to be limited to a specific phy address. Only limit the phy address for boards that opt in. Signed-off-by: Joe Hershberger Tested-by: Bin Meng Acked-by: Neil Armstrong Reviewed-by: Philipp Tomsich --- drivers/net/phy/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/net/phy') diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 179e0418bc..f5821dfed9 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -13,12 +13,20 @@ menuconfig PHYLIB if PHYLIB +config PHY_ADDR_ENABLE + bool "Limit phy address" + default y if ARCH_SUNXI + help + Select this if you want to control which phy address is used + +if PHY_ADDR_ENABLE config PHY_ADDR int "PHY address" default 1 if ARCH_SUNXI default 0 help The address of PHY on MII bus. Usually in range of 0 to 31. +endif config B53_SWITCH bool "Broadcom BCM53xx (RoboSwitch) Ethernet switch PHY support." -- cgit