dm: Introduce xxx_get_dma_range() 35/268135/1
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tue, 12 Jan 2021 12:55:22 +0000 (13:55 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 16 Dec 2021 11:38:06 +0000 (20:38 +0900)
commitcac56301cf1a48bc56b4ebad94846d83b68f5c60
treee89dce0e21317873d5d1ce6b93ba21de9f0681ba
parentd31161b2882bf67614b457dec623bf1b9ce6e8e8
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