mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-02 20:51:05 +02:00
Remove the LED code from the network driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8357 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6079728bcc
commit
f3fd9a2cbb
@ -617,9 +617,6 @@ r6040_close(struct net_device *dev)
|
|||||||
return 0;
|
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)
|
static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
|
||||||
{
|
{
|
||||||
struct r6040_private *lp = dev->priv;
|
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<<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 */
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user