]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: add support for getting register address and size
authorSekhar Nori <nsekhar@ti.com>
Thu, 1 Aug 2019 13:42:56 +0000 (19:12 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 12 Aug 2019 17:33:39 +0000 (13:33 -0400)
commita5568ab385be6a0e6cfe245dee8b9faf9bc077f6
tree696d7835d6784adde746d196fcd455ca59a59401
parentfd17c37cf0875956c27c550cdd731ea86d8760dc
dm: core: add support for getting register address and size

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@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/core/fdtaddr.c
drivers/core/read.c
include/dm/fdtaddr.h
include/dm/read.h
test/dm/test-fdt.c