
On 7 December 2015 at 11:08, York Sun yorksun@freescale.com wrote:
MC and debug server are not board-specific. Instead of reserving memory in each board file, a weak function is introduced in board_f.c to replace macro CONFIG_SYS_MEM_TOP_HIDE for more flexibility. Legacy use of this macro is still supported. Move the reservation calculation to SoC file. Reduce debug server memory by 2MB to make room for secure memory.
In the system with MC and debug server, the top of u-boot memory is not the end of memory. PRAM is not used for this reservation.
Signed-off-by: York Sun yorksun@freescale.com
Changes in v4: Rebase to current master branch
Reviewed-by: Simon Glass sjg@chromium.org
If for any reason you issue a v5 can you please move the common change (board_f.c) to a separate patch?
Changes in v3: Rename CONFIG_SYS_MC_RESERV_MEM_ALIGN to CONFIG_SYS_MC_RSV_MEM_ALIGN Check for unused CONFIG_SYS_MEM_TOP_HIDE if board_reserve_ram_top is used Use gd->ram_size = board_reserve_ram_top(gd->ram_size) format Use phys_size_t instead of ulong for ram_size calculation
Changes in v2: Revise commit message.
README | 6 +++--- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 21 +++++++++++++++++++++ board/freescale/ls2080a/ls2080a.c | 17 ----------------- board/freescale/ls2080aqds/ls2080aqds.c | 17 ----------------- board/freescale/ls2080ardb/ls2080ardb.c | 17 ----------------- common/board_f.c | 23 +++++++++++++++-------- include/configs/ls2080a_common.h | 9 ++------- 7 files changed, 41 insertions(+), 69 deletions(-)
Regards, Simon