mtd: parsers: add support for Sercomm partitions
authorMikhail Zhilkin <csharper2005@gmail.com>
Sun, 29 May 2022 11:07:14 +0000 (11:07 +0000)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 9 Jun 2022 13:03:32 +0000 (15:03 +0200)
commit9b78ef0c7997052e9eaa0f7a4513d546fa17358c
tree008bb189466423ee8466571c2a509c238f204114
parent9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016
mtd: parsers: add support for Sercomm partitions

This adds an MTD partition parser for the Sercomm partition table that
is used in some Beeline, Netgear and Sercomm routers.

The Sercomm partition map table contains real partition offsets, which
may differ from device to device depending on the number and location of
bad blocks on NAND.

Original patch (proposed by NOGUCHI Hiroshi):
Link: https://github.com/openwrt/openwrt/pull/1318#issuecomment-420607394
Signed-off-by: NOGUCHI Hiroshi <drvlabo@gmail.com>
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220529110714.189732-1-csharper2005@gmail.com
drivers/mtd/parsers/Kconfig
drivers/mtd/parsers/Makefile
drivers/mtd/parsers/scpart.c [new file with mode: 0644]