summaryrefslogtreecommitdiffstats
path: root/include/of.h
diff options
context:
space:
mode:
authorVicente Bergas <vicencb@gmail.com>2013-02-12 00:04:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-12 09:04:27 +0100
commitafab6ac78303dd86bd7de62f17b32daf444f8d1a (patch)
tree51cc3b179034506f8d56cafc0a3ac97e7ced831c /include/of.h
parentc0ba0a64ae16bc9f722187acb0769bb48d674c5d (diff)
downloadbarebox-afab6ac78303dd86bd7de62f17b32daf444f8d1a.tar.gz
barebox-afab6ac78303dd86bd7de62f17b32daf444f8d1a.tar.xz
DeviceTree: add support for initrd in the DT
Add the initrd start and end address to the DT, code comes from u-boot. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index d3a310f2ff..d413d724aa 100644
--- a/include/of.h
+++ b/include/of.h
@@ -18,6 +18,14 @@ void do_fixup_by_path(struct fdt_header *fdt, const char *path, const char *prop
void do_fixup_by_path_u32(struct fdt_header *fdt, const char *path, const char *prop,
u32 val, int create);
int fdt_get_path_or_create(struct fdt_header *fdt, const char *path);
+#ifdef CONFIG_FDT
+int fdt_initrd(void *fdt, ulong initrd_start, ulong initrd_end, int force);
+#else
+static inline int fdt_initrd(void *fdt, ulong start, ulong end, int force)
+{
+ return 0;
+}
+#endif
#define OF_BAD_ADDR ((u64)-1)