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

mtd: afs: Move AFS partition parser to parsers subdir

This moves the AFS (ARM Firmware Suite) partition parser
for NOR flash down into the parsers subdirectory.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Linus Walleij and committed by
Richard Weinberger
2aa3b8e1 251f26c9

+17 -17
-16
drivers/mtd/Kconfig
··· 60 60 61 61 If unsure, say 'N'. 62 62 63 - config MTD_AFS_PARTS 64 - tristate "ARM Firmware Suite partition parsing" 65 - depends on (ARM || ARM64) 66 - help 67 - The ARM Firmware Suite allows the user to divide flash devices into 68 - multiple 'images'. Each such image has a header containing its name 69 - and offset/size etc. 70 - 71 - If you need code which can detect and parse these tables, and 72 - register MTD 'partitions' corresponding to each image detected, 73 - enable this option. 74 - 75 - You will still need the parsing functions to be called by the driver 76 - for your particular device. It won't happen automatically. The 77 - 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example. 78 - 79 63 config MTD_OF_PARTS 80 64 tristate "OpenFirmware partitioning information support" 81 65 default y
-1
drivers/mtd/Makefile
··· 9 9 10 10 obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o 11 11 obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o 12 - obj-$(CONFIG_MTD_AFS_PARTS) += afs.o 13 12 obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o 14 13 obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o 15 14 obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o
drivers/mtd/afs.c drivers/mtd/parsers/afs.c
+16
drivers/mtd/parsers/Kconfig
··· 9 9 This driver adds support for parsing a partition with an Image Tag 10 10 header and creates up to two partitions, kernel and rootfs. 11 11 12 + config MTD_AFS_PARTS 13 + tristate "ARM Firmware Suite partition parsing" 14 + depends on (ARM || ARM64) 15 + help 16 + The ARM Firmware Suite allows the user to divide flash devices into 17 + multiple 'images'. Each such image has a header containing its name 18 + and offset/size etc. 19 + 20 + If you need code which can detect and parse these tables, and 21 + register MTD 'partitions' corresponding to each image detected, 22 + enable this option. 23 + 24 + You will still need the parsing functions to be called by the driver 25 + for your particular device. It won't happen automatically. The 26 + 'physmap' map driver (CONFIG_MTD_PHYSMAP) does this, for example. 27 + 12 28 config MTD_PARSER_TRX 13 29 tristate "Parser for TRX format partitions" 14 30 depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST)
+1
drivers/mtd/parsers/Makefile
··· 1 1 obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o 2 + obj-$(CONFIG_MTD_AFS_PARTS) += afs.o 2 3 obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o 3 4 obj-$(CONFIG_MTD_SHARPSL_PARTS) += sharpslpart.o 4 5 obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o