~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to arch/mips/bcm63xx/boards/board_bcm963xx.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
643
643
        .boardflags_lo          = 0x2848,
644
644
        .boardflags_hi          = 0x0000,
645
645
};
 
646
 
 
647
int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
 
648
{
 
649
        if (bus->bustype == SSB_BUSTYPE_PCI) {
 
650
                memcpy(out, &bcm63xx_sprom, sizeof(struct ssb_sprom));
 
651
                return 0;
 
652
        } else {
 
653
                printk(KERN_ERR PFX "unable to fill SPROM for given bustype.\n");
 
654
                return -EINVAL;
 
655
        }
 
656
}
646
657
#endif
647
658
 
648
659
/*
793
804
        if (!board_get_mac_address(bcm63xx_sprom.il0mac)) {
794
805
                memcpy(bcm63xx_sprom.et0mac, bcm63xx_sprom.il0mac, ETH_ALEN);
795
806
                memcpy(bcm63xx_sprom.et1mac, bcm63xx_sprom.il0mac, ETH_ALEN);
796
 
                if (ssb_arch_set_fallback_sprom(&bcm63xx_sprom) < 0)
797
 
                        printk(KERN_ERR "failed to register fallback SPROM\n");
 
807
                if (ssb_arch_register_fallback_sprom(
 
808
                                &bcm63xx_get_fallback_sprom) < 0)
 
809
                        printk(KERN_ERR PFX "failed to register fallback SPROM\n");
798
810
        }
799
811
#endif
800
812
}