[U-Boot] [PATCH] powerpc/fm: fix TBI PHY address settings
Xie Shaohui-B21989
B21989 at freescale.com
Wed Oct 17 07:59:23 CEST 2012
> Xie Shaohui-B21989 wrote:
>
> >> Is this still true with Fman v3?
> > [S.H] No. Fman V3 does not need to set TBIPA on FM1 at DTSEC1.
>
> Does this patch break Fman V3?
[S.H] No. Fman V3 uses following code:
static void dtsec_init_phy(struct eth_device *dev)
{
struct fm_eth *fm_eth = dev->priv;
- struct dtsec *regs = (struct dtsec *)fm_eth->mac->base;
+#ifndef CONFIG_SYS_FMAN_V3
+ struct dtsec *regs = (struct dtsec *)fm_eth->mac->base;
/* Assign a Physical address to the TBI */
out_be32(®s->tbipa, CONFIG_SYS_TBIPA_VALUE);
+#endif
if (fm_eth->enet_if == PHY_INTERFACE_MODE_SGMII)
dtsec_configure_serdes(fm_eth);
The whole patch which introduced Fman V3 is at link:
http://patchwork.ozlabs.org/patch/190087/
Andy will need to merge the codes when he pick the two patches.
Best Regards,
Shaohui Xie
More information about the U-Boot
mailing list