[U-Boot] [PATCH v3 16/19] lib: fdtdec: Add function re-setup the fdt more effeciently
Simon Glass
sjg at chromium.org
Sat Nov 3 06:07:27 UTC 2018
On 22 October 2018 at 08:12, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
> In some cases it may be useful to be able to change the fdt we have been
> using and use another one instead. For example, the TI platforms uses an
> EEPROM to store board information and, based on the type of board,
> different dtbs are used by the SPL. When DM_I2C is used, a first dtb must
> be used before the I2C is initialized and only then the final dtb can be
> selected.
> To speed up the process and reduce memory usage, introduce a new function
> fdtdec_setup_best_match() that re-use the DTBs loaded in memory by
> fdtdec_setup() to select the best match.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
>
> ---
>
> Changes in v3:
> - fdtdec_resetup() need not call fdtdec_setup() when only a single DTB is
> used.
> - Add documentation in README-fdt-control explaining why and how to use
> fdtdec_resetup()
>
> Changes in v2: None
>
> doc/README.fdt-control | 18 ++++++++++++++++
> include/asm-generic/global_data.h | 4 ++++
> include/fdtdec.h | 21 +++++++++++++++++++
> lib/fdtdec.c | 43 ++++++++++++++++++++++++++++++++++++++-
> 4 files changed, 85 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list