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

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

[brcm63xx] improve BCM6345 support

  • runtime detect the amount of memory available
  • define EBI_BASE as MPI_BASE to get rid of chip-select specific hacks
  • fix GPIO control
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) 
    24002411        if (!board_get_mac_address(bcm63xx_sprom.il0mac)) { 
    24012412                memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
    24022413                memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN); 
    2403                 if (ssb_arch_set_fallback_sprom(&bcm63xx_sprom) < 0) 
    2404                         printk(KERN_ERR "failed to register fallback SPROM\n"); 
     2414                if (ssb_arch_register_fallback_sprom( 
     2415                                &bcm63xx_get_fallback_sprom) < 0) 
     2416                        printk(KERN_ERR PFX "failed to register fallback SPROM\n"); 
    24052417        } 
    24062418#endif 
    24072419 
Note: See TracBrowser for help on using the repository browser.