Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Marek Vasut's avatar
    942ee093
    fdtdec: Support parsing multiple /memory nodes · 942ee093
    Marek Vasut authored
    
    It is legal to have multiple /memory nodes in a device tree . Currently,
    fdtdec_setup_memory_size() only supports parsing the first node . This
    patch extends the function such that if a particular /memory node does
    no longer have further "reg" entries and CONFIG_NR_DRAM_BANKS still
    allows for more DRAM banks, the code moves on to the next memory node
    and checks it's "reg"s. This makes it possible to handle both systems
    with single memory node with multiple entries and systems with multiple
    memory nodes with single entry.
    
    Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
    Cc: Tom Rini <trini@konsulko.com>
    Cc: Simon Glass <sjg@chromium.org>
    942ee093
    History
    fdtdec: Support parsing multiple /memory nodes
    Marek Vasut authored
    
    It is legal to have multiple /memory nodes in a device tree . Currently,
    fdtdec_setup_memory_size() only supports parsing the first node . This
    patch extends the function such that if a particular /memory node does
    no longer have further "reg" entries and CONFIG_NR_DRAM_BANKS still
    allows for more DRAM banks, the code moves on to the next memory node
    and checks it's "reg"s. This makes it possible to handle both systems
    with single memory node with multiple entries and systems with multiple
    memory nodes with single entry.
    
    Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
    Cc: Tom Rini <trini@konsulko.com>
    Cc: Simon Glass <sjg@chromium.org>