Changeset 28705


Ignore:
Timestamp:
2011-11-01T12:20:50+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: add AR933X GMAC register defines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h

    r28276 r28705  
    7373#define AR933X_UART_BASE        (AR71XX_APB_BASE + 0x00020000) 
    7474#define AR933X_UART_SIZE        0x14 
     75#define AR933X_GMAC_BASE        (AR71XX_APB_BASE + 0x00070000) 
     76#define AR933X_GMAC_SIZE        0x04 
    7577#define AR933X_WMAC_BASE        (AR71XX_APB_BASE + 0x00100000) 
    7678#define AR933X_WMAC_SIZE        0x20000 
     
    769771#define MII1_CTRL_IF_RMII       1 
    770772 
     773/* 
     774 * AR933X GMAC 
     775 */ 
     776#define AR933X_GMAC_REG_ETH_CFG         0x00 
     777 
     778#define AR933X_ETH_CFG_RGMII_GE0        BIT(0) 
     779#define AR933X_ETH_CFG_MII_GE0          BIT(1) 
     780#define AR933X_ETH_CFG_GMII_GE0         BIT(2) 
     781#define AR933X_ETH_CFG_MII_GE0_MASTER   BIT(3) 
     782#define AR933X_ETH_CFG_MII_GE0_SLAVE    BIT(4) 
     783#define AR933X_ETH_CFG_MII_GE0_ERR_EN   BIT(5) 
     784#define AR933X_ETH_CFG_SW_PHY_SWAP      BIT(7) 
     785#define AR933X_ETH_CFG_SW_PHY_ADDR_SWAP BIT(8) 
     786#define AR933X_ETH_CFG_RMII_GE0         BIT(9) 
     787#define AR933X_ETH_CFG_RMII_GE0_SPD_10  0 
     788#define AR933X_ETH_CFG_RMII_GE0_SPD_100 BIT(10) 
     789 
    771790#endif /* __ASSEMBLER__ */ 
    772791 
Note: See TracChangeset for help on using the changeset viewer.