[U-Boot] [PATCH 2/2] net: zynq_gem: Add SGMII support for zynqMP

Joe Hershberger joe.hershberger at gmail.com
Tue Apr 26 00:20:31 CEST 2016


On Thu, Mar 31, 2016 at 3:53 AM, Michal Simek <michal.simek at xilinx.com> wrote:
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu at xilinx.com>
>
> PCS auto negotaiation bit should be enabled
> along with SGMII autonegotation enabled
> in phy.
>
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/net/zynq_gem.c | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
> index 52a8f2760012..aec8077f10b3 100644
> --- a/drivers/net/zynq_gem.c
> +++ b/drivers/net/zynq_gem.c
> @@ -93,6 +93,8 @@ DECLARE_GLOBAL_DATA_PTR;
>
>  #define ZYNQ_GEM_TSR_DONE              0x00000020 /* Tx done mask */
>
> +#define ZYNQ_GEM_PCS_CTL_ANEG_ENBL     0x1000

Use BIT() macro, please.

> +
>  /* Use MII register 1 (MII status register) to detect PHY */
>  #define PHY_DETECT_REG  1
>

Otherwise,

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list