summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMike Lavender <mike@steroidmicros.com>2006-01-09 00:34:27 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-14 03:29:55 +0300
commit2f9f762879015d738a5ec2ac8a16be94b3a4a06d (patch)
tree73efe8bcdb970ee9c815c08358fb707b46aab983 /include/linux
parent9904f22a7202c6b54e96b0cc9870817013c350a1 (diff)
downloadlinux-2f9f762879015d738a5ec2ac8a16be94b3a4a06d.tar.xz
[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')
-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;
* @name: optional flash device name (eg, as used with mtdparts=)
* @parts: optional array of mtd_partitions for static partitioning
* @nr_parts: number of mtd_partitions for static partitoning
+ * @type: optional flash device type (e.g. m25p80 vs m25p64), for use
+ * with chips that can't be queried for JEDEC or other IDs
*
* Board init code (in arch/.../mach-xxx/board-yyy.c files) can
* provide information about SPI flash parts (such as DataFlash) to
@@ -21,6 +23,8 @@ struct flash_platform_data {
struct mtd_partition *parts;
unsigned int nr_parts;
+ char *type;
+
/* we'll likely add more ... use JEDEC IDs, etc */
};