Skip to contentSkip to conversation

mx6q: mx6qsabrelite: setup_spi() should be called in board_init to allow use for environment

PATCH New Eric Nelson 2 participants 2 messages Feb 26, 2012 – Mar 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx6q: mx6qsabrelite: setup_spi() should be called in board_init to allow use for environment

---
 board/freescale/mx6qsabrelite/mx6qsabrelite.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
board/freescale/mx6qsabrelite/mx6qsabrelite.c +4 -4
index db1bea9..7fe2dc9 100644
@@ -259,10 +259,6 @@ int board_eth_init(bd_t *bis)
 	if (ret)
 		printf("FEC MXC: %s:failed\n", __func__);
 
-#ifdef CONFIG_MXC_SPI
-	setup_spi();
-#endif
-
 	return 0;
 }
 
@@ -278,6 +274,10 @@ int board_init(void)
        /* address of boot parameters */
        gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
+#ifdef CONFIG_MXC_SPI
+	setup_spi();
+#endif
+
        return 0;
 }
 
Signature · 1 line
1.7.9
#1 lore raw

PATCH 1/1 mx6q: mx6qsabrelite: setup_spi() should be called in board_init to allow use for environment

Quoted 2 lines · Eric Nelson

---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================