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

Patrick DELAUNAY patrick.delaunay at st.com
Mon Jul 22 12:27:47 UTC 2019


Hi,

> From: Fabien DESSENNE <fabien.dessenne at st.com>
> Sent: vendredi 31 mai 2019 15:12
> 
> Add the following functions to translate DMA address to CPU address:
> - dev_translate_dma_address()
> - ofnode_translate_dma_address()
> - of_translate_dma_address()
> - fdt_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.
> 
> Add related test. Test report:
> => ut dm fdt_translation
> Test: dm_test_fdt_translation: test-fdt.c
> Test: dm_test_fdt_translation: test-fdt.c (flat tree)
> Failures: 0
> 
> Signed-off-by: Fabien Dessenne <fabien.dessenne at st.com>
> ---
>  arch/sandbox/dts/test.dts |  4 ++++
>  common/fdt_support.c      |  6 ++++++
>  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 +++++++++++++++++++-
>  include/fdt_support.h     | 24 ++++++++++++++++++++++++
>  test/dm/test-fdt.c        | 12 ++++++++++++
>  10 files changed, 115 insertions(+), 2 deletions(-)
> 

Applied to u-boot-stm32/master, thanks!

Patrick


More information about the U-Boot mailing list