[U-Boot] [PATCH 3/3] ARM: tegra: represent RAM in 1 or 2 banks
Simon Glass
sjg at chromium.org
Sun Aug 9 17:07:24 CEST 2015
On 7 August 2015 at 16:12, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Represent all available RAM in either one or two banks. The first bank
> describes any RAM below 4GB. The second bank describes any RAM above 4GB.
>
> This split is driven by the following requirements:
> - The NVIDIA L4T kernel requires separate entries in the DT /memory/reg
> property for memory below and above the 4GB boundary. The layout of that
> DT property is directly driven by the entries in the U-Boot bank array.
> - On systems with RAM beyond a physical address of 4GB, the potential
> existence of a carve-out at the end of RAM below 4GB can only be
> represented using multiple banks, since usable RAM is not contiguous.
>
> While making this change, add a lot more comments re: how and why RAM is
> represented in banks, and implement a few more "semantic" functions that
> define (and perhaps later detect at run-time) the size of any carve-out.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> arch/arm/mach-tegra/board2.c | 120 ++++++++++++++++++++++++++++++++++++-----
> include/configs/tegra-common.h | 2 +-
> 2 files changed, 107 insertions(+), 15 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list