ipq5018: Update uncompress load address

This change update uncompress load address for ART
uncompress action, previously it was load at sys address.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ifce14c3cfe7746203acfcffa91adb2861f2b03db
This commit is contained in:
Vandhiadevan Karunamoorthy 2020-07-14 09:02:22 +05:30
parent d760f30afe
commit 6ce81e423e
2 changed files with 9 additions and 2 deletions

View file

@ -25,6 +25,9 @@
#endif
#if defined(CONFIG_ART_COMPRESSED) && \
(defined(CONFIG_GZIP) || defined(CONFIG_LZMA))
#ifndef CONFIG_COMPRESSED_LOAD_ADDR
#define CONFIG_COMPRESSED_LOAD_ADDR CONFIG_SYS_LOAD_ADDR
#endif
#include <mapmem.h>
#include <lzma/LzmaTools.h>
#endif
@ -94,8 +97,8 @@ int get_eth_mac_address(uchar *enetaddr, uint no_of_macs)
ret = -1;
} else {
#if defined(CONFIG_ART_COMPRESSED) && (defined(CONFIG_GZIP) || defined(CONFIG_LZMA))
image_buf = map_sysmem(CONFIG_SYS_LOAD_ADDR, 0);
load_buf = map_sysmem(CONFIG_SYS_LOAD_ADDR + 0x100000, 0);
image_buf = map_sysmem(CONFIG_COMPRESSED_LOAD_ADDR, 0);
load_buf = map_sysmem(CONFIG_COMPRESSED_LOAD_ADDR + 0x100000, 0);
img_size = qca_smem_flash_info.flash_block_size * size_blocks;
ret = spi_flash_read(flash, art_offset, img_size, image_buf);
if (ret == 0) {

View file

@ -391,6 +391,10 @@ extern loff_t board_env_size;
#ifdef CONFIG_ART_COMPRESSED
#undef CONFIG_GZIP
#undef CONFIG_ZLIB
/*
* CONFIG_COMPRESSED_LOAD_ADDR loads the compressed data for uncompress action
*/
#define CONFIG_COMPRESSED_LOAD_ADDR (CONFIG_SYS_LOAD_ADDR + (1 << 22))
#endif
#ifdef CONFIG_SMP_CMD_SUPPORT