diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-02 05:20:18 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-07-05 05:30:08 -0400 |
commit | 3f390e15a719900b5e51f13b262ddb2e67349bc2 (patch) | |
tree | f1cddbd4859ae1d6b73b4b78005af03fab3ea52a /board/bf537-stamp | |
parent | a84774f56a97c5a2b0521b85ac9eb8b1c7fb15b3 (diff) | |
download | u-boot-midas-3f390e15a719900b5e51f13b262ddb2e67349bc2.tar.gz u-boot-midas-3f390e15a719900b5e51f13b262ddb2e67349bc2.tar.bz2 u-boot-midas-3f390e15a719900b5e51f13b262ddb2e67349bc2.zip |
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.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/board/bf537-stamp/bf537-stamp.c b/board/bf537-stamp/bf537-stamp.c index 3911be671b..ec888d44d9 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 |