board/BuR/tseries: only run gpmc_init(...) in NAND-build
authorHannes Petermaier <oe5hpm@oevsv.at>
Wed, 4 Jun 2014 08:26:29 +0000 (10:26 +0200)
committerTom Rini <trini@ti.com>
Fri, 6 Jun 2014 21:46:15 +0000 (17:46 -0400)
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>
board/BuR/tseries/board.c

index f0510e599e9b0f046f04a3d882bd4c38e43cf6ba..c0178e75cfcb2796e71158e1f4b95d93279b45da 100644 (file)
@@ -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;
 }