diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-02-04 02:31:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-02-04 02:31:00 +0000 |
commit | 76ccac5970ffd83eb5bf3c966fc9e9168007f96b (patch) | |
tree | 53cda6674a31ce84226fbf915b4b19917e43b58b /target/linux/atheros-2.6/patches | |
parent | 23a17d34016df6f92bcd157e17da91c0df7a6d0a (diff) | |
download | upstream-76ccac5970ffd83eb5bf3c966fc9e9168007f96b.tar.gz upstream-76ccac5970ffd83eb5bf3c966fc9e9168007f96b.tar.bz2 upstream-76ccac5970ffd83eb5bf3c966fc9e9168007f96b.zip |
force MII access in AR2313 ethernet to KSEG1 instead of physical addresses - why the fsck has this ever worked for anybody??
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6258 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros-2.6/patches')
-rw-r--r-- | target/linux/atheros-2.6/patches/130-ar2313_ethernet.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/atheros-2.6/patches/130-ar2313_ethernet.patch b/target/linux/atheros-2.6/patches/130-ar2313_ethernet.patch index b1ae0503db..7040543351 100644 --- a/target/linux/atheros-2.6/patches/130-ar2313_ethernet.patch +++ b/target/linux/atheros-2.6/patches/130-ar2313_ethernet.patch @@ -1527,7 +1527,7 @@ diff -urN linux.old/drivers/net/ar2313/ar2313.c linux.eth/drivers/net/ar2313/ar2 +{ + volatile ETHERNET_STRUCT * ethernet; + -+ ethernet = (volatile ETHERNET_STRUCT *)(ar_eth_base); /* always MAC 0 */ ++ ethernet = (volatile ETHERNET_STRUCT *)KSEG1ADDR(ar_eth_base); /* always MAC 0 */ + ethernet->mii_addr = ((reg << MII_ADDR_REG_SHIFT) | + (phy << MII_ADDR_PHY_SHIFT)); + while (ethernet->mii_addr & MII_ADDR_BUSY); @@ -1539,7 +1539,7 @@ diff -urN linux.old/drivers/net/ar2313/ar2313.c linux.eth/drivers/net/ar2313/ar2 +{ + volatile ETHERNET_STRUCT * ethernet; + -+ ethernet = (volatile ETHERNET_STRUCT *)(ar_eth_base); /* always MAC 0 */ ++ ethernet = (volatile ETHERNET_STRUCT *)KSEG1ADDR(ar_eth_base); /* always MAC 0 */ + while (ethernet->mii_addr & MII_ADDR_BUSY); + ethernet->mii_data = data << MII_DATA_SHIFT; + ethernet->mii_addr = ((reg << MII_ADDR_REG_SHIFT) | |