aboutsummaryrefslogtreecommitdiff
path: root/board/ti/am65x/evm.c
diff options
context:
space:
mode:
authorLokesh Vutla2019-03-08 11:47:35 +0530
committerTom Rini2019-04-12 08:05:51 -0400
commit5582c03565190f364cca775ad4a4cc6b12fd0165 (patch)
tree2ccbef9423ae75455c266f8ceac603d5ac41139c /board/ti/am65x/evm.c
parenta9a84480f4ccba1eb75c5ca6eb1ff33e8e25fdc4 (diff)
board: ti: am65x: Enable fixing up msmc sram node
Create a ft_board_setup() api that gets called as part of DT fixup before jumping to kernel. In this ft_board_setup() call fdt_fixup_msmc_ram that update msmc sram node. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti/am65x/evm.c')
-rw-r--r--board/ti/am65x/evm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index 784b2b0191d..52f5d6b11e3 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <asm/io.h>
#include <spl.h>
+#include <asm/arch/sys_proto.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -66,3 +67,16 @@ int board_fit_config_name_match(const char *name)
return -1;
}
#endif
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, bd_t *bd)
+{
+ int ret;
+
+ ret = fdt_fixup_msmc_ram(blob, "/interconnect@100000", "sram@70000000");
+ if (ret)
+ printf("%s: fixing up msmc ram failed %d\n", __func__, ret);
+
+ return ret;
+}
+#endif