mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 04:26:42 +07:00
8ab102d60a
Fix typos and add the following to the scripts/spelling.txt: partiton||partition Link: http://lkml.kernel.org/r/1481573103-11329-7-git-send-email-yamada.masahiro@socionext.com Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
32 lines
984 B
C
32 lines
984 B
C
#ifndef LINUX_SPI_FLASH_H
|
|
#define LINUX_SPI_FLASH_H
|
|
|
|
struct mtd_partition;
|
|
|
|
/**
|
|
* struct flash_platform_data: board-specific flash data
|
|
* @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 partitioning
|
|
* @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
|
|
* help set up the device and its appropriate default partitioning.
|
|
*
|
|
* Note that for DataFlash, sizes for pages, blocks, and sectors are
|
|
* rarely powers of two; and partitions should be sector-aligned.
|
|
*/
|
|
struct flash_platform_data {
|
|
char *name;
|
|
struct mtd_partition *parts;
|
|
unsigned int nr_parts;
|
|
|
|
char *type;
|
|
|
|
/* we'll likely add more ... use JEDEC IDs, etc */
|
|
};
|
|
|
|
#endif
|