From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH][v2] powerpc/T4240QDS/eth: some fix for XFI
Date: Wed, 20 Aug 2014 12:40:34 -0700 [thread overview]
Message-ID: <53F4F9B2.7020805@freescale.com> (raw)
In-Reply-To: <1407925155-32585-1-git-send-email-shh.xie@gmail.com>
On 08/13/2014 03:19 AM, shh.xie at gmail.com wrote:
> From: Shaohui Xie <Shaohui.Xie@freescale.com>
>
> XFI is supported on T4QDS-XFI board, which removed slot3, and four LANEs
> of serdes2 are routed to a SFP+ cages, which to house fiber cable or
> direct attach cable(copper), the copper cable is used to emulate the
> 10GBASE-KR scenario.
>
> So, for XFI usage, there are two scenarios, one will use fiber cable,
> another will use copper cable. For fiber cable, there is NO PHY, while
> for copper cable, we need to use internal PHY which exist in Serdes to
> do auto-negotiation and link training, which implemented in kernel.
> We use hwconfig to define cable type for XFI, and fixup dtb based on the
> cable type.
>
> For copper cable, set below env in hwconfig:
>
> fsl_10gkr_copper:<10g_mac_name>
>
> the <10g_mac_name> can be fm1_10g1, fm1_10g2, fm2_10g1, fm2_10g2. The
> four <10g_mac_name>s do not have to be coexist in hwconfig. For XFI ports,
> if a given 10G port will use the copper cable for 10GBASE-KR, set the
> <10g_mac_name> of the port in hwconfig, otherwise, fiber cable will be
> assumed to be used for the port.
>
> For ex. if four XFI ports will both use copper cable, the hwconfig
> should contain:
>
> fsl_10gkr_copper:fm1_10g1,fm1_10g2,fm2_10g1,fm2_10g2
>
> For fiber cable:
>
> 1. give PHY address to a XFI port, otherwise, the XFI ports will not be
> available in U-boot, there is no PHY physically for XFI when using fiber
> cable, this is just to make U-boot happy and we can use the XFI ports
> in U-boot.
> 2. fixup dtb to use fixed-link in case of fiber cable which has no PHY.
> Kernel requests that a MAC must have a PHY or fixed-link.
>
> When using XFI protocol, the MAC 9/10 on FM1 should init as 10G interface.
>
> Change serdes 2 protocol 56 to 55 which has same feature as 56 since 56
> is not valid any longer.
>
> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
> ---
> changes for V2:
> added XFI information in README.t4240qds
>
Applied to u-boot-mpc85xx master branch, awaiting for upstream.
York
prev parent reply other threads:[~2014-08-20 19:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-13 10:19 [U-Boot] [PATCH][v2] powerpc/T4240QDS/eth: some fix for XFI shh.xie at gmail.com
2014-08-20 19:40 ` York Sun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F4F9B2.7020805@freescale.com \
--to=yorksun@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.