![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef LINUX_SPI_FLASH_H 0003 #define LINUX_SPI_FLASH_H 0004 0005 struct mtd_partition; 0006 0007 /** 0008 * struct flash_platform_data: board-specific flash data 0009 * @name: optional flash device name (eg, as used with mtdparts=) 0010 * @parts: optional array of mtd_partitions for static partitioning 0011 * @nr_parts: number of mtd_partitions for static partitioning 0012 * @type: optional flash device type (e.g. m25p80 vs m25p64), for use 0013 * with chips that can't be queried for JEDEC or other IDs 0014 * 0015 * Board init code (in arch/.../mach-xxx/board-yyy.c files) can 0016 * provide information about SPI flash parts (such as DataFlash) to 0017 * help set up the device and its appropriate default partitioning. 0018 * 0019 * Note that for DataFlash, sizes for pages, blocks, and sectors are 0020 * rarely powers of two; and partitions should be sector-aligned. 0021 */ 0022 struct flash_platform_data { 0023 char *name; 0024 struct mtd_partition *parts; 0025 unsigned int nr_parts; 0026 0027 char *type; 0028 0029 /* we'll likely add more ... use JEDEC IDs, etc */ 0030 }; 0031 0032 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |