diff mbox series

[U-Boot,v3,09/16] board: ti: j721e: Enable fixing up msmc sram node

Message ID 20190613045957.25133-10-lokeshvutla@ti.com
State Accepted
Commit d146af5b0e1e11015580a1294245bae4e617fe28
Delegated to: Tom Rini
Headers show
Series arm: k3: arm64: Initial support for Texas Instrument's J721E Platform | expand

Commit Message

Lokesh Vutla June 13, 2019, 4:59 a.m. UTC
From: Suman Anna <s-anna@ti.com>

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: Suman Anna <s-anna@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 board/ti/j721e/evm.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Tom Rini July 28, 2019, 9:47 p.m. UTC | #1
On Thu, Jun 13, 2019 at 10:29:50AM +0530, Lokesh Vutla wrote:

> From: Suman Anna <s-anna@ti.com>
> 
> 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: Suman Anna <s-anna@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index 43d502b6ca..db5d7b8834 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/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