
Hi,
On Thu, Feb 01, 2018 at 12:12:45PM +0200, Stefan Mavrodiev wrote:
By default PHY address used for sunxi boards is 1. Some new boards (A20-SOM204-EVB) uses different address.
The code enables selective PHY address via menuconfig inside ARM submenu. The option has default value of 1.
Signed-off-by: Stefan Mavrodiev stefan@olimex.com
arch/arm/mach-sunxi/Kconfig | 9 +++++++++ include/configs/sunxi-common.h | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 1fededd..034c2fd 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -838,6 +838,15 @@ config GMAC_TX_DELAY ---help--- Set the GMAC Transmit Clock Delay Chain value.
+config SUNXI_PHY_ADDR
- int "PHY address"
- default 1
- depends on SUN7I_GMAC
- ---help---
- The default PHY address for SUNXI is 1. Change this if your PHY
- is configured with different address.
You should convert CONFIG_PHY_ADDR to Kconfig instead.
This can be done quite easily using moveconfig, let us know if you need any help with it.
Maxime