]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: Introduce xxx_get_dma_range()
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tue, 12 Jan 2021 12:55:22 +0000 (13:55 +0100)
committerMatthias Brugger <mbrugger@suse.com>
Thu, 18 Feb 2021 10:56:25 +0000 (11:56 +0100)
commit51bdb50904b1ffffc1caa8dd92f5abea78e33a0b
tree861d5e3a57adaed2bd04df0489eed3df1af99369
parentc709243ee0e1c3e1f8aaa750efb5b738493502c7
dm: Introduce xxx_get_dma_range()

Add the following functions to get a specific device's DMA ranges:
 - dev_get_dma_range()
 - ofnode_get_dma_range()
 - of_get_dma_range()
 - fdt_get_dma_range()
They are specially useful in oder to be able validate a physical address
space range into a bus's and to convert addresses from and to address
spaces.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
common/fdt_support.c
drivers/core/of_addr.c
drivers/core/ofnode.c
drivers/core/read.c
include/dm/of_addr.h
include/dm/ofnode.h
include/dm/read.h
include/fdt_support.h