diff options
author | Stefan Roese <sr@denx.de> | 2008-09-22 15:26:49 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-09-22 15:26:49 +0200 |
commit | 5289feadb7857e2eaf81848aa632afa4a07bc0cc (patch) | |
tree | e35f1a35b711e5b2e6a881cfc01feae63b74f0ad /drivers/net | |
parent | 023824549a370bd185d7129d9a6c86f9be7b86a8 (diff) | |
parent | 3a9a000d9fba5a127786c8a859d654ba3721917b (diff) | |
download | u-boot-imx-5289feadb7857e2eaf81848aa632afa4a07bc0cc.zip u-boot-imx-5289feadb7857e2eaf81848aa632afa4a07bc0cc.tar.gz u-boot-imx-5289feadb7857e2eaf81848aa632afa4a07bc0cc.tar.bz2 |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
Diffstat (limited to 'drivers/net')
-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); } |