| 1 | From 3f650fc30aa0badf9d02842ce396cea3eef2eeaa Mon Sep 17 00:00:00 2001 |
| 2 | From: Jonas Gorski <jonas.gorski@gmail.com> |
| 3 | Date: Fri, 1 Jul 2011 23:16:47 +0200 |
| 4 | Subject: [PATCH 49/79] SPI: Allow specifying the parsers for SPI flash |
| 5 | |
| 6 | Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> |
| 7 | --- |
| 8 | include/linux/spi/flash.h | 5 ++++- |
| 9 | 1 file changed, 4 insertions(+), 1 deletion(-) |
| 10 | |
| 11 | --- a/include/linux/spi/flash.h |
| 12 | +++ b/include/linux/spi/flash.h |
| 13 | @@ -2,7 +2,7 @@ |
| 14 | #define LINUX_SPI_FLASH_H |
| 15 | |
| 16 | struct mtd_partition; |
| 17 | - |
| 18 | +struct mtd_part_parser_data; |
| 19 | /** |
| 20 | * struct flash_platform_data: board-specific flash data |
| 21 | * @name: optional flash device name (eg, as used with mtdparts=) |
| 22 | @@ -10,6 +10,8 @@ struct mtd_partition; |
| 23 | * @nr_parts: number of mtd_partitions for static partitoning |
| 24 | * @type: optional flash device type (e.g. m25p80 vs m25p64), for use |
| 25 | * with chips that can't be queried for JEDEC or other IDs |
| 26 | + * @part_probe_types: optional list of MTD parser names to use for |
| 27 | + * partitioning |
| 28 | * |
| 29 | * Board init code (in arch/.../mach-xxx/board-yyy.c files) can |
| 30 | * provide information about SPI flash parts (such as DataFlash) to |
| 31 | @@ -25,6 +27,7 @@ struct flash_platform_data { |
| 32 | |
| 33 | char *type; |
| 34 | |
| 35 | + const char **part_probe_types; |
| 36 | /* we'll likely add more ... use JEDEC IDs, etc */ |
| 37 | }; |
| 38 | |
| 39 | |