x1000: Clarify definition & usage of RAM areas

Document what the symbols are supposed to mean, fixup SPL's
usage of DRAM_END which should really be SDRAM_END instead.
No functional changes.

Change-Id: Ie85b0ee35fea8b7858891e5b9d6634eaae42c9f8
This commit is contained in:
Aidan MacDonald 2022-02-28 16:00:33 +00:00
parent cdee5284d4
commit 603412f447
3 changed files with 51 additions and 9 deletions

View file

@ -432,7 +432,7 @@ void spl_main(void)
/* handle compression */
switch(opt->flags & BOOTFLAG_COMPRESSED) {
case BOOTFLAG_UCLPACK: {
uint32_t out_size = X1000_DRAM_END - opt->load_addr;
uint32_t out_size = X1000_SDRAM_END - opt->load_addr;
rc = ucl_unpack((uint8_t*)load_buffer, opt->storage_size,
(uint8_t*)opt->load_addr, &out_size);
} break;

View file

@ -7,10 +7,8 @@ ENTRY(_spl_start)
STARTUP(target/mips/ingenic_x1000/spl-start.o)
MEMORY {
/* First 4k of TCSM is used by mask ROM for stack + variables,
* and the next 2k are occupied by SPL header */
TCSM : ORIGIN = X1000_TCSM_BASE + 0x1800,
LENGTH = X1000_TCSM_SIZE - 0x1800
TCSM : ORIGIN = X1000_SPL_EXEC_ADDR,
LENGTH = X1000_SPL_SIZE
}
SECTIONS