kernel: backport 5.13 mtd partitioning changes
[openwrt/openwrt.git] / target / linux / ath79 / patches-5.4 / 404-mtd-cybertan-trx-parser.patch
1 --- a/drivers/mtd/parsers/Makefile
2 +++ b/drivers/mtd/parsers/Makefile
3 @@ -8,6 +8,7 @@ obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
4 ofpart-y += ofpart_core.o
5 ofpart-$(CONFIG_MTD_OF_PARTS_BCM4908) += ofpart_bcm4908.o
6 ofpart-$(CONFIG_MTD_OF_PARTS_LINKSYS_NS)+= ofpart_linksys_ns.o
7 +obj-$(CONFIG_MTD_PARSER_CYBERTAN) += parser_cybertan.o
8 obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o
9 obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
10 obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o
11 --- a/drivers/mtd/parsers/Kconfig
12 +++ b/drivers/mtd/parsers/Kconfig
13 @@ -102,6 +102,14 @@ config MTD_OF_PARTS_LINKSYS_NS
14 two "firmware" partitions. Currently used firmware has to be detected
15 using CFE environment variable.
16
17 +config MTD_PARSER_CYBERTAN
18 + tristate "Parser for Cybertan format partitions"
19 + depends on MTD && (ATH79 || COMPILE_TEST)
20 + help
21 + Cybertan has a proprietory header than encompasses a Broadcom trx
22 + header. This driver will parse the header and take care of the
23 + special offsets that result in the extra headers.
24 +
25 config MTD_PARSER_IMAGETAG
26 tristate "Parser for BCM963XX Image Tag format partitions"
27 depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST