source: trunk/target/linux/brcm63xx/patches-3.0/230-6358-enet1-external-mii-clk.patch @ 27192

Last change on this file since 27192 was 27192, checked in by florian, 5 years ago

bcm63xx: Add support for Linux 3.0-rc3

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

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

    a b void __init board_prom_init(void) 
    829829                if (BCMCPU_IS_6348()) 
    830830                        val |= GPIO_MODE_6348_G3_EXT_MII | 
    831831                                GPIO_MODE_6348_G0_EXT_MII; 
     832                else if (BCMCPU_IS_6358()) 
     833                        val |= GPIO_MODE_6358_ENET1_MII_CLK_INV; 
    832834        } 
    833835 
    834836        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.