[U-Boot] [PATCH 2/2] fdt: allow fdtdec_get_addr_size_*() to translate addresses

Simon Glass sjg at chromium.org
Fri Aug 5 03:36:54 CEST 2016


Hi Stephen,

On 1 August 2016 at 14:52, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at 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 <swarren at nvidia.com>
> ---
>  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(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

This does not appear in patchwork - can you please resend it?

- Simon


More information about the U-Boot mailing list