aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi/flash.h
diff options
context:
space:
mode:
authorMike Lavender <mike@steroidmicros.com>2006-01-08 16:34:27 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-13 19:29:55 -0500
commit2f9f762879015d738a5ec2ac8a16be94b3a4a06d (patch)
tree73efe8bcdb970ee9c815c08358fb707b46aab983 /include/linux/spi/flash.h
parent9904f22a7202c6b54e96b0cc9870817013c350a1 (diff)
[PATCH] spi: M25 series SPI flash
This was originally a driver for the ST M25P80 SPI flash. It's been updated slightly to handle other M25P series chips. For many of these chips, the specific type could be probed, but for now this just requires static setup with flash_platform_data that lists the chip type (size, format) and any default partitioning to use. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Mike Lavender <mike@steroidmicros.com> Cc: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/spi/flash.h')
-rw-r--r--include/linux/spi/flash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/spi/flash.h b/include/linux/spi/flash.h
index 2ce6558bf3f8..3f22932e67a4 100644
--- a/include/linux/spi/flash.h
+++ b/include/linux/spi/flash.h
@@ -8,6 +8,8 @@ struct mtd_partition;
8 * @name: optional flash device name (eg, as used with mtdparts=) 8 * @name: optional flash device name (eg, as used with mtdparts=)
9 * @parts: optional array of mtd_partitions for static partitioning 9 * @parts: optional array of mtd_partitions for static partitioning
10 * @nr_parts: number of mtd_partitions for static partitoning 10 * @nr_parts: number of mtd_partitions for static partitoning
11 * @type: optional flash device type (e.g. m25p80 vs m25p64), for use
12 * with chips that can't be queried for JEDEC or other IDs
11 * 13 *
12 * Board init code (in arch/.../mach-xxx/board-yyy.c files) can 14 * Board init code (in arch/.../mach-xxx/board-yyy.c files) can
13 * provide information about SPI flash parts (such as DataFlash) to 15 * provide information about SPI flash parts (such as DataFlash) to
@@ -21,6 +23,8 @@ struct flash_platform_data {
21 struct mtd_partition *parts; 23 struct mtd_partition *parts;
22 unsigned int nr_parts; 24 unsigned int nr_parts;
23 25
26 char *type;
27
24 /* we'll likely add more ... use JEDEC IDs, etc */ 28 /* we'll likely add more ... use JEDEC IDs, etc */
25}; 29};
26 30