lib: fdt: Split fdtdec_setup_mem_size_base()
authorMarek Vasut <[email protected]>
Tue, 5 Mar 2019 03:25:54 +0000 (04:25 +0100)
committerMarek Vasut <[email protected]>
Tue, 9 Apr 2019 16:19:09 +0000 (18:19 +0200)
commit3ebe09d09a407f93022d945a205c5318239eb3f6
treebb8bb66159609d64aef10a3243125d03a0f952cd
parentd574c19b89549964b2cc30e3e542109cfc22466b
lib: fdt: Split fdtdec_setup_mem_size_base()

Split fdtdec_setup_mem_size_base() into fdtdec_setup_mem_size_base_fdt(),
which allows the caller to pass custom blob into the function and the
original fdtdec_setup_mem_size_base(), 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 <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
include/fdtdec.h
lib/fdtdec.c