aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/ar8216.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-10 13:18:48 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-10 13:18:48 +0000
commit393163b098d43ec8addb456e0c592b5fcea32f33 (patch)
treedd64643032b20144e5d99f08a219325096f2226e /target/linux/generic/files/drivers/net/phy/ar8216.c
parent5ed480598d26b56906af2a2cbc6e83582faa0df3 (diff)
downloadupstream-393163b098d43ec8addb456e0c592b5fcea32f33.tar.gz
upstream-393163b098d43ec8addb456e0c592b5fcea32f33.tar.bz2
upstream-393163b098d43ec8addb456e0c592b5fcea32f33.zip
generic: ar8216: add defines for the AR8316 POSTRIP register
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35539
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index ec6d232668..720b0eec34 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -788,7 +788,7 @@ ar8316_hw_init(struct ar8216_priv *priv)
u32 val, newval;
struct mii_bus *bus;
- val = priv->read(priv, 0x8);
+ val = priv->read(priv, AR8316_REG_POSTRIP);
if (priv->phy->interface == PHY_INTERFACE_MODE_RGMII) {
if (priv->port4_phy) {
@@ -812,7 +812,7 @@ ar8316_hw_init(struct ar8216_priv *priv)
if (val == newval)
goto out;
- priv->write(priv, 0x8, newval);
+ priv->write(priv, AR8316_REG_POSTRIP, newval);
/* Initialize the ports */
bus = priv->mii_bus;