summaryrefslogtreecommitdiffstats
path: root/common/image.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-07-27 15:25:28 +0930
committerJoel Stanley <joel@jms.id.au>2016-07-27 15:44:01 +0930
commitff0c513c85b89c4a1ff602f3bc54e4570d176e40 (patch)
treea64844afb7fab6d84bfb8dfec49b47b957c4b4eb /common/image.c
parenta83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7 (diff)
downloadblackbird-obmc-uboot-ff0c513c85b89c4a1ff602f3bc54e4570d176e40.tar.gz
blackbird-obmc-uboot-ff0c513c85b89c4a1ff602f3bc54e4570d176e40.zip
aspeed: hacks made to common code
These are additions made by the Aspeed SDK outside of the arch directory. They need to be cleaned up and/or removed. Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c
index 0be09e5c63..20c4807bde 100644
--- a/common/image.c
+++ b/common/image.c
@@ -1069,6 +1069,17 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
return 1;
}
}
+/// TODO ... Check Why ..................
+#if defined(CONFIG_ARCH_ASPEED)
+ /*
+ * We need to copy the ramdisk to SRAM to let Linux boot
+ */
+ if (rd_data) {
+ memmove ((void *)rd_load, (uchar *)rd_data, rd_len);
+ rd_data = rd_load;
+ }
+#endif /* CONFIG_ASPEED */
+
} else if (images->legacy_hdr_valid &&
image_check_type(&images->legacy_hdr_os_copy,
IH_TYPE_MULTI)) {
OpenPOWER on IntegriCloud