Changeset 20528


Ignore:
Timestamp:
2010-03-28T01:35:44+01:00 (8 years ago)
Author:
nbd
Message:

ar71xx: reset the mdio bus on ar7241/ar7242

Location:
trunk/target/linux/ar71xx/files/arch/mips
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c

    r20494 r20528  
    437437                break; 
    438438 
    439         case AR71XX_SOC_AR7240: 
    440439        case AR71XX_SOC_AR7241: 
    441440        case AR71XX_SOC_AR7242: 
     441                ar71xx_eth0_data.reset_bit |= AR724X_RESET_GE0_MDIO; 
     442                ar71xx_eth1_data.reset_bit |= AR724X_RESET_GE1_MDIO; 
     443                /* fall through */ 
     444        case AR71XX_SOC_AR7240: 
    442445                pdata->ddr_flush = id ? ar724x_ddr_flush_ge1 
    443446                                      : ar724x_ddr_flush_ge0; 
  • trunk/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h

    r20494 r20528  
    428428#define RESET_MODULE_PCI_CORE           BIT(0) 
    429429 
     430#define AR724X_RESET_GE1_MDIO           BIT(23) 
     431#define AR724X_RESET_GE0_MDIO           BIT(22) 
    430432#define AR724X_RESET_PCIE_PHY_SERIAL    BIT(10) 
    431433#define AR724X_RESET_PCIE_PHY           BIT(7) 
Note: See TracChangeset for help on using the changeset viewer.