aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorYusuke Goda <yusuke.goda.sx@renesas.com>2010-08-30 06:50:19 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2010-10-28 18:29:16 -0400
commitf1334fb3c3006ba109886158c0ad79512f928bc1 (patch)
tree99038a92a9e1bf77e96129473614fad4d99a0d33 /drivers/mfd
parent68accd7370a90b899ea6563ba9032e5a102ec1b5 (diff)
mmc: Allow 2 byte requests in 4-bit mode for tmio_mmc
Adjust the tmio_mmc block size check to accept 2-byte requests in 4-bit mode if the hardware supports it. Tested with the SDHI hardware block included in sh7724. Signed-off-by: Yusuke Goda <yusuke.goda.sx@renesas.com> Signed-off-by: Matt Fleming <matt@console-pimps.org> Acked-by: Magnus Damm <damm@opensource.se> Tested-by: Arnd Hannemann <arnd@arndnet.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/sh_mobile_sdhi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/sh_mobile_sdhi.c b/drivers/mfd/sh_mobile_sdhi.c
index 01d83a41d570..f1714f93af9d 100644
--- a/drivers/mfd/sh_mobile_sdhi.c
+++ b/drivers/mfd/sh_mobile_sdhi.c
@@ -125,6 +125,12 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev)
125 mmc_data->capabilities |= p->tmio_caps; 125 mmc_data->capabilities |= p->tmio_caps;
126 } 126 }
127 127
128 /*
129 * All SDHI blocks support 2-byte and larger block sizes in 4-bit
130 * bus width mode.
131 */
132 mmc_data->flags |= TMIO_MMC_BLKSZ_2BYTES;
133
128 if (p && p->dma_slave_tx >= 0 && p->dma_slave_rx >= 0) { 134 if (p && p->dma_slave_tx >= 0 && p->dma_slave_rx >= 0) {
129 priv->param_tx.slave_id = p->dma_slave_tx; 135 priv->param_tx.slave_id = p->dma_slave_tx;
130 priv->param_rx.slave_id = p->dma_slave_rx; 136 priv->param_rx.slave_id = p->dma_slave_rx;