]> git.baikalelectronics.ru Git - uboot.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)
commit1780b5bdd2797ff743766819bc155aa32505eb77
tree5876e80d9ab8107d72821e93e57df8d7495310ac
parentc3a2f8eb24f19f089911e2ebe3daf838ae3b60c4
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