2016-10-11 02:36:00 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
|
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2016-10-11 02:36:00 +01:00
|
|
|
*/
|
|
|
|
#ifndef __ROCKCHIP_PLAT_LD_S__
|
|
|
|
#define __ROCKCHIP_PLAT_LD_S__
|
|
|
|
|
|
|
|
MEMORY {
|
|
|
|
SRAM (rwx): ORIGIN = SRAM_BASE, LENGTH = SRAM_SIZE
|
2017-05-04 09:02:45 +01:00
|
|
|
PMUSRAM (rwx): ORIGIN = PMUSRAM_BASE, LENGTH = PMUSRAM_RSIZE
|
2016-10-11 02:36:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = SRAM_BASE;
|
|
|
|
ASSERT(. == ALIGN(4096),
|
|
|
|
"SRAM_BASE address is not aligned on a page boundary.")
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The SRAM space allocation for RK3399
|
|
|
|
* ----------------
|
2016-10-12 01:10:12 +01:00
|
|
|
* | m0 code bin
|
|
|
|
* ----------------
|
2016-10-11 02:36:00 +01:00
|
|
|
* | sram text
|
|
|
|
* ----------------
|
|
|
|
* | sram data
|
|
|
|
* ----------------
|
|
|
|
*/
|
2016-10-12 01:10:12 +01:00
|
|
|
.incbin_sram : ALIGN(4096) {
|
|
|
|
__sram_incbin_start = .;
|
|
|
|
*(.sram.incbin)
|
|
|
|
. = ALIGN(4096);
|
|
|
|
__sram_incbin_end = .;
|
|
|
|
} >SRAM
|
|
|
|
|
2016-10-11 02:36:00 +01:00
|
|
|
.text_sram : ALIGN(4096) {
|
|
|
|
__bl31_sram_text_start = .;
|
|
|
|
*(.sram.text)
|
|
|
|
*(.sram.rodata)
|
|
|
|
. = ALIGN(4096);
|
|
|
|
__bl31_sram_text_end = .;
|
|
|
|
} >SRAM
|
|
|
|
|
|
|
|
.data_sram : ALIGN(4096) {
|
|
|
|
__bl31_sram_data_start = .;
|
|
|
|
*(.sram.data)
|
|
|
|
. = ALIGN(4096);
|
|
|
|
__bl31_sram_data_end = .;
|
|
|
|
} >SRAM
|
2017-05-04 09:02:45 +01:00
|
|
|
|
|
|
|
.stack_sram : ALIGN(4096) {
|
|
|
|
__bl31_sram_stack_start = .;
|
|
|
|
. += 4096;
|
|
|
|
__bl31_sram_stack_end = .;
|
|
|
|
} >SRAM
|
|
|
|
|
|
|
|
. = PMUSRAM_BASE;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* pmu_cpuson_entrypoint request address
|
|
|
|
* align 64K when resume, so put it in the
|
|
|
|
* start of pmusram
|
|
|
|
*/
|
|
|
|
.pmusram : {
|
|
|
|
ASSERT(. == ALIGN(64 * 1024),
|
|
|
|
".pmusram.entry request 64K aligned.");
|
|
|
|
*(.pmusram.entry)
|
|
|
|
__bl31_pmusram_text_start = .;
|
|
|
|
*(.pmusram.text)
|
|
|
|
*(.pmusram.rodata)
|
|
|
|
__bl31_pmusram_text_end = .;
|
|
|
|
__bl31_pmusram_data_start = .;
|
|
|
|
*(.pmusram.data)
|
|
|
|
__bl31_pmusram_data_end = .;
|
|
|
|
|
|
|
|
} >PMUSRAM
|
2016-10-11 02:36:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* __ROCKCHIP_PLAT_LD_S__ */
|