提交 fe2dc44e 编写于 作者: N Nicolas Pitre 提交者: Pierre Ossman

mmc: pxamci: set proper block capabilities according to PXA flavor

From PXA27x, it is possible to do 2048-byte block transfers.
Signed-off-by: NNicolas Pitre <nico@marvell.com>
Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
上级 81ab570f
......@@ -444,9 +444,9 @@ static int pxamci_probe(struct platform_device *pdev)
mmc->max_seg_size = PAGE_SIZE;
/*
* Block length register is 10 bits.
* Block length register is only 10 bits before PXA27x.
*/
mmc->max_blk_size = 1023;
mmc->max_blk_size = (cpu_is_pxa21x() || cpu_is_pxa25x()) ? 1023 : 2048;
/*
* Block count register is 16 bits.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册