59ee57d277b95877d95a3ac9bdd329da65f0b5f7
[openwrt/openwrt.git] / target / linux / ath79 / patches-5.10 / 404-mtd-cybertan-trx-parser.patch
1 --- a/drivers/mtd/parsers/Makefile
2 +++ b/drivers/mtd/parsers/Makefile
3 @@ -7,6 +7,7 @@ obj-$(CONFIG_MTD_MYLOADER_PARTS) += myl
4 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
5 ofpart-y += ofpart_core.o
6 ofpart-$(CONFIG_MTD_OF_PARTS_BCM4908) += ofpart_bcm4908.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 @@ -92,6 +92,14 @@ config MTD_OF_PARTS_BCM4908
14 that can have multiple "firmware" partitions. It takes care of
15 finding currently used one and backup ones.
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