[U-Boot] [PATCH] board/BuR/tseries: only run gpmc_init(...) in NAND-build

Hannes Petermaier oe5hpm at oevsv.at
Wed Jun 4 10:26:29 CEST 2014


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

Cc: trini at ti.com
Signed-off-by: Hannes Petermaier <oe5hpm at oevsv.at>
---
 board/BuR/tseries/board.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/BuR/tseries/board.c b/board/BuR/tseries/board.c
index 761114d..a540ec1 100644
--- a/board/BuR/tseries/board.c
+++ b/board/BuR/tseries/board.c
@@ -140,7 +140,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;
 }
 
-- 
1.7.9.5



More information about the U-Boot mailing list