diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-08-15 08:24:43 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-08-26 23:45:20 +0200 |
commit | 2a1a2cb6e2b87ee550e6f27b647d23331dfd5e1b (patch) | |
tree | af05886e553effd9ab2b9825a73d169be5c784ed /include | |
parent | 3082d2348c8e13342f5fdd10e9b3f7408062dbf9 (diff) | |
download | u-boot-imx-2a1a2cb6e2b87ee550e6f27b647d23331dfd5e1b.zip u-boot-imx-2a1a2cb6e2b87ee550e6f27b647d23331dfd5e1b.tar.gz u-boot-imx-2a1a2cb6e2b87ee550e6f27b647d23331dfd5e1b.tar.bz2 |
fdt: refactor initrd related code
Created a new fdt_initrd() to deal with setting the initrd properties
in the device tree and fixing up the mem reserve. We can use this
both in the choosen node handling and lets us remove some duplicated
code when we fixup the initrd info in bootm on PPC.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/fdt_support.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index aa0fc58..424c3c6 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -29,6 +29,7 @@ #include <fdt.h> int fdt_chosen(void *fdt, ulong initrd_start, ulong initrd_end, int force); +int fdt_initrd(void *fdt, ulong initrd_start, ulong initrd_end, int force); void do_fixup_by_path(void *fdt, const char *path, const char *prop, const void *val, int len, int create); void do_fixup_by_path_u32(void *fdt, const char *path, const char *prop, |