source: trunk/target/linux/brcm63xx/patches-3.2/260-ssb_sprom_mac_pool.patch @ 30920

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

[brcm63xx] remove udc patch since it is unused

File size: 1.3 KB
  • arch/mips/bcm63xx/boards/board_bcm963xx.c

    a b void __init board_prom_init(void) 
    859859        } 
    860860 
    861861        bcm_gpio_writel(val, GPIO_MODE_REG); 
    862  
    863         /* Generate MAC address for WLAN and 
    864          * register our SPROM */ 
    865 #ifdef CONFIG_SSB_PCIHOST 
    866         if (!board_get_mac_address(bcm63xx_sprom.il0mac)) { 
    867                 memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
    868                 memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
    869                 if (ssb_arch_register_fallback_sprom( 
    870                                 &bcm63xx_get_fallback_sprom) < 0) 
    871                         printk(KERN_ERR PFX "failed to register fallback SPROM\n"); 
    872         } 
    873 #endif 
    874862} 
    875863 
    876864/* 
    int __init board_register_devices(void) 
    946934            !board_get_mac_address(board.enet1.mac_addr)) 
    947935                bcm63xx_enet_register(1, &board.enet1); 
    948936 
     937        /* Generate MAC address for WLAN and 
     938         * register our SPROM, do this after registering enet devices 
     939         */ 
     940#ifdef CONFIG_SSB_PCIHOST 
     941        if (!board_get_mac_address(bcm63xx_sprom.il0mac)) { 
     942                memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
     943                memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
     944                if (ssb_arch_register_fallback_sprom( 
     945                                &bcm63xx_get_fallback_sprom) < 0) 
     946                        printk(KERN_ERR PFX "failed to register fallback SPROM\n"); 
     947        } 
     948#endif 
     949 
    949950        if (board.has_ehci0) 
    950951                bcm63xx_ehci_register(); 
    951952 
Note: See TracBrowser for help on using the repository browser.