On 2026-10-29T05:07:18+11:00, Yao Zi <[email protected]> wrote:
> lib: fdtdec: Handle multiple memory nodes
>
> Current code only tries to fetch the first memory node found in
> fdt tree and determine memory banks from multiple reg properties.
>
> Specification allows multiple memory nodes in devicetree, rework
> fdtdec_setup_mem_size_base_lowest and fdtdec_setup_memory_banksize
> to iterate over all memory nodes.
>
> Signed-off-by: Jiaxun Yang <[email protected]>
> Signed-off-by: Yao Zi <[email protected]>
>
>  include/asm-generic/global_data.h |   2 +-
>  lib/fdtdec.c                      | 127 
> ++++++++++++++++++++++----------------
>  2 files changed, 74 insertions(+), 55 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to