Ignore:
Timestamp:
2010-04-06T01:03:16+02:00 (7 years ago)
Author:
jow
Message:

[PATCH 1/2] Add support for the ar8316 switch.
This patch enhances the ar8216 driver with ar8316 support and fixes some minor
issues with the ar8216 driver itself. It should not break anything, but isn't
tested on ar8216 devices.

[PATCH 2/2] ar71xx: Add the ar8316 driver to rs pro/rb-450g.
Add the ar8216 driver to the ar71xx target, and add network
configurations for the RouterStation Pro and the RouterBoard RB-450G.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/files/drivers/net/phy/ar8216.h

    r20110 r20722  
    2323#define AR8216_NUM_PORTS        6 
    2424#define AR8216_NUM_VLANS        16 
     25#define AR8316_NUM_VLANS        4096 
     26 
     27/* Atheros specific MII registers */ 
     28#define MII_ATH_DBG_ADDR                0x1d 
     29#define MII_ATH_DBG_DATA                0x1e 
    2530 
    2631#define AR8216_REG_CTRL                 0x0000 
     
    3136#define   AR8216_CTRL_RESET             BIT(31) 
    3237 
     38#define AR8216_REG_FLOOD_MASK           0x002C 
     39#define   AR8216_FM_UNI_DEST_PORTS      BITS(0, 6) 
     40#define   AR8216_FM_MULTI_DEST_PORTS    BITS(16, 6) 
     41 
    3342#define AR8216_REG_GLOBAL_CTRL          0x0030 
    3443#define   AR8216_GCTRL_MTU              BITS(0, 11) 
     44#define   AR8316_GCTRL_MTU              BITS(0, 14) 
    3545 
    3646#define AR8216_REG_VTU                  0x0040 
     
    7585#define   AR8216_ATU_ADDR1              BITS(16, 8) 
    7686#define   AR8216_ATU_ADDR0              BITS(24, 8) 
     87 
     88#define AR8216_REG_ATU_CTRL             0x005C 
     89#define   AR8216_ATU_CTRL_AGE_EN        BIT(17) 
     90#define   AR8216_ATU_CTRL_AGE_TIME      BITS(0, 16) 
     91#define   AR8216_ATU_CTRL_AGE_TIME_S    0 
    7792 
    7893#define AR8216_PORT_OFFSET(_i)          (0x0100 * (_i + 1)) 
     
    163178}; 
    164179 
     180/* device */ 
     181enum { 
     182  UNKNOWN = 0, 
     183  AR8216 = 8216, 
     184  AR8316 = 8316 
     185}; 
     186 
    165187#endif 
Note: See TracChangeset for help on using the changeset viewer.