dm: Support address translation for simple-bus
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2015 02:53:44 +0000 (20:53 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Aug 2015 13:44:28 +0000 (07:44 -0600)
commitf33017716e5c430d84366ecc4476ba2b655f3fef
tree6ac94703ce7c4374c81a35176ac541f97d91efb0
parent0990fcb772192af615f23cd78bbfc081ec40236b
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