[PATCH 2/3] dm: core: support reading a single indexed u32 value
dariobin at libero.it
dariobin at libero.it
Wed Apr 1 21:43:45 CEST 2020
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 ?
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