fdt: allow address translation in case of SPL_OF_TRANSLATE
PATCH v3 1/1 fdt: allow address translation in case of SPL_OF_TRANSLATE
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.
---
Changes in v3: changed "u-boot" to "U-Boot" in commit message. Changes in v2: Added commit message
lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/fdtdec.c +1 -1
@@ -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
Signature · 1 line
1.9.1
PATCH v3 1/1 fdt: allow address translation in case of SPL_OF_TRANSLATE
Hi Vikas,
Quoted 28 lines · Vikas Manocha
Address translation is not working at present even if
SPL_OF_TRANSLATEis enabled which makes this configuration useless. This patch enables address translation for SPL U-Boot whenSPL_OF_TRANSLATEis selected.Signed-off-by Vikas Manocha <[email protected]>Reviewed-by Simon Glass <[email protected]>---
Changes in v3: changed "u-boot" to "U-Boot" in commit message. Changes in v2: Added commit message
lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/fdtdec.c +1
-2@@ -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 --
Quoted 2 lines
1.9.1
Actually I'm a bit unsure about this patch. You already have a patch applied:
5efa1bf libfdt: use CONFIG_IS_ENABLED for OF_LIBFDT
Do you actually want this one else well? If so, please resend it as it conflicts.
Regards,
Simon
PATCH v3 1/1 fdt: allow address translation in case of SPL_OF_TRANSLATE
Hi Simon,
Quoted 36 lines · Simon Glass
Hi Vikas,
Quoted 28 lines · Vikas Manocha
Address translation is not working at present even if
SPL_OF_TRANSLATEis enabled which makes this configuration useless. This patch enables address translation for SPL U-Boot whenSPL_OF_TRANSLATEis selected.Signed-off-by Vikas Manocha <[email protected]>Reviewed-by Simon Glass <[email protected]>---
Changes in v3: changed "u-boot" to "U-Boot" in commit message. Changes in v2: Added commit message
lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/fdtdec.c +1
-2@@ -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 --Quoted 2 lines
1.9.1
Actually I'm a bit unsure about this patch. You already have a patch applied:
Quoted 1 line
5efa1bf libfdt: use
CONFIG_IS_ENABLEDforOF_LIBFDT
This patch(5efa1bf) was recently applied & serves the same purpose. We can ignore my patch.
Cheers,
Vikas
Quoted 8 lines
Do you actually want this one else well? If so, please resend it as it conflicts.
Regards,
Simon
.