diff options
author | John Crispin <blogic@openwrt.org> | 2010-05-17 10:06:46 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2010-05-17 10:06:46 +0000 |
commit | 5bb4773eb4e04c0b81358ab0ece6b52ee1da6327 (patch) | |
tree | ebfd1cd658057dc1c052105e93d00179d59ffbd6 /target/linux/ifxmips/files-2.6.33/drivers | |
parent | 1b659bbd8661ba6563378cfdd79440098bd6e9f9 (diff) | |
download | master-187ad058-5bb4773eb4e04c0b81358ab0ece6b52ee1da6327.tar.gz master-187ad058-5bb4773eb4e04c0b81358ab0ece6b52ee1da6327.tar.bz2 master-187ad058-5bb4773eb4e04c0b81358ab0ece6b52ee1da6327.zip |
[ifxmips]
* adds support for speedport w502V
* bump kernel to 2.6.33.4
* make ethernet be configurable as MII/RMII
* on xway we now assign a static amount of cp1 ram (still need to find a
sane value)
* remove bogus board.c
* jiffies were running with a (1 << 2) multiplier
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files-2.6.33/drivers')
-rw-r--r-- | target/linux/ifxmips/files-2.6.33/drivers/net/ifxmips.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/target/linux/ifxmips/files-2.6.33/drivers/net/ifxmips.c b/target/linux/ifxmips/files-2.6.33/drivers/net/ifxmips.c index e6d0d9615f..4c618352dd 100644 --- a/target/linux/ifxmips/files-2.6.33/drivers/net/ifxmips.c +++ b/target/linux/ifxmips/files-2.6.33/drivers/net/ifxmips.c @@ -41,6 +41,7 @@ #include <ifxmips.h> #include <ifxmips_dma.h> #include <ifxmips_pmu.h> +#include <ifxmips_platform.h> struct ifxmips_mii_priv { struct net_device_stats stats; @@ -267,11 +268,6 @@ void ifxmips_etop_dma_buffer_free(unsigned char *dataptr, void *opt) } } -static struct net_device_stats *ifxmips_get_stats(struct net_device *dev) -{ - return &((struct ifxmips_mii_priv *)netdev_priv(dev))->stats; -} - static void ifxmips_adjust_link(struct net_device *dev) { @@ -436,12 +432,12 @@ static int ifxmips_mii_probe(struct platform_device *dev) { int result = 0; - unsigned char *mac = (unsigned char *)dev->dev.platform_data; + struct ifxmips_eth_data *eth = (struct ifxmips_eth_data*)dev->dev.platform_data; ifxmips_mii0_dev = alloc_etherdev(sizeof(struct ifxmips_mii_priv)); ifxmips_mii0_dev->netdev_ops = &ifxmips_eth_netdev_ops; - memcpy(mac_addr, mac, 6); + memcpy(mac_addr, eth->mac, 6); strcpy(ifxmips_mii0_dev->name, "eth%d"); - ifxmips_mii_chip_init(REV_MII_MODE); + ifxmips_mii_chip_init(eth->mii_mode); result = register_netdev(ifxmips_mii0_dev); if (result) { printk(KERN_INFO "ifxmips_mii0: error %i registering device \"%s\"\n", result, ifxmips_mii0_dev->name); |