From ff0c513c85b89c4a1ff602f3bc54e4570d176e40 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Wed, 27 Jul 2016 15:25:28 +0930 Subject: 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 --- common/exports.c | 6 ++++++ common/image.c | 11 +++++++++++ 2 files changed, 17 insertions(+) (limited to 'common') diff --git a/common/exports.c b/common/exports.c index b4f1f7af15..568be21fc9 100644 --- a/common/exports.c +++ b/common/exports.c @@ -21,6 +21,12 @@ unsigned long get_version(void) # define phy_find_by_mask dummy # define mdio_phydev_for_ethname dummy # define miiphy_set_current_dev dummy +#ifdef CONFIG_FMC_SPI +# define spi_dma dummy +#endif +#endif +#ifndef CONFIG_AST_SPI_NOR +# define memmove_dma dummy #endif void jumptable_init(void) 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)) { -- cgit v1.2.1