]> git.dujemihanovic.xyz Git - u-boot.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)
commitf5b904796fa876bbfdf6eb9d2b311f9d01d80f5a
tree696d7835d6784adde746d196fcd455ca59a59401
parentacbb7cd4d34caec36ff6d044a8f55325fa27459f
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