RE: [PATCH rza_u-boot-2017.05 2/2] rza2mevb: Use second Ethernet port if first one is not available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert,

Thank you!

Applied.

Chris

On Thu, Jul 04, 2019 1, Geert Uytterhoeven wrote:
> When SW6-4 is switched off, the first Ethernet port is not available,
> and thus doesn't work.  Hence fall back to using the second port
> instead.
> 
> This allows to use TFTP when SDRAM is enabled (RZA2M_ENABLE_SDRAM is
> defined), and the serial console is moved to SCIF2.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> ---
>  include/configs/rza2mevb.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/include/configs/rza2mevb.h b/include/configs/rza2mevb.h
> index 7ac9b8f80e329288..a217d668eedae631 100644
> --- a/include/configs/rza2mevb.h
> +++ b/include/configs/rza2mevb.h
> @@ -216,7 +216,11 @@
>  /* Network interface */
>  #if (SW6_4 == SW_ON) || (SW6_5 == SW_ON)
>  #define CONFIG_SH_ETHER
> +#if (SW6_4 == SW_ON)
>  #define CONFIG_SH_ETHER_USE_PORT	0
> +#else
> +#define CONFIG_SH_ETHER_USE_PORT	1
> +#endif
>  #define CONFIG_SH_ETHER_PHY_ADDR	0
>  #define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
>  #define CONFIG_PHYLIB
> --
> 2.17.1





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux