Message ID | 1490919683-32013-1-git-send-email-vikas.manocha@st.com |
---|---|
State | Changes Requested |
Delegated to: | Simon Glass |
Headers | show |
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 >
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
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. 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(-)