summaryrefslogtreecommitdiffstats
path: root/include/jffs2
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2008-11-19 16:32:36 +0100
committerStefan Roese <sr@denx.de>2008-11-19 20:34:39 +0100
commit7e6ee7ad27de5216db1baef76f38c3429c8f4a2a (patch)
treefe2108d4ddfea1d8054eefe57740b68036f70644 /include/jffs2
parentc91a719daa331b5856109313371e4ece5ec06d96 (diff)
downloadblackbird-obmc-uboot-7e6ee7ad27de5216db1baef76f38c3429c8f4a2a.tar.gz
blackbird-obmc-uboot-7e6ee7ad27de5216db1baef76f38c3429c8f4a2a.zip
UBI: Add basic UBI support to U-Boot (Part 6/8)
This patch adds basic UBI (Unsorted Block Image) support to U-Boot. It's based on the Linux UBI version and basically has a "OS" translation wrapper that defines most Linux specific calls (spin_lock() etc.) into no-ops. Some source code parts have been uncommented by "#ifdef UBI_LINUX". This makes it easier to compare this version with the Linux version and simplifies future UBI ports/bug-fixes from the Linux version. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/jffs2')
-rw-r--r--include/jffs2/load_kernel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/jffs2/load_kernel.h b/include/jffs2/load_kernel.h
index 551fd0c442..e9b7d6e7c9 100644
--- a/include/jffs2/load_kernel.h
+++ b/include/jffs2/load_kernel.h
@@ -73,4 +73,9 @@ struct mtdids {
#define putLabeledWord(x, y) printf("%s %08x\n", x, (unsigned int)y)
#define led_blink(x, y, z, a)
+/* common/cmd_jffs2.c */
+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);
+
#endif /* load_kernel_h */
OpenPOWER on IntegriCloud