summaryrefslogtreecommitdiff
path: root/board/bf537-stamp
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-06-02 05:20:18 -0400
committerMike Frysinger <vapier@gentoo.org>2010-07-05 05:30:08 -0400
commit3f390e15a719900b5e51f13b262ddb2e67349bc2 (patch)
treef1cddbd4859ae1d6b73b4b78005af03fab3ea52a /board/bf537-stamp
parenta84774f56a97c5a2b0521b85ac9eb8b1c7fb15b3 (diff)
downloadu-boot-imx-3f390e15a719900b5e51f13b262ddb2e67349bc2.zip
u-boot-imx-3f390e15a719900b5e51f13b262ddb2e67349bc2.tar.gz
u-boot-imx-3f390e15a719900b5e51f13b262ddb2e67349bc2.tar.bz2
Blackfin: bf537-stamp: use common spi boot workaround code
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>
Diffstat (limited to 'board/bf537-stamp')
-rw-r--r--board/bf537-stamp/bf537-stamp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/board/bf537-stamp/bf537-stamp.c b/board/bf537-stamp/bf537-stamp.c
index 3911be6..ec888d4 100644
--- a/board/bf537-stamp/bf537-stamp.c
+++ b/board/bf537-stamp/bf537-stamp.c
@@ -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