diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-08-06 18:56:40 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-08-06 18:56:40 +0000 |
commit | 38db03a94f9f4fde212d51519a8b46be76629a89 (patch) | |
tree | 89f8238157187097dde7a20d2ed5daf906f41942 /target/linux/rdc-2.6 | |
parent | 4dceb69ef488cacfd07f03bf3b29deeac44e1b90 (diff) | |
download | master-31e0f0ae-38db03a94f9f4fde212d51519a8b46be76629a89.tar.gz master-31e0f0ae-38db03a94f9f4fde212d51519a8b46be76629a89.tar.bz2 master-31e0f0ae-38db03a94f9f4fde212d51519a8b46be76629a89.zip |
Remove the LED code from the network driver
SVN-Revision: 8357
Diffstat (limited to 'target/linux/rdc-2.6')
-rw-r--r-- | target/linux/rdc-2.6/files/drivers/net/r6040.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/target/linux/rdc-2.6/files/drivers/net/r6040.c b/target/linux/rdc-2.6/files/drivers/net/r6040.c index 135ea13fde..350145e94e 100644 --- a/target/linux/rdc-2.6/files/drivers/net/r6040.c +++ b/target/linux/rdc-2.6/files/drivers/net/r6040.c @@ -617,9 +617,6 @@ r6040_close(struct net_device *dev) return 0; } -#define DMZ_GPIO 1 -#define RDC3210_CFGREG_ADDR 0x0CF8 -#define RDC3210_CFGREG_DATA 0x0CFC static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) { struct r6040_private *lp = dev->priv; @@ -641,25 +638,6 @@ static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) if(args[0]&(1<<27))phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x2000)); /* port 2 */ if(args[0]&(1<<25))phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x0020)); /* port 3 */ - /* DMZ LED */ - val = 0x80000000 | (7 << 11) | ((0x48)); - outl(val, RDC3210_CFGREG_ADDR); - udelay(10); - val = inl(RDC3210_CFGREG_DATA); - - val |= (0x1 << DMZ_GPIO); - outl(val, RDC3210_CFGREG_DATA); - udelay(10); - - val = 0x80000000 | (7 << 11) | ((0x4C)); - outl(val, RDC3210_CFGREG_ADDR); - udelay(10); - val = inl(RDC3210_CFGREG_DATA); - if(args[0]&(1<<23)) /* DMZ enabled */ - val &= ~(0x1 << DMZ_GPIO); /* low activated */ - else val |= (0x1 << DMZ_GPIO); - outl(val, RDC3210_CFGREG_DATA); - udelay(10); } return 0; } |