1STRUCT PLATFORM_NAND(9) Structures STRUCT PLATFORM_NAND(9)
2
3
4
6 struct_platform_nand_chip - chip level device structure
7
9 struct platform_nand_chip {
10 int nr_chips;
11 int chip_offset;
12 int nr_partitions;
13 struct mtd_partition * partitions;
14 struct nand_ecclayout * ecclayout;
15 int chip_delay;
16 unsigned int options;
17 const char ** part_probe_types;
18 void (* set_parts) (uint64_t size,struct platform_nand_chip *chip);
19 void * priv;
20 };
21
23 nr_chips
24 max. number of chips to scan for
25
26 chip_offset
27 chip number offset
28
29 nr_partitions
30 number of partitions pointed to by partitions (or zero)
31
32 partitions
33 mtd partition list
34
35 ecclayout
36 ecc layout info structure
37
38 chip_delay
39 R/B delay value in us
40
41 options
42 Option flags, e.g. 16bit buswidth
43
44 part_probe_types
45 NULL-terminated array of probe types
46
47 set_parts
48 platform specific function to set partitions
49
50 priv
51 hardware controller specific settings
52
54 Thomas Gleixner <tglx@linutronix.de>
55 Author.
56
58Kernel Hackers Manual 2.6. June 2019 STRUCT PLATFORM_NAND(9)