of: introduce of_dma_get_range() helper
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 24 Apr 2014 15:30:02 +0000 (11:30 -0400)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 5 May 2014 22:11:13 +0000 (18:11 -0400)
commit18308c94723e162ed121942335bc186e66820a7a
tree48ac9d3721d820bdace974332f3925cc5dc2c02b
parent8febcaa2aac184d7e729acb75e9c4b80b04ad1b9
of: introduce of_dma_get_range() helper

The of_dma_get_range() allows to find "dma-range" property for
the specified device and parse it.
 dma-ranges format:
   DMA addr (dma_addr)          : naddr cells
   CPU addr (phys_addr_t)       : pna cells
   size                         : nsize cells

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Olof Johansson <olof@lixom.net>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
drivers/of/address.c
include/linux/of_address.h