]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add a new API devfdt_get_addr_index_ptr()
authorBin Meng <bmeng.cn@gmail.com>
Sun, 12 Sep 2021 03:15:12 +0000 (11:15 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 20 Oct 2021 02:59:09 +0000 (10:59 +0800)
commitfb9bec8e8a7378d921478d5fbcc941e0fa80c01e
tree5876e80d9ab8107d72821e93e57df8d7495310ac
parent7e22c85918e68e6df50d01d08585f88fbbaf3456
dm: core: Add a new API devfdt_get_addr_index_ptr()

At present there is only devfdt_get_addr_ptr() which only returns
the first <addr, size> pair in the 'reg' property. Add a new API
devfdt_get_addr_index_ptr() to return the indexed pointer.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/core/fdtaddr.c
include/dm/fdtaddr.h