.. | .. |
---|
37 | 37 | * master MTD flag set for the corresponding MTD partition. |
---|
38 | 38 | * For example, to force a read-only partition, simply adding |
---|
39 | 39 | * MTD_WRITEABLE to the mask_flags will do the trick. |
---|
| 40 | + * add_flags: contains flags to add to the parent flags |
---|
40 | 41 | * |
---|
41 | 42 | * Note: writeable partitions require their size and offset be |
---|
42 | 43 | * erasesize aligned (e.g. use MTDPART_OFS_NEXTBLK). |
---|
.. | .. |
---|
48 | 49 | uint64_t size; /* partition size */ |
---|
49 | 50 | uint64_t offset; /* offset within the master MTD space */ |
---|
50 | 51 | uint32_t mask_flags; /* master MTD flags to mask out for this partition */ |
---|
| 52 | + uint32_t add_flags; /* flags to add to the partition */ |
---|
51 | 53 | struct device_node *of_node; |
---|
52 | 54 | }; |
---|
53 | 55 | |
---|
.. | .. |
---|
105 | 107 | module_driver(__mtd_part_parser, register_mtd_parser, \ |
---|
106 | 108 | deregister_mtd_parser) |
---|
107 | 109 | |
---|
108 | | -int mtd_is_partition(const struct mtd_info *mtd); |
---|
109 | 110 | int mtd_add_partition(struct mtd_info *master, const char *name, |
---|
110 | 111 | long long offset, long long length); |
---|
111 | 112 | int mtd_del_partition(struct mtd_info *master, int partno); |
---|