summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2010-03-16 17:10:05 +0100
committerWolfgang Denk <wd@denx.de>2010-03-21 22:44:59 +0100
commit3c950e2ebfde083084cc926b020e3a22a536bf85 (patch)
tree50a4b0b6b2f5c03272216a7d9414052d8e3e9496 /include
parentd611295032c30e6c533cb356005fa82ab7992824 (diff)
downloadu-boot-imx-3c950e2ebfde083084cc926b020e3a22a536bf85.zip
u-boot-imx-3c950e2ebfde083084cc926b020e3a22a536bf85.tar.gz
u-boot-imx-3c950e2ebfde083084cc926b020e3a22a536bf85.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/fdt_support.h2
-rw-r--r--include/jffs2/load_kernel.h1
-rw-r--r--include/mtd_node.h11
3 files changed, 14 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 0a9dd0d..a3d5f8c 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -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 */
diff --git a/include/jffs2/load_kernel.h b/include/jffs2/load_kernel.h
index 8b2720e..906eb3d 100644
--- a/include/jffs2/load_kernel.h
+++ b/include/jffs2/load_kernel.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 */
diff --git a/include/mtd_node.h b/include/mtd_node.h
new file mode 100644
index 0000000..5aae085
--- /dev/null
+++ b/include/mtd_node.h
@@ -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