summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-01-31 13:57:17 +0100
committerWolfgang Denk <wd@denx.de>2008-02-07 01:13:00 +0100
commitceaed2b1e54ebf14d600e02fef016c8df5cc4d40 (patch)
treef8ca1e9ba98f6b4d02f99f0997beb64603a3f2c3 /include/image.h
parent68d4f05e6b2383a442fb71f80f2a9fbb3d8def68 (diff)
downloadu-boot-imx-ceaed2b1e54ebf14d600e02fef016c8df5cc4d40.zip
u-boot-imx-ceaed2b1e54ebf14d600e02fef016c8df5cc4d40.tar.gz
u-boot-imx-ceaed2b1e54ebf14d600e02fef016c8df5cc4d40.tar.bz2
[new uImage] Move ramdisk loading to a common routine
Ramdisk loading code, including initrd_high variable handling, was duplicated for PPC and M68K platforms. This patch creates common helper routine that is being called from both platform do_bootm_linux() routines. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index b438564..a8cb1da 100644
--- a/include/image.h
+++ b/include/image.h
@@ -37,6 +37,7 @@
#include <command.h>
#ifndef USE_HOSTCC
#include <linux/string.h>
+#include <asm/u-boot.h>
#endif
/*
@@ -340,7 +341,11 @@ image_header_t* image_get_ramdisk (cmd_tbl_t *cmdtp, int flag,
void get_ramdisk (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
image_header_t *hdr, int verify, uint8_t arch,
ulong *rd_start, ulong *rd_end);
-#endif /* USE_HOSTCCa */
+#if defined(CONFIG_PPC) || defined(CONFIG_M68K)
+void ramdisk_high (ulong rd_data_start, ulong rd_len, bd_t *kbd, ulong sp_limit,
+ ulong sp, ulong *initrd_start, ulong *initrd_end);
+#endif /* CONFIG_PPC || CONFIG_M68K */
+#endif /* USE_HOSTCC */
#endif /* __IMAGE_H__ */