diff options
| author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-10 13:18:48 +0000 | 
|---|---|---|
| committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-10 13:18:48 +0000 | 
| commit | b8a4ecae67732a20840ad716c110021d0b1393f9 (patch) | |
| tree | d3993d41dbc1951de320ef7b8fe4b4aa61855aa0 /target/linux/generic/files/drivers/net/phy/ar8216.c | |
| parent | 03715e59dbcfa4249552f291f2e64557b7ccc0ce (diff) | |
generic: ar8216: add defines for the AR8316 POSTRIP register
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35539 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.c')
| -rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 4 | 
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 ec6d23266..720b0eec3 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;  | 
