[PATCH 2/3] dm: core: support reading a single indexed u32 value
Simon Glass
sjg at chromium.org
Thu Apr 2 20:55:07 CEST 2020
Hi Dario,
On Wed, 1 Apr 2020 at 13:43, <dariobin at libero.it> wrote:
>
> Do you think it would make sense to add indexed access also for the s32, u32u and u64 types or at least some of those ?
>
I really don't know. I suspect it would be used at some point.
Regards,
Simon
> Thanks and regards
> Dario Binacchi
>
> > Il 31 marzo 2020 alle 1.57 Simon Glass <sjg at chromium.org> ha scritto:
> >
> >
> > On Sun, 29 Mar 2020 at 10:05, Dario Binacchi <dariobin at libero.it> wrote:
> > >
> > > The patch adds helper functions to allow reading a single indexed u32
> > > value from a device-tree property containing multiple u32 values, that
> > > is an array of integers.
> > >
> > > Signed-off-by: Dario Binacchi <dariobin at libero.it>
> > > ---
> > >
> > > arch/sandbox/dts/test.dts | 1 +
> > > drivers/core/of_access.c | 22 +++++++++++++++++++++
> > > drivers/core/ofnode.c | 40 +++++++++++++++++++++++++++++++++++++++
> > > drivers/core/read.c | 13 +++++++++++++
> > > include/dm/of_access.h | 19 +++++++++++++++++++
> > > include/dm/ofnode.h | 25 ++++++++++++++++++++++++
> > > include/dm/read.h | 40 +++++++++++++++++++++++++++++++++++++++
> > > test/dm/test-fdt.c | 29 ++++++++++++++++++++++++++++
> > > 8 files changed, 189 insertions(+)
> > >
> >
> > Reviewed-by: Simon Glass <sjg at chromium.org>
> >
> > Very nice
More information about the U-Boot
mailing list