[U-Boot] [PATCH 2/7] dm: core: Introduce xxx_translate_dma_address()

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


Hi Fabien,

On Wed, 22 May 2019 at 02:07, Fabien Dessenne <fabien.dessenne at st.com> wrote:
>
> Add the following functions to translate DMA address to CPU address:
> - dev_translate_dma_address()
> - ofnode_translate_dma_address()
> - of_translate_dma_address()
> These functions work the same way as xxx_translate_address(), with the
> difference that the translation relies on the "dma-ranges" property
> instead of the "ranges" property.
>

Looks good, but again, needs a test.

> Signed-off-by: Fabien Dessenne <fabien.dessenne at st.com>
> ---
>  drivers/core/of_addr.c |  4 ++++
>  drivers/core/ofnode.c  |  8 ++++++++
>  drivers/core/read.c    |  5 +++++
>  include/dm/of_addr.h   | 18 ++++++++++++++++++
>  include/dm/ofnode.h    | 16 +++++++++++++++-
>  include/dm/read.h      | 20 +++++++++++++++++++-
>  6 files changed, 69 insertions(+), 2 deletions(-)
>

Regards,
Simon


More information about the U-Boot mailing list