aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/mmci.c
diff options
context:
space:
mode:
authorPierre Ossman <drzeus@drzeus.cx>2006-11-21 11:54:23 -0500
committerPierre Ossman <drzeus@drzeus.cx>2007-02-04 14:54:10 -0500
commitfe4a3c7a20f14d86022a8132adbf6ddb98e7197c (patch)
tree0719b8eb2d8c04c286095365ebff3d29285a5796 /drivers/mmc/mmci.c
parentdba4accab17bd2e2e09088f746257a8c14af1cc2 (diff)
mmc: Allow host drivers to specify a max block size
Most controllers have an upper limit on the block size. Allow the host drivers to specify this and make sure we avoid hitting this limit. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/mmci.c')
-rw-r--r--drivers/mmc/mmci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/mmci.c b/drivers/mmc/mmci.c
index ccfe6561be24..5d48e0081894 100644
--- a/drivers/mmc/mmci.c
+++ b/drivers/mmc/mmci.c
@@ -534,6 +534,11 @@ static int mmci_probe(struct amba_device *dev, void *id)
534 */ 534 */
535 mmc->max_seg_size = mmc->max_sectors << 9; 535 mmc->max_seg_size = mmc->max_sectors << 9;
536 536
537 /*
538 * Block size can be up to 2048 bytes, but must be a power of two.
539 */
540 mmc->max_blk_size = 2048;
541
537 spin_lock_init(&host->lock); 542 spin_lock_init(&host->lock);
538 543
539 writel(0, host->base + MMCIMASK0); 544 writel(0, host->base + MMCIMASK0);