core: ofnode: Add ofnode_get_addr_size_index
authorKeerthy <j-keerthy@ti.com>
Wed, 24 Apr 2019 11:49:53 +0000 (17:19 +0530)
committerSimon Glass <sjg@chromium.org>
Tue, 21 May 2019 23:33:23 +0000 (17:33 -0600)
commite679d03b08fbde6145fdef150f4b240e6d14448e
treeddf7cfd6ca72591254ec9c651b22cad93db90a4d
parent3a9a62a18e57b1ed3adbe3a3d00b9793ec55c08f
core: ofnode: Add ofnode_get_addr_size_index

Add ofnode_get_addr_size_index function to fetch the address
and size of the reg space based on index.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h