summaryrefslogtreecommitdiff
path: root/drivers/mtd/parsers/Kconfig
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-03-01 11:58:23 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 09:37:49 +0100
commitbb17230c61a6424b622e92006ec52ba23aa5a967 (patch)
treeaf733f0e7d8191970aa843567622d3489241bc30 /drivers/mtd/parsers/Kconfig
parent462d69a2dc3d6d8289d99479961632411b9d30ad (diff)
mtd: parsers: ofpart: support BCM4908 fixed partitions
Some devices use fixed partitioning with some partitions requiring some extra logic. E.g. BCM4908 may have multiple firmware partitions but detecting currently used one requires checking bootloader parameters. To support such cases without duplicating a lot of code (without copying most of the ofpart.c code) support for post-parsing callback was added. BCM4908 support in ofpart can be enabled using config option and results in compiling & executing a specific callback. It simply reads offset of currently used firmware partition from the DT. Bootloader specifies it using the "brcm_blparms" property. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210301105823.31032-1-zajec5@gmail.com
Diffstat (limited to 'drivers/mtd/parsers/Kconfig')
-rw-r--r--drivers/mtd/parsers/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig
index 96d5716db544..0528855cf6c1 100644
--- a/drivers/mtd/parsers/Kconfig
+++ b/drivers/mtd/parsers/Kconfig
@@ -67,6 +67,15 @@ config MTD_OF_PARTS
flash memory node, as described in
Documentation/devicetree/bindings/mtd/partition.txt.
+config MTD_OF_PARTS_BCM4908
+ bool "BCM4908 partitioning support"
+ depends on MTD_OF_PARTS && (ARCH_BCM4908 || COMPILE_TEST)
+ default ARCH_BCM4908
+ help
+ This provides partitions parser for BCM4908 family devices
+ that can have multiple "firmware" partitions. It takes care of
+ finding currently used one and backup ones.
+
config MTD_PARSER_IMAGETAG
tristate "Parser for BCM963XX Image Tag format partitions"
depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST