1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 09:41:38 +03:00

[adm5120] fix switch driver, force all packets from all the ports are low priority

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8083 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2007-07-20 20:46:39 +00:00
parent 071b759c61
commit 936d19e10c
2 changed files with 4 additions and 0 deletions

View File

@ -537,6 +537,9 @@ static int __init adm5120_sw_init(void)
adm5120_set_reg(ADM5120_PHY_CNTL3, adm5120_get_reg(ADM5120_PHY_CNTL3) |
ADM5120_PHY_NTH);
/* Force all the packets from all ports are low priority */
adm5120_set_reg(ADM5120_PRI_CNTL, 0);
adm5120_set_reg(ADM5120_INT_MASK, ADM5120_INTMASKALL);
adm5120_set_reg(ADM5120_INT_ST, ADM5120_INTMASKALL);

View File

@ -50,6 +50,7 @@
#define ADM5120_AUTOMDIX 0x3e000000 /* Auto MDIX */
#define ADM5120_PHY_CNTL3 0x80
#define ADM5120_PHY_NTH 0x00000400
#define ADM5120_PRI_CNTL 0x84
#define ADM5120_INT_ST 0xb0
#define ADM5120_INT_RXH 0x0000004
#define ADM5120_INT_RXL 0x0000008