Changeset 28979


Ignore:
Timestamp:
2011-11-12T11:54:18+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: register the first ethernet interface on the DB120 board

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c

    r26603 r28979  
    3131#define DB120_GPIO_BTN_SW1      16 
    3232 
     33#define DB120_MAC0_OFFSET       0 
     34#define DB120_MAC1_OFFSET       6 
    3335#define DB120_CALDATA_OFFSET    0x1000 
    3436#define DB120_WMAC_MAC_OFFSET   0x1002 
     
    126128                                         db120_gpio_keys); 
    127129 
     130        /* GMAC0 is connected to an AR8327 switch */ 
     131        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, art + DB120_MAC0_OFFSET, 0); 
     132        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; 
     133        ar71xx_eth0_data.speed = SPEED_1000; 
     134        ar71xx_eth0_data.duplex = DUPLEX_FULL; 
     135 
     136        ar71xx_add_device_eth(0); 
     137 
    128138        ar9xxx_add_device_wmac(art + DB120_CALDATA_OFFSET, 
    129139                                art + DB120_WMAC_MAC_OFFSET); 
Note: See TracChangeset for help on using the changeset viewer.