From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Date: Wed, 6 Aug 2008 01:32:12 -0500 Subject: [U-Boot-Users] [PATCH 3/3] add ability to disable ft_board_setup as part of bootm In-Reply-To: <1218004332-20311-2-git-send-email-galak@kernel.crashing.org> References: <1218004332-20311-1-git-send-email-galak@kernel.crashing.org> <1218004332-20311-2-git-send-email-galak@kernel.crashing.org> Message-ID: <1218004332-20311-3-git-send-email-galak@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de if the environment variable 'disable_fdt_boardsetup' is set we skip doing the ft_board_setup(). Signed-off-by: Kumar Gala --- lib_ppc/bootm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c index 1182c50..a5b3a45 100644 --- a/lib_ppc/bootm.c +++ b/lib_ppc/bootm.c @@ -192,7 +192,8 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[], } #ifdef CONFIG_OF_BOARD_SETUP /* Call the board-specific fixup routine */ - ft_board_setup(of_flat_tree, gd->bd); + if (!getenv("disable_fdt_boardsetup")) + ft_board_setup(of_flat_tree, gd->bd); #endif } -- 1.5.5.1