diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2018-01-13 18:43:32 +0100 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2018-02-11 23:15:05 +0100 |
commit | 1ba38f6100243b263fc0d147cd59e76c1ad87a61 (patch) | |
tree | 34cdc616d8ba5a02565b7fecdd9401b1f6329718 /target/linux/brcm63xx/patches-4.14/123-mtd-parser_bcm63xx_imagetag-add-of_match_table-suppo.patch | |
parent | 592472f60f7b79e824ce91a57b52976c5f174f28 (diff) | |
download | mtk-20170518-1ba38f6100243b263fc0d147cd59e76c1ad87a61.zip mtk-20170518-1ba38f6100243b263fc0d147cd59e76c1ad87a61.tar.gz mtk-20170518-1ba38f6100243b263fc0d147cd59e76c1ad87a61.tar.bz2 |
brcm63xx: add kernel 4.14 support
Add support for kernel 4.14. Increases compressed kernel size by ~64k
compared to 4.9.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/brcm63xx/patches-4.14/123-mtd-parser_bcm63xx_imagetag-add-of_match_table-suppo.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-4.14/123-mtd-parser_bcm63xx_imagetag-add-of_match_table-suppo.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-4.14/123-mtd-parser_bcm63xx_imagetag-add-of_match_table-suppo.patch b/target/linux/brcm63xx/patches-4.14/123-mtd-parser_bcm63xx_imagetag-add-of_match_table-suppo.patch new file mode 100644 index 0000000..04978b3 --- /dev/null +++ b/target/linux/brcm63xx/patches-4.14/123-mtd-parser_bcm63xx_imagetag-add-of_match_table-suppo.patch @@ -0,0 +1,37 @@ +From 3303dd9f5b197cc2efd9cbd7b9b45fc1e510a393 Mon Sep 17 00:00:00 2001 +From: Jonas Gorski <jonas.gorski@gmail.com> +Date: Wed, 28 Jun 2017 18:37:12 +0200 +Subject: [PATCH 2/2] mtd: parser_bcm63xx_imagetag: add of_match_table support + +Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> +--- + drivers/mtd/parsers/parser_imagetag.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +--- a/drivers/mtd/parsers/parser_imagetag.c ++++ b/drivers/mtd/parsers/parser_imagetag.c +@@ -24,6 +24,7 @@ + #include <linux/vmalloc.h> + #include <linux/mtd/mtd.h> + #include <linux/mtd/partitions.h> ++#include <linux/of.h> + + /* Ensure strings read from flash structs are null terminated */ + #define STR_NULL_TERMINATE(x) \ +@@ -200,9 +201,16 @@ out: + return nrparts; + } + ++static const struct of_device_id parse_bcm963xx_imagetag_match_table[] = { ++ { .compatible = "brcm,bcm963xx-imagetag" }, ++ {}, ++}; ++MODULE_DEVICE_TABLE(of, parse_bcm963xx_imagetag_match_table); ++ + static struct mtd_part_parser bcm963xx_imagetag_parser = { + .parse_fn = bcm963xx_parse_imagetag_partitions, + .name = "bcm963xx-imagetag", ++ .of_match_table = parse_bcm963xx_imagetag_match_table, + }; + module_mtd_part_parser(bcm963xx_imagetag_parser); + |