diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-03-07 15:16:20 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-03-07 15:40:32 +1100 |
commit | fb27dd8ac6c4c80511e2ca674a6886cd504e1a2c (patch) | |
tree | 9d67ee536d6facbbb886f0c3ddca795ebca2b587 /hdata/spira.c | |
parent | 0f28e38bbeaa11bda20b81f2247c82682d93d787 (diff) | |
download | skiboot-fb27dd8ac6c4c80511e2ca674a6886cd504e1a2c.zip skiboot-fb27dd8ac6c4c80511e2ca674a6886cd504e1a2c.tar.gz skiboot-fb27dd8ac6c4c80511e2ca674a6886cd504e1a2c.tar.bz2 |
device: implement dt_translate_address() properly
Currently this is implemented by calling dt_get_address() which only
works when a device is a child of the root node. This patch implements
the functionality to work with nested nodes when all parent nodes have
an appropriate "ranges" property.
This implementation only works for up to 64 bit addresses. Properly
supporting larger addressing schemes is a fair amount of (probably
pointless) work, so I'm leaving supporting that until we have an
actual a need for it.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Tested-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/spira.c')
0 files changed, 0 insertions, 0 deletions