On 5 August 2016 at 09:47, Stephen Warren <swar...@wwwdotorg.org> wrote: > From: Stephen Warren <swar...@nvidia.com> > > Some code may want to read reg values from DT, but from nodes that aren't > associated with DM devices, so using dev_get_addr_index() isn't > appropriate. In this case, fdtdec_get_addr_size_*() are the functions to > use. However, "translation" (via the chain of ranges properties in parent > nodes) may still be desirable. Add a function parameter to request that, > and implement it. Update all call sites to default to the original > behaviour. > > Signed-off-by: Stephen Warren <swar...@nvidia.com> > Reviewed-by: Simon Glass <s...@chromium.org> > --- > drivers/core/device.c | 2 +- > drivers/gpio/mpc85xx_gpio.c | 2 +- > drivers/i2c/fsl_i2c.c | 2 +- > drivers/mmc/msm_sdhci.c | 3 ++- > drivers/net/cpsw.c | 3 ++- > drivers/spmi/spmi-msm.c | 5 +++-- > include/fdtdec.h | 14 +++++++++++--- > lib/fdtdec.c | 20 +++++++++++++------- > 8 files changed, 34 insertions(+), 17 deletions(-)
Applied to u-boot-dm, thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot