[PATCH 5/9] dm: core: Add a new API devfdt_get_addr_index_ptr()

Simon Glass sjg at chromium.org
Thu Sep 30 06:09:04 CEST 2021


Hi Bin,

On Sat, 11 Sept 2021 at 21:15, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> 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 at gmail.com>
> ---
>
>  drivers/core/fdtaddr.c | 11 ++++++++---
>  include/dm/fdtaddr.h   | 12 ++++++++++++
>  2 files changed, 20 insertions(+), 3 deletions(-)

Please do update the tests for this new function.


More information about the U-Boot mailing list