of: Read dma_offset from device tree
This reads the dma-ranges property from the device tree and sets
dma_offset in the devices accordingly. The code is mostly taken
from the Kernel as of v5.5-rc1. of_dma_configure() is trimmed down
to the cases we want to support currently.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d791e51 commit bd6705c7da22f5bf0443619f6f98637892515704
@Sascha Hauer Sascha Hauer authored on 20 Dec 2019
Showing 3 changed files
View
drivers/of/address.c
View
drivers/of/platform.c
View
include/of_address.h