[U-Boot] [PATCH v4] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

Simon Glass sjg at chromium.org
Mon Dec 7 19:20:33 CET 2015


On 7 December 2015 at 11:08, York Sun <yorksun at 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 at freescale.com>
>
> ---
>
> Changes in v4:
>   Rebase to current master branch

Reviewed-by: Simon Glass <sjg at 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


More information about the U-Boot mailing list