summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-05-02 10:30:26 -0400
committerRichard Weinberger <richard@nod.at>2019-05-06 15:48:46 -0400
commit2aa3b8e1de23aaf9260b2635d467d69c9a2ea3f2 (patch)
treed3d24858d17d9cf846d6d84cbb08b75613f95922
parent251f26c9e828aa441a603efc32e0308ca76f172c (diff)
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>
-rw-r--r--drivers/mtd/Kconfig16
-rw-r--r--drivers/mtd/Makefile1
-rw-r--r--drivers/mtd/parsers/Kconfig16
-rw-r--r--drivers/mtd/parsers/Makefile1
-rw-r--r--drivers/mtd/parsers/afs.c (renamed from drivers/mtd/afs.c)0
5 files changed, 17 insertions, 17 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 0c263df7ded7..fb31a7f649a3 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -60,22 +60,6 @@ config MTD_CMDLINE_PARTS
60 60
61 If unsure, say 'N'. 61 If unsure, say 'N'.
62 62
63config 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
79config MTD_OF_PARTS 63config MTD_OF_PARTS
80 tristate "OpenFirmware partitioning information support" 64 tristate "OpenFirmware partitioning information support"
81 default y 65 default y
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index 58fc327a5276..806287e80e84 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -9,7 +9,6 @@ mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
9 9
10obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o 10obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
11obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o 11obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o
12obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
13obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o 12obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o
14obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o 13obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
15obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o 14obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o
diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig
index c8be3f1507ca..bc201327dda0 100644
--- a/drivers/mtd/parsers/Kconfig
+++ b/drivers/mtd/parsers/Kconfig
@@ -9,6 +9,22 @@ config MTD_PARSER_IMAGETAG
9 This driver adds support for parsing a partition with an Image Tag 9 This driver adds support for parsing a partition with an Image Tag
10 header and creates up to two partitions, kernel and rootfs. 10 header and creates up to two partitions, kernel and rootfs.
11 11
12config 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
12config MTD_PARSER_TRX 28config MTD_PARSER_TRX
13 tristate "Parser for TRX format partitions" 29 tristate "Parser for TRX format partitions"
14 depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST) 30 depends on MTD && (BCM47XX || ARCH_BCM_5301X || COMPILE_TEST)
diff --git a/drivers/mtd/parsers/Makefile b/drivers/mtd/parsers/Makefile
index 3860c4464c63..cddc8f35a856 100644
--- a/drivers/mtd/parsers/Makefile
+++ b/drivers/mtd/parsers/Makefile
@@ -1,4 +1,5 @@
1obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o 1obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o
2obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
2obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o 3obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o
3obj-$(CONFIG_MTD_SHARPSL_PARTS) += sharpslpart.o 4obj-$(CONFIG_MTD_SHARPSL_PARTS) += sharpslpart.o
4obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o 5obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
diff --git a/drivers/mtd/afs.c b/drivers/mtd/parsers/afs.c
index d61b7edfc938..d61b7edfc938 100644
--- a/drivers/mtd/afs.c
+++ b/drivers/mtd/parsers/afs.c