Message ID | 1486999070-21155-2-git-send-email-jjhiblot@ti.com |
---|---|
State | Accepted |
Commit | 5efa1bfbfa871f5bc3f07357088e8cf3c19e6f61 |
Delegated to: | Simon Glass |
Headers | show |
On 2/13/2017 8:47 PM, Jean-Jacques Hiblot wrote: > Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address > translation should be used. > > Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Vignesh has posted a similar patch[1]. [1]http://patchwork.ozlabs.org/patch/727131/ Thanks and regards, Lokesh > --- > > to: sjg@chromium.org > > lib/fdtdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/fdtdec.c b/lib/fdtdec.c > index 81f47ef..1edfbf2 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 CONFIG_IS_ENABLED(OF_TRANSLATE) > if (translate) > addr = fdt_translate_address(blob, node, prop_addr); > else >
On 13/02/2017 16:41, Lokesh Vutla wrote: > > On 2/13/2017 8:47 PM, Jean-Jacques Hiblot wrote: >> Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address >> translation should be used. >> >> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> > Vignesh has posted a similar patch[1]. Sorry, I had missed this one. Please ignore this patch. > [1]http://patchwork.ozlabs.org/patch/727131/ > > Thanks and regards, > Lokesh > >> --- >> >> to: sjg@chromium.org >> >> lib/fdtdec.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/lib/fdtdec.c b/lib/fdtdec.c >> index 81f47ef..1edfbf2 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 CONFIG_IS_ENABLED(OF_TRANSLATE) >> if (translate) >> addr = fdt_translate_address(blob, node, prop_addr); >> else >>
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 81f47ef..1edfbf2 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 CONFIG_IS_ENABLED(OF_TRANSLATE) if (translate) addr = fdt_translate_address(blob, node, prop_addr); else
Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address translation should be used. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> --- to: sjg@chromium.org lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)