[U-Boot] [PATCH 1/3] sunxi: Add selective PHY address

Maxime Ripard maxime.ripard at free-electrons.com
Thu Feb 1 14:16:08 UTC 2018


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 at 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

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180201/c6d6e387/attachment.sig>


More information about the U-Boot mailing list