dm: Introduce xxx_get_dma_range() 48/267748/3
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tue, 12 Jan 2021 12:55:22 +0000 (13:55 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 13 Dec 2021 01:42:53 +0000 (01:42 +0000)
commit1290427882c1b8ae1bad8f718f19ebac71dedd57
tree505066a3c5bf518fa05d4183260a3936a72f6500
parent7e5a69e0d60e481d47f076c1fe11e1347bdb498a
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.

Change-Id: Ib15b8a346390bf698dbc274f58ae646ba0fd6711
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: Jaehoon Chung <jh80.chung@samsung.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