fdt_support: Use CONFIG_NR_DRAM_BANKS if defined
authorDoug Anderson <dianders@chromium.org>
Tue, 30 Apr 2013 10:22:00 +0000 (10:22 +0000)
committerTom Rini <trini@ti.com>
Fri, 17 May 2013 18:43:29 +0000 (14:43 -0400)
commit5e5745465c94605720295fab942eacbdd215db90
tree416a39058e351b5ea42fd871152b448460704043
parenta558ad71132fa6061ff950b9d3a12b0dad01b129
fdt_support: Use CONFIG_NR_DRAM_BANKS if defined

It appears that there are some cases where we have more than 4 banks
of memory.  Use CONFIG_NR_DRAM_BANKS if it's defined to handle this.
This will take up a little extra stack space (64 bytes extra if we go
up to 8 banks), but that seems OK.

Signed-off-by: Doug Anderson <dianders@chromium.org>
common/fdt_support.c