Changeset 28124


Ignore:
Timestamp:
2011-08-29T23:23:46+02:00 (5 years ago)
Author:
nbd
Message:

ar71xx: fix ethernet PLL setting on ar7242

File:
1 edited

Legend:

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

    r27975 r28124  
    266266{ 
    267267        u32 val = ar71xx_get_eth_pll(0, speed); 
    268  
    269         ar71xx_set_pll(AR71XX_PLL_REG_SEC_CONFIG, AR7242_PLL_REG_ETH0_INT_CLOCK, 
    270                        val, AR71XX_ETH0_PLL_SHIFT); 
     268        void __iomem *base; 
     269 
     270        base = ioremap_nocache(AR71XX_PLL_BASE, AR71XX_PLL_SIZE); 
     271        __raw_writel(val, base + AR7242_PLL_REG_ETH0_INT_CLOCK); 
     272        iounmap(base); 
    271273} 
    272274 
     
    411413#define AR724X_PLL_VAL_10       0x00991099 
    412414 
    413 #define AR7242_PLL_VAL_1000     0x1c000000 
     415#define AR7242_PLL_VAL_1000     0x16000000 
    414416#define AR7242_PLL_VAL_100      0x00000101 
    415417#define AR7242_PLL_VAL_10       0x00001616 
Note: See TracChangeset for help on using the changeset viewer.