summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCliff Cai <cliff.cai@analog.com>2009-12-07 06:12:11 +0000
committerMike Frysinger <vapier@gentoo.org>2011-04-08 00:44:27 -0400
commit1fd2d792a248916de23dc7644b54694c709465f1 (patch)
treed3c2e59a7bc6dd3087af2f0bab03562ce98b8ab9
parentd633b2dbe45859f9340117da4838571e03d6f55d (diff)
downloadu-boot-imx-1fd2d792a248916de23dc7644b54694c709465f1.zip
u-boot-imx-1fd2d792a248916de23dc7644b54694c709465f1.tar.gz
u-boot-imx-1fd2d792a248916de23dc7644b54694c709465f1.tar.bz2
Blackfin: bfin_sdh: set all timer bits before transfer
The timer register is 32bits, not 16bit, so 0xFFFF won't fill it. Write out -1 to make sure to fill the whole thing. Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--drivers/mmc/bfin_sdh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/bfin_sdh.c b/drivers/mmc/bfin_sdh.c
index 5670939..f9da6a3 100644
--- a/drivers/mmc/bfin_sdh.c
+++ b/drivers/mmc/bfin_sdh.c
@@ -123,7 +123,7 @@ static int sdh_setup_data(struct mmc *mmc, struct mmc_data *data)
bfin_write_SDH_DATA_CTL(data_ctl);
dma_cfg = WDSIZE_32 | RESTART | WNR | DMAEN;
- bfin_write_SDH_DATA_TIMER(0xFFFF);
+ bfin_write_SDH_DATA_TIMER(-1);
blackfin_dcache_flush_invalidate_range(data->dest,
data->dest + data->blocksize);