]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: Support address translation for simple-bus
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2015 02:53:44 +0000 (20:53 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:18 +0000 (08:17 +0200)
commit5d9d9da133b8d54459af8dd3a9a90155c89d1250
tree85ea788562550db3256deb413e3ed0bbedf19082
parent694bcea768419c0783ba8997d03982efba75bcb3
dm: Support address translation for simple-bus

The 'ranges' property can be used to specify a translation from the system
address to the bus address. Add support for this using the dev_get_addr()
function, which devices should use to find their address.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
drivers/core/simple-bus.c
include/dm/device-internal.h