]> Git Repo - J-u-boot.git/commitdiff
Blackfin: bfin_sdh: set all timer bits before transfer
authorCliff Cai <[email protected]>
Mon, 7 Dec 2009 06:12:11 +0000 (06:12 +0000)
committerMike Frysinger <[email protected]>
Fri, 8 Apr 2011 04:44:27 +0000 (00:44 -0400)
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 <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
drivers/mmc/bfin_sdh.c

index 5670939e1e65dd6a1ca266d06c9948b3b2cb45f3..f9da6a370bf5a514a04a1301a344ed835bde43d5 100644 (file)
@@ -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);
This page took 0.034678 seconds and 4 git commands to generate.