[brcm47xx]: bcma: use fallback sprom if sprom on card was not valid
[openwrt.git] / target / linux / brcm47xx / patches-3.3 / 027-mtd-bcm47xx-add-serial-flash-driver.patch
index 1e2577b728b0cc3de034e29913c217b48b6eda99..3aec60c11e505ba51dc050ddbeaff4a7297426b9 100644 (file)
@@ -1,22 +1,3 @@
---- a/arch/mips/include/asm/mach-bcm47xx/bus.h
-+++ b/arch/mips/include/asm/mach-bcm47xx/bus.h
-@@ -11,6 +11,7 @@
- #include <linux/ssb/ssb.h>
- #include <linux/bcma/bcma.h>
-+#include <linux/mtd/mtd.h>
- #include <bcm47xx.h>
- struct bcm47xx_sflash {
-@@ -28,6 +29,8 @@ struct bcm47xx_sflash {
-       u32 blocksize;          /* Block size */
-       u32 numblocks;          /* Number of blocks */
-       u32 size;               /* Total size in bytes */
-+
-+      struct mtd_info *mtd;
- };
- void bcm47xx_sflash_struct_bcma_init(struct bcm47xx_sflash *sflash, struct bcma_drv_cc *bcc);
 --- a/drivers/mtd/maps/Kconfig
 +++ b/drivers/mtd/maps/Kconfig
 @@ -257,6 +257,15 @@ config MTD_BCM47XX_PFLASH