diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-08-13 03:25:30 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-09-15 17:50:49 -0400 |
commit | c5da56f7c238fb7528f2c304d7d10af896e42516 (patch) | |
tree | 5af82487b4334a6a0f519b799055b31fec212ba4 | |
parent | ac37d352bac5104f86e5bae38481eef902076c15 (diff) |
mtd: parsers: Move OF parser
This moves the OF/device tree partition parser down into the
parser subdirectory. No functional change.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | drivers/mtd/Kconfig | 9 | ||||
-rw-r--r-- | drivers/mtd/Makefile | 1 | ||||
-rw-r--r-- | drivers/mtd/parsers/Kconfig | 10 | ||||
-rw-r--r-- | drivers/mtd/parsers/Makefile | 1 | ||||
-rw-r--r-- | drivers/mtd/parsers/ofpart.c (renamed from drivers/mtd/ofpart.c) | 0 |
5 files changed, 11 insertions, 10 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 5a833305e4c4..4833e5b640f7 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig | |||
@@ -60,15 +60,6 @@ config MTD_CMDLINE_PARTS | |||
60 | 60 | ||
61 | If unsure, say 'N'. | 61 | If unsure, say 'N'. |
62 | 62 | ||
63 | config MTD_OF_PARTS | ||
64 | tristate "OpenFirmware partitioning information support" | ||
65 | default y | ||
66 | depends on OF | ||
67 | help | ||
68 | This provides a partition parsing function which derives | ||
69 | the partition map from the children of the flash node, | ||
70 | as described in Documentation/devicetree/bindings/mtd/partition.txt. | ||
71 | |||
72 | menu "Partition parsers" | 63 | menu "Partition parsers" |
73 | source "drivers/mtd/parsers/Kconfig" | 64 | source "drivers/mtd/parsers/Kconfig" |
74 | endmenu | 65 | endmenu |
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 7b4dae4cf52d..d5f1fd696f87 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile | |||
@@ -7,7 +7,6 @@ | |||
7 | obj-$(CONFIG_MTD) += mtd.o | 7 | obj-$(CONFIG_MTD) += mtd.o |
8 | mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o | 8 | mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o |
9 | 9 | ||
10 | obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o | ||
11 | obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o | 10 | obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o |
12 | obj-y += parsers/ | 11 | obj-y += parsers/ |
13 | 12 | ||
diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig index e356b4311d4d..2001d96cb82a 100644 --- a/drivers/mtd/parsers/Kconfig +++ b/drivers/mtd/parsers/Kconfig | |||
@@ -20,6 +20,16 @@ config MTD_BCM63XX_PARTS | |||
20 | This provides partition parsing for BCM63xx devices with CFE | 20 | This provides partition parsing for BCM63xx devices with CFE |
21 | bootloaders. | 21 | bootloaders. |
22 | 22 | ||
23 | config MTD_OF_PARTS | ||
24 | tristate "OpenFirmware (device tree) partitioning parser" | ||
25 | default y | ||
26 | depends on OF | ||
27 | help | ||
28 | This provides a open firmware device tree partition parser | ||
29 | which derives the partition map from the children of the | ||
30 | flash memory node, as described in | ||
31 | Documentation/devicetree/bindings/mtd/partition.txt. | ||
32 | |||
23 | config MTD_PARSER_IMAGETAG | 33 | config MTD_PARSER_IMAGETAG |
24 | tristate "Parser for BCM963XX Image Tag format partitions" | 34 | tristate "Parser for BCM963XX Image Tag format partitions" |
25 | depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST | 35 | depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST |
diff --git a/drivers/mtd/parsers/Makefile b/drivers/mtd/parsers/Makefile index 582def540880..69b2c5289f96 100644 --- a/drivers/mtd/parsers/Makefile +++ b/drivers/mtd/parsers/Makefile | |||
@@ -2,6 +2,7 @@ | |||
2 | obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o | 2 | obj-$(CONFIG_MTD_AR7_PARTS) += ar7part.o |
3 | obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o | 3 | obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o |
4 | obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o | 4 | obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o |
5 | obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o | ||
5 | obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o | 6 | obj-$(CONFIG_MTD_PARSER_IMAGETAG) += parser_imagetag.o |
6 | obj-$(CONFIG_MTD_AFS_PARTS) += afs.o | 7 | obj-$(CONFIG_MTD_AFS_PARTS) += afs.o |
7 | obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o | 8 | obj-$(CONFIG_MTD_PARSER_TRX) += parser_trx.o |
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/parsers/ofpart.c index 3caeabf27987..3caeabf27987 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/parsers/ofpart.c | |||