[U-Boot] [PATCH 1/7] fdt: Introduce fdt_translate_dma_address()

Simon Glass sjg at chromium.org
Thu May 23 00:18:18 UTC 2019


Hi Fabien,

On Wed, 22 May 2019 at 02:07, Fabien Dessenne <fabien.dessenne at st.com> wrote:
>
> Add the fdt_translate_dma_address() function to translate DMA address to
> CPU address.
> This function works the same way as fdt_translate_address(), with the
> difference that the translation relies on the "dma-ranges" property
> instead of the "ranges" property.
>
> Signed-off-by: Fabien Dessenne <fabien.dessenne at st.com>
> ---
>  common/fdt_support.c  | 6 ++++++
>  include/fdt_support.h | 2 ++
>  2 files changed, 8 insertions(+)

Please can you add a simple test for this, and also a function comment
in the header file?

Regards,
Simon


More information about the U-Boot mailing list