STRUCT FLASH_PLATFORM_DATA(9)
π struct_flash_platform_data(9) π
okay so welcome to the Kernel API Manual, bestie β todayβs main character is struct flash_platform_data, and it is literally the board-specific flash data struct. π
β¨
β¨ NAME β¨
struct flash_platform_data β board-specific flash data π¦
π SYNOPSIS π
struct flash_platform_data {
char *name;
struct mtd_partition *parts;
unsigned int nr_parts;
char *type;
};
π§© Members π§©
nameβ optional flash device name (eg, as used withmtdparts=) πpartsβ optional array ofmtd_partitionsfor static partitioning π§©nr_partsβ number ofmtd_partitionsfor static partitioning π’typeβ optional flash device type (e.g.m25p80vsm25p64), for use with chips that can't be queried for JEDEC or other IDs π«Ά
πΈ Description πΈ
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. π
π SEE ALSO π
- Kernel file
./include/linux/spi/flash.hπ
mwah π β source/version: ./include/linux/spi; date: October 2026. periodt. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms