Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: bcm47xxpart: allow enabling on ARCH_BCM_5301X

Home routers based on SoCs like BCM53010 (AKA BCM4708) use flashes
which can be nicely partitioned with bcm47xxpart. Header bcm47xx_nvram.h
is not available on bcm53xx, so don't include it.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

authored by

Rafał Miłecki and committed by
Brian Norris
9e3afa5f 108ebcd8

+2 -2
+1 -1
drivers/mtd/Kconfig
··· 150 150 151 151 config MTD_BCM47XX_PARTS 152 152 tristate "BCM47XX partitioning support" 153 - depends on BCM47XX 153 + depends on BCM47XX || ARCH_BCM_5301X 154 154 help 155 155 This provides partitions parser for devices based on BCM47xx 156 156 boards.
+1 -1
drivers/mtd/bcm47xxpart.c
··· 14 14 #include <linux/slab.h> 15 15 #include <linux/mtd/mtd.h> 16 16 #include <linux/mtd/partitions.h> 17 - #include <bcm47xx_nvram.h> 18 17 19 18 /* 10 parts were found on sflash on Netgear WNDR4500 */ 20 19 #define BCM47XXPART_MAX_PARTS 12 ··· 29 30 #define BOARD_DATA_MAGIC2 0xBD0D0BBD 30 31 #define CFE_MAGIC 0x43464531 /* 1EFC */ 31 32 #define FACTORY_MAGIC 0x59544346 /* FCTY */ 33 + #define NVRAM_HEADER 0x48534C46 /* FLSH */ 32 34 #define POT_MAGIC1 0x54544f50 /* POTT */ 33 35 #define POT_MAGIC2 0x504f /* OP */ 34 36 #define ML_MAGIC1 0x39685a42