diff options
author | Wolfgang Denk <wd@denx.de> | 2008-09-21 22:36:23 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-09-21 22:36:23 +0200 |
commit | 3a9a000d9fba5a127786c8a859d654ba3721917b (patch) | |
tree | e35f1a35b711e5b2e6a881cfc01feae63b74f0ad /drivers/net/tsec.c | |
parent | b5d10a13525c07ec6374adf840d7c87553b5f189 (diff) | |
parent | ce47eb402c5e29a025399dc282246414fc492940 (diff) | |
download | u-boot-imx-3a9a000d9fba5a127786c8a859d654ba3721917b.zip u-boot-imx-3a9a000d9fba5a127786c8a859d654ba3721917b.tar.gz u-boot-imx-3a9a000d9fba5a127786c8a859d654ba3721917b.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'drivers/net/tsec.c')
-rw-r--r-- | drivers/net/tsec.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index f81211a..8ab6d07 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -283,11 +283,13 @@ uint tsec_local_mdio_read(volatile tsec_t *phyregs, uint phyid, uint regnum) /* Configure the TBI for SGMII operation */ static void tsec_configure_serdes(struct tsec_private *priv) { - tsec_local_mdio_write(priv->phyregs, CFG_TBIPA_VALUE, TBI_ANA, + /* Access TBI PHY registers at given TSEC register offset as opposed to the + * register offset used for external PHY accesses */ + tsec_local_mdio_write(priv->regs, priv->regs->tbipa, TBI_ANA, TBIANA_SETTINGS); - tsec_local_mdio_write(priv->phyregs, CFG_TBIPA_VALUE, TBI_TBICON, + tsec_local_mdio_write(priv->regs, priv->regs->tbipa, TBI_TBICON, TBICON_CLK_SELECT); - tsec_local_mdio_write(priv->phyregs, CFG_TBIPA_VALUE, TBI_CR, + tsec_local_mdio_write(priv->regs, priv->regs->tbipa, TBI_CR, TBICR_SETTINGS); } |