From 2c76d311a4de1ee70a6ee0adc0bedbd26de69f5f Mon Sep 17 00:00:00 2001
From: Nicholas Faustini <nicholas.faustini@azcomtech.com>
Date: Wed, 3 Oct 2018 12:58:48 +0200
Subject: [PATCH] fdt: add call to ft_board_setup_ex() for ks2 boards

When updating the board FDT, some of the operations
are performed by ft_board_setup_ex() and should be
executed also by the fdt command.

Signed-off-by: Nicholas Faustini <nicholas.faustini@azcomtech.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
---
 cmd/fdt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/fdt.c b/cmd/fdt.c
index 28de467f96..8a19a3fdbf 100644
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -596,6 +596,9 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 			       fdt_strerror(err));
 			return CMD_RET_FAILURE;
 		}
+#ifdef CONFIG_SOC_KEYSTONE
+		ft_board_setup_ex(working_fdt, gd->bd);
+#endif
 	}
 #endif
 	/* Create a chosen node */
-- 
2.39.5