[U-Boot] [PATCH v2 3/8] dm: util: Add a livetree equivalent API of dm_fdt_pre_reloc()

Bin Meng bmeng.cn at gmail.com
Thu Oct 11 02:51:51 UTC 2018


Hi Simon,

On Thu, Oct 11, 2018 at 10:01 AM Simon Glass <sjg at chromium.org> wrote:
>
> On 7 October 2018 at 04:01, Bin Meng <bmeng.cn at gmail.com> wrote:
> > This adds a new API dm_ofnode_pre_reloc(), a livetree equivalent
> > API of dm_fdt_pre_reloc().
> >
> > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > ---
> >
> > Changes in v2: None
> >
> >  drivers/core/util.c | 25 +++++++++++++++++++++++++
> >  include/dm/util.h   | 27 ++++++++++++++++++++++++++-
> >  2 files changed, 51 insertions(+), 1 deletion(-)
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> I wonder if it is possible to delete the old code that doesn't support
> livetree? This implementation should support both.

Agreed. But there are two drivers (drivers/clk/at91/pmc.c and
drivers/clk/altera/clk-arria10.c) that calls dm_fdt_pre_reloc() at
this point. We can clean this up in the future.

Regards,
Bin


More information about the U-Boot mailing list