diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 | 
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 | 
| commit | 944d79559d154c12becde0dab327016cf438f46c (patch) | |
| tree | 50c101806f4d3b6585222dda060559eb4f3e005a /include/linux/spi/flash.h | |
| parent | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff) | |
| parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) | |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'include/linux/spi/flash.h')
| -rw-r--r-- | include/linux/spi/flash.h | 31 | 
1 files changed, 31 insertions, 0 deletions
| diff --git a/include/linux/spi/flash.h b/include/linux/spi/flash.h new file mode 100644 index 000000000000..3f22932e67a4 --- /dev/null +++ b/include/linux/spi/flash.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #ifndef LINUX_SPI_FLASH_H | ||
| 2 | #define LINUX_SPI_FLASH_H | ||
| 3 | |||
| 4 | struct mtd_partition; | ||
| 5 | |||
| 6 | /** | ||
| 7 | * struct flash_platform_data: board-specific flash data | ||
| 8 | * @name: optional flash device name (eg, as used with mtdparts=) | ||
| 9 | * @parts: optional array of mtd_partitions for static partitioning | ||
| 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 | ||
| 13 | * | ||
| 14 | * Board init code (in arch/.../mach-xxx/board-yyy.c files) can | ||
| 15 | * provide information about SPI flash parts (such as DataFlash) to | ||
| 16 | * help set up the device and its appropriate default partitioning. | ||
| 17 | * | ||
| 18 | * Note that for DataFlash, sizes for pages, blocks, and sectors are | ||
| 19 | * rarely powers of two; and partitions should be sector-aligned. | ||
| 20 | */ | ||
| 21 | struct flash_platform_data { | ||
| 22 | char *name; | ||
| 23 | struct mtd_partition *parts; | ||
| 24 | unsigned int nr_parts; | ||
| 25 | |||
| 26 | char *type; | ||
| 27 | |||
| 28 | /* we'll likely add more ... use JEDEC IDs, etc */ | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif | ||
