mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
fdt_support: add partitions fixup in mtd node
Allow overwriting defined partitions in the device tree blob using partition info defined in the 'mtdparts' environment variable. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Gerald Van Baren <vanbaren@cideas.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
d611295032
commit
3c950e2ebf
@@ -81,5 +81,7 @@ int fdt_resize(void *blob);
|
||||
|
||||
int fdt_fixup_nor_flash_size(void *blob, int cs, u32 size);
|
||||
|
||||
void fdt_fixup_mtdparts(void *fdt, void *node_info, int node_info_size);
|
||||
|
||||
#endif /* ifdef CONFIG_OF_LIBFDT */
|
||||
#endif /* ifndef __FDT_SUPPORT_H */
|
||||
|
||||
@@ -78,5 +78,6 @@ struct mtdids {
|
||||
extern int mtdparts_init(void);
|
||||
extern int find_dev_and_part(const char *id, struct mtd_device **dev,
|
||||
u8 *part_num, struct part_info **part);
|
||||
extern struct mtd_device *device_find(u8 type, u8 num);
|
||||
|
||||
#endif /* load_kernel_h */
|
||||
|
||||
11
include/mtd_node.h
Normal file
11
include/mtd_node.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef _NODE_INFO
|
||||
#define _NODE_INFO
|
||||
|
||||
/*
|
||||
* Info we use to search for a flash node in DTB.
|
||||
*/
|
||||
struct node_info {
|
||||
const char *compat; /* compatible string */
|
||||
int type; /* mtd flash type */
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user