]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: bf537-stamp: use common spi boot workaround code
authorMike Frysinger <vapier@gentoo.org>
Wed, 2 Jun 2010 09:20:18 +0000 (05:20 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 5 Jul 2010 09:30:08 +0000 (05:30 -0400)
The common gpio code provides a function for handling the spi boot
workaround logic, so switch over to that rather than bang on the
gpio MMRs directly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
board/bf537-stamp/bf537-stamp.c

index 3911be671bbec61df51b4569f0c80dd55cddfd8d..ec888d44d9a4a80994fbaa0d843abb8d1c582b72 100644 (file)
@@ -46,11 +46,8 @@ int checkboard(void)
 void board_reset(void)
 {
        /* workaround for weak pull ups on ssel */
-       if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER) {
-               bfin_write_PORTF_FER(bfin_read_PORTF_FER() & ~PF10);
-               bfin_write_PORTFIO_SET(PF10);
-               udelay(1);
-       }
+       if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)
+               bfin_reset_boot_spi_cs(GPIO_PF10);
 }
 
 #ifdef CONFIG_BFIN_MAC