aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-09-24 15:47:18 -0400
committerPierre Ossman <drzeus@drzeus.cx>2007-09-25 13:03:31 -0400
commitfe2dc44eac1223a0e92859242f58fd2a58a6f8fa (patch)
treea042995b2d440646174a5b3d53ef7cfc92526d4c /drivers
parent81ab570f65395f09962f4bca0d89403f8911c071 (diff)
mmc: pxamci: set proper block capabilities according to PXA flavor
From PXA27x, it is possible to do 2048-byte block transfers. Signed-off-by: Nicolas Pitre <nico@marvell.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/pxamci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c
index 03d162881159..67acc6a00895 100644
--- a/drivers/mmc/host/pxamci.c
+++ b/drivers/mmc/host/pxamci.c
@@ -444,9 +444,9 @@ static int pxamci_probe(struct platform_device *pdev)
444 mmc->max_seg_size = PAGE_SIZE; 444 mmc->max_seg_size = PAGE_SIZE;
445 445
446 /* 446 /*
447 * Block length register is 10 bits. 447 * Block length register is only 10 bits before PXA27x.
448 */ 448 */
449 mmc->max_blk_size = 1023; 449 mmc->max_blk_size = (cpu_is_pxa21x() || cpu_is_pxa25x()) ? 1023 : 2048;
450 450
451 /* 451 /*
452 * Block count register is 16 bits. 452 * Block count register is 16 bits.