From: Hannes Petermaier <oe5hpm@oevsv.at>
Date: Wed, 4 Jun 2014 08:26:29 +0000 (+0200)
Subject: board/BuR/tseries: only run gpmc_init(...) in NAND-build
X-Git-Tag: v2025.01-rc5-pxa1908~15240^2^2~6
X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=ef1bd8f416d5e841df6abfb35e3d15f459343bbf;p=u-boot.git

board/BuR/tseries: only run gpmc_init(...) in NAND-build

if we have no NAND-Chip, we don't need the gpmc-controller and therefore
is no need to init it.

Cc: trini@ti.com
Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
---

diff --git a/board/BuR/tseries/board.c b/board/BuR/tseries/board.c
index f0510e599e..c0178e75cf 100644
--- a/board/BuR/tseries/board.c
+++ b/board/BuR/tseries/board.c
@@ -117,7 +117,9 @@ void sdram_init(void)
 int board_init(void)
 {
 	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+#ifdef CONFIG_NAND
 	gpmc_init();
+#endif
 	return 0;
 }