lib: fdt: Split fdtdec_setup_memory_banksize()
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 5 Mar 2019 03:25:55 +0000 (04:25 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 9 Apr 2019 16:19:09 +0000 (18:19 +0200)
commit118f4d4559a4386fa87a1e2509e84a1986b24a34
tree0f55e71b1e41700db5d26bbdbe026b41cc9653d3
parent3ebe09d09a407f93022d945a205c5318239eb3f6
lib: fdt: Split fdtdec_setup_memory_banksize()

Split fdtdec_setup_memory_banksize() into fdtdec_setup_memory_banksize_fdt(),
which allows the caller to pass custom blob into the function and the
original fdtdec_setup_memory_banksize(), which uses the gd->fdt_blob. This
is useful when configuring the DRAM properties from a FDT blob fragment
passed in by the firmware.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/fdtdec.h
lib/fdtdec.c