mmc: fix wrong mszs calculation for edmac.
authorlintao <lintao@rock-chips.com>
Tue, 21 Oct 2014 07:14:13 +0000 (15:14 +0800)
committerlintao <lintao@rock-chips.com>
Tue, 21 Oct 2014 07:14:13 +0000 (15:14 +0800)
commit82c75e15b3afd6a1bb5f897222f2881937e46609
tree6b21f1326845cb70592b027db9fde3c013a9caf0
parentfd9bcea1b355b925dbfcbd39af289f588150b7f3
mmc: fix wrong mszs calculation for edmac.

Internal dmac set mszs from 0 ~ 7, means {1, 4, 8, 16,
32, 64, 128, 256} respectively. But mszs is difference from another
if it's edmac been used indeed.External dmac limit it from 0 ~ 16
, and we select mszs from FIFOTH calculated before to lookup table
in order to find mszs fitable for edmac.

Signed-off-by: lintao <lintao@rock-chips.com>
Tested-and-acked-by: lw <lw@rock-chips.com>
arch/arm/boot/dts/rk312x-sdk.dtsi
drivers/mmc/host/rk_sdmmc.c