Browse Source

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

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Eric Nelson 13 years ago
parent
commit
d928a8f3f3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      board/freescale/mx6qsabrelite/mx6qsabrelite.c

+ 4 - 4
board/freescale/mx6qsabrelite/mx6qsabrelite.c

@@ -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;
 }