Changeset 27704


Ignore:
Timestamp:
2011-07-20T16:39:42+02:00 (7 years ago)
Author:
nbd
Message:

ar71xx: configure address aging on ar7240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c

    r26922 r27704  
    5858#define   AR7240_VTUDATA_VALID          BIT(11) 
    5959 
     60#define AR7240_REG_ATU                  0x50 
     61#define AR7240_ATU_FLUSH_ALL            0x1 
     62 
    6063#define AR7240_REG_AT_CTRL              0x5c 
     64#define AR7240_AT_CTRL_AGE_TIME         BITS(0, 15) 
     65#define AR7240_AT_CTRL_AGE_EN           BIT(17) 
     66#define AR7240_AT_CTRL_LEARN_CHANGE     BIT(18) 
    6167#define AR7240_AT_CTRL_ARP_EN           BIT(20) 
    6268 
     
    447453        ar7240sw_reg_write(mii, AR7240_REG_TAG_PRIORITY, 0xfa50); 
    448454 
    449         /* Enable ARP frame acknowledge */ 
    450         ar7240sw_reg_set(mii, AR7240_REG_AT_CTRL, AR7240_AT_CTRL_ARP_EN); 
     455        /* Enable ARP frame acknowledge, aging, MAC replacing */ 
     456        ar7240sw_reg_write(mii, AR7240_REG_AT_CTRL, 
     457                0x2b /* 5 min age time */ | 
     458                AR7240_AT_CTRL_AGE_EN | 
     459                AR7240_AT_CTRL_ARP_EN | 
     460                AR7240_AT_CTRL_LEARN_CHANGE); 
    451461 
    452462        /* Enable Broadcast frames transmitted to the CPU */ 
Note: See TracChangeset for help on using the changeset viewer.