mfd: tmio: Add partition parsers platform data
authorAndrea Adami <andrea.adami@gmail.com>
Mon, 14 Aug 2017 20:48:34 +0000 (22:48 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 23 Aug 2017 14:49:33 +0000 (16:49 +0200)
With the introduction of sharpslpart partition parser we can now read the
offsets from NAND: we specify the list of the parsers as platform data, with
cmdlinepart and ofpart parsers first allowing to override the part. table
written in NAND. This is done in the board files using this driver.

Thus, we need to extend tmio_nand_data to consider the partition parsers.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
include/linux/mfd/tmio.h

index 26e8f8c0a6db6d445c3440ba9223e808698ab88b..357b6cfdf34a988938facebb64ce457cc7eef887 100644 (file)
@@ -139,6 +139,7 @@ struct tmio_nand_data {
        struct nand_bbt_descr   *badblock_pattern;
        struct mtd_partition    *partition;
        unsigned int            num_partitions;
+       const char *const       *part_parsers;
 };
 
 #define FBIO_TMIO_ACC_WRITE    0x7C639300