source: trunk/target/linux/brcm63xx/patches-3.3/408-6358-enet1-external-mii-clk.patch @ 31129

Last change on this file since 31129 was 31129, checked in by jogo, 4 years ago

bcm63xx: add ethernet support for bcm6368

Add basic support for the internal ethernet switch on bcm6368. It behaves
as a dumb switch for now, but allows basic connectivity.

Also drop the ethernet patch for bcm6345 for now, it needs rework.

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

    a b void __init board_prom_init(void) 
    844844                if (BCMCPU_IS_6348()) 
    845845                        val |= GPIO_MODE_6348_G3_EXT_MII | 
    846846                                GPIO_MODE_6348_G0_EXT_MII; 
     847                else if (BCMCPU_IS_6358()) 
     848                        val |= GPIO_MODE_6358_ENET1_MII_CLK_INV; 
    847849        } 
    848850 
    849851        bcm_gpio_writel(val, GPIO_MODE_REG); 
  • arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h

    a b  
    468468#define GPIO_MODE_6358_EXTRA_SPI_SS     (1 << 7) 
    469469#define GPIO_MODE_6358_SERIAL_LED       (1 << 10) 
    470470#define GPIO_MODE_6358_UTOPIA           (1 << 12) 
     471#define GPIO_MODE_6358_ENET0_MII_CLK_INV (1 << 30) 
     472#define GPIO_MODE_6358_ENET1_MII_CLK_INV (1 << 31) 
    471473 
    472474#define GPIO_MODE_6368_ANALOG_AFE_0     (1 << 0) 
    473475#define GPIO_MODE_6368_ANALOG_AFE_1     (1 << 1) 
Note: See TracBrowser for help on using the repository browser.