From 1ba38f6100243b263fc0d147cd59e76c1ad87a61 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Sat, 13 Jan 2018 18:43:32 +0100 Subject: 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 --- .../122-mtd-bcm63xxpart-add-of_match_table.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 target/linux/brcm63xx/patches-4.14/122-mtd-bcm63xxpart-add-of_match_table.patch (limited to 'target/linux/brcm63xx/patches-4.14/122-mtd-bcm63xxpart-add-of_match_table.patch') diff --git a/target/linux/brcm63xx/patches-4.14/122-mtd-bcm63xxpart-add-of_match_table.patch b/target/linux/brcm63xx/patches-4.14/122-mtd-bcm63xxpart-add-of_match_table.patch new file mode 100644 index 0000000000..9b3f2c4a0a --- /dev/null +++ b/target/linux/brcm63xx/patches-4.14/122-mtd-bcm63xxpart-add-of_match_table.patch @@ -0,0 +1,37 @@ +From 89cd5efa4a0d342b860a726bb1d382e4db4b96a4 Mon Sep 17 00:00:00 2001 +From: Jonas Gorski +Date: Wed, 28 Jun 2017 18:34:42 +0200 +Subject: [PATCH 1/2] mtd: bcm63xxpart: add of_match_table + +Signed-off-by: Jonas Gorski +--- + drivers/mtd/bcm63xxpart.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +--- a/drivers/mtd/bcm63xxpart.c ++++ b/drivers/mtd/bcm63xxpart.c +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + + #define BCM963XX_CFE_BLOCK_SIZE SZ_64K /* always at least 64KiB */ + +@@ -172,9 +173,16 @@ out: + return ret; + }; + ++static const struct of_device_id parse_bcm63xx_cfe_match_table[] = { ++ { .compatible = "brcm,bcm963xx-cfe-nor-partitions" }, ++ {}, ++}; ++MODULE_DEVICE_TABLE(of, parse_bcm63xx_cfe_match_table); ++ + static struct mtd_part_parser bcm63xx_cfe_parser = { + .parse_fn = bcm63xx_parse_cfe_partitions, + .name = "bcm63xxpart", ++ .of_match_table = parse_bcm63xx_cfe_match_table, + }; + module_mtd_part_parser(bcm63xx_cfe_parser); + -- cgit v1.2.3