Hi, > From: Fabien DESSENNE <[email protected]> > 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 <[email protected]> > --- > 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 _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

