All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] fdt: allow address translation in case of SPL_OF_TRANSLATE
Date: Fri, 31 Mar 2017 22:22:07 -0600	[thread overview]
Message-ID: <CAPnjgZ3g_BQc1Uy5tNYtchLcgk0m4X9uqi9ZH-eaDe2ZZpBP-A@mail.gmail.com> (raw)
In-Reply-To: <1490919683-32013-1-git-send-email-vikas.manocha@st.com>

On 30 March 2017 at 18:21, Vikas Manocha <vikas.manocha@st.com> wrote:
> Address translation is not working at present even if SPL_OF_TRANSLATE is
> enabled which makes this configuration useless. This patch enables address
> translation for SPL u-boot when SPL_OF_TRANSLATE is selected.

U-Boot

>
> Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
> ---
>
> Changed in v2:
> - Added commit message
>
>  lib/fdtdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

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

>
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index 81f47ef..a1c4d16 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -112,7 +112,7 @@ fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
>                 return FDT_ADDR_T_NONE;
>         }
>
> -#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_OF_LIBFDT)
> +#if defined(CONFIG_SPL_OF_TRANSLATE) || defined(CONFIG_OF_LIBFDT)
>         if (translate)
>                 addr = fdt_translate_address(blob, node, prop_addr);
>         else
> --
> 1.9.1
>

  reply	other threads:[~2017-04-01  4:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-31  0:21 [U-Boot] [PATCH v2] fdt: allow address translation in case of SPL_OF_TRANSLATE Vikas Manocha
2017-04-01  4:22 ` Simon Glass [this message]
2017-04-04 21:52 Vikas Manocha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPnjgZ3g_BQc1Uy5tNYtchLcgk0m4X9uqi9ZH-eaDe2ZZpBP-A@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.