summaryrefslogtreecommitdiff
path: root/drivers/net/tsec.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-09-21 22:36:23 +0200
committerWolfgang Denk <wd@denx.de>2008-09-21 22:36:23 +0200
commit3a9a000d9fba5a127786c8a859d654ba3721917b (patch)
treee35f1a35b711e5b2e6a881cfc01feae63b74f0ad /drivers/net/tsec.c
parentb5d10a13525c07ec6374adf840d7c87553b5f189 (diff)
parentce47eb402c5e29a025399dc282246414fc492940 (diff)
downloadu-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.c8
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);
}