]> git.baikalelectronics.ru Git - uboot.git/commit
lib: fdt: Split fdtdec_setup_mem_size_base()
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 5 Mar 2019 03:25:54 +0000 (04:25 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 9 Apr 2019 16:19:09 +0000 (18:19 +0200)
commitb852f06e4146191806313d324421f4f4b2f416c2
treebb8bb66159609d64aef10a3243125d03a0f952cd
parent1b0fec9cf7f800891d6e014af9c60f0d0720c3e1
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 <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