summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorWilliam Zhang <william.zhang@broadcom.com>2022-10-14 21:04:55 +0300
committerSimon Glass <sjg@chromium.org>2022-10-29 16:36:33 +0300
commit6792bd999b03bef74fc0762510f8a98eebb8c161 (patch)
tree519c9f6f4c679b0bdc7cbb39588557da17845a23 /drivers/core
parent7d01bb1c5a1daef0187c9ea276bde19a8d0e7fde (diff)
downloadu-boot-6792bd999b03bef74fc0762510f8a98eebb8c161.tar.xz
dm: tpl: Add fdt address translation support in TPL
This is needed in the platforms that use "ranges" node property for address translation in their dts for TPL. Signed-off-by: William Zhang <william.zhang@broadcom.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 0dc442b921..b79e99b63d 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -350,6 +350,20 @@ config SPL_OF_TRANSLATE
used for the address translation. This function is faster and
smaller in size than fdt_translate_address().
+config TPL_OF_TRANSLATE
+ bool "Translate addresses using fdt_translate_address in TPL"
+ depends on TPL_DM && TPL_OF_CONTROL
+ help
+ If this option is enabled, the reg property will be translated
+ using the fdt_translate_address() function. This is necessary
+ on some platforms (e.g. MVEBU) using complex "ranges"
+ properties in many nodes. As this translation is not handled
+ correctly in the default simple_bus_translate() function.
+
+ If this option is not enabled, simple_bus_translate() will be
+ used for the address translation. This function is faster and
+ smaller in size than fdt_translate_address()
+
config VPL_OF_TRANSLATE
bool "Translate addresses using fdt_translate_address in SPL"
depends on SPL_DM && VPL_OF_CONTROL