source: trunk/target/linux/brcm63xx/patches-2.6.37/250-6358-enet1-external-mii-clk.patch @ 25629

Last change on this file since 25629 was 25629, checked in by florian, 6 years ago

[brcm63xx] add support for 2.6.37, patches from KanjiMonster

File size: 817 bytes
  • arch/mips/bcm63xx/boards/board_bcm963xx.c

    a b void __init board_prom_init(void) 
    14771477                if (BCMCPU_IS_6348()) 
    14781478                        val |= GPIO_MODE_6348_G3_EXT_MII | 
    14791479                                GPIO_MODE_6348_G0_EXT_MII; 
     1480                else if (BCMCPU_IS_6358()) 
     1481                        val |= GPIO_MODE_6358_ENET1_MII_CLK_INV; 
    14801482        } 
    14811483 
    14821484        bcm_gpio_writel(val, GPIO_MODE_REG); 
  • arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h

    a b  
    402402#define GPIO_MODE_6358_EXTRA_SPI_SS     (1 << 7) 
    403403#define GPIO_MODE_6358_SERIAL_LED       (1 << 10) 
    404404#define GPIO_MODE_6358_UTOPIA           (1 << 12) 
     405#define GPIO_MODE_6358_ENET0_MII_CLK_INV (1 << 30) 
     406#define GPIO_MODE_6358_ENET1_MII_CLK_INV (1 << 31) 
    405407 
    406408 
    407409/************************************************************************* 
Note: See TracBrowser for help on using the repository browser.