source: trunk/target/linux/brcm63xx/patches-2.6.39/500-ssb-add-callback-for-sprom.patch @ 27622

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

[brcm63xx] add ehci support to DWV-S0 board (#9059)

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

    a b static struct ssb_sprom bcm63xx_sprom = 
    21312131        .boardflags_lo          = 0x2848, 
    21322132        .boardflags_hi          = 0x0000, 
    21332133}; 
     2134 
     2135int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out) 
     2136{ 
     2137        if (bus->bustype == SSB_BUSTYPE_PCI) { 
     2138                memcpy(out, &bcm63xx_sprom, sizeof(struct ssb_sprom)); 
     2139                return 0; 
     2140        } else { 
     2141                printk(KERN_ERR PFX "unable to fill SPROM for given bustype.\n"); 
     2142                return -EINVAL; 
     2143        } 
     2144} 
    21342145#endif 
    21352146 
    21362147/* 
    int __init board_register_devices(void) 
    24062417        if (!board_get_mac_address(bcm63xx_sprom.il0mac)) { 
    24072418                memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
    24082419                memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
    2409                 if (ssb_arch_set_fallback_sprom(&bcm63xx_sprom) < 0) 
    2410                         printk(KERN_ERR "failed to register fallback SPROM\n"); 
     2420                if (ssb_arch_register_fallback_sprom( 
     2421                                &bcm63xx_get_fallback_sprom) < 0) 
     2422                        printk(KERN_ERR PFX "failed to register fallback SPROM\n"); 
    24112423        } 
    24122424#endif 
    24132425 
Note: See TracBrowser for help on using the repository browser.