[U-Boot] [PATCH v2 2/7] dm: core: add support for getting register address and size
sjg at chromium.org
Sat Jun 22 19:10:12 UTC 2019
On Mon, 3 Jun 2019 at 14:23, Sekhar Nori <nsekhar at ti.com> wrote:
> Current dev_read_*() API lacks support to get address and size
> of a "reg" property by name or index. Add support for the same.
> Livetree support has been added but not tested on real hardware.
> The existing unit tests testing reading address from device-tree
> have been updated to test address as well as size.
> Reviewed-by: Lokesh Vutla <lokeshvutla at ti.com>
> Signed-off-by: Sekhar Nori <nsekhar at ti.com>
> drivers/core/fdtaddr.c | 17 +++++++++++++++++
> drivers/core/read.c | 20 ++++++++++++++++++++
> include/dm/fdtaddr.h | 18 ++++++++++++++++++
> include/dm/read.h | 41 +++++++++++++++++++++++++++++++++++++++++
> test/dm/test-fdt.c | 16 ++++++++++++----
> 5 files changed, 108 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot