[U-Boot] [PATCH] fdt: prevent clearing memory node if there are no banks

Simon Glass sjg at chromium.org
Tue Jun 16 20:07:56 CEST 2015


Hi,

On 13 June 2015 at 04:43, Andre Przywara <osp at andrep.de> wrote:
>
> Avoid clearing the reg property in the memory DT node if no memory
> banks have been specified for a board (CONFIG_NR_DRAM_BANKS == 0).
> This allows boards to let U-Boot skip the DT memory tinkering in case
> other firmware has already setup the node properly before.
> This should be safe as all callers of fdt_fixup_memory_banks that use
> a computed <banks> value put at least 1 in there.
> Add some documentation comments to the header file.
>
> Signed-off-by: Andre Przywara <osp at andrep.de>
> ---
> Hi,
>
> this replaces my former "6/8: ARM: bootm: allow skipping fdt memory node fixup"
> patch, as Simon had some (justified) concerns. If this is too generic now,
> let me know and I will rework it.
>
> Cheers,
> Andre.
>
>  common/fdt_support.c  | 14 ++++++++------
>  include/fdt_support.h | 26 ++++++++++++++++++++++++++
>  2 files changed, 34 insertions(+), 6 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>

Tom, you can pick this up if you like?

- Simon


More information about the U-Boot mailing list