]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am65x: Enable fixing up msmc sram node
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 8 Mar 2019 06:17:35 +0000 (11:47 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 12 Apr 2019 12:05:51 +0000 (08:05 -0400)
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>
board/ti/am65x/evm.c

index 784b2b0191d49e3e9adae36cc04d593638f293ae..52f5d6b11e3a7a2b797afc01a50993d15a67d533 100644 (file)
@@ -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