summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorSeungwon Jeon <tgih.jun@samsung.com>2011-06-20 17:23:53 +0900
committerChris Ball <cjb@laptop.org>2011-07-20 17:20:53 -0400
commit1d56c453b14854637567c838109127b8decbf328 (patch)
tree74e96de2eddf4b952b259b0e411fda837b23a63f /drivers/mmc/host
parenta5556f3cc7cbf65921dadc9b18f8eb0a07359619 (diff)
downloadblackbird-op-linux-1d56c453b14854637567c838109127b8decbf328.tar.gz
blackbird-op-linux-1d56c453b14854637567c838109127b8decbf328.zip
mmc: dw_mmc: set the card_width bit per card.
This patch sets the card_width bit of CTYPE for the corresponding card. CTYPE[31] and CTYPE[16] correspond respectively to card[15] and card[0] for 8-bit mode. And CTYPE[15] and CTYPE[0] correspond respectively to card[15] and CTYPE[0] for 1-bit or 4-bit mode. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Acked-by: Will Newton <will.newton@imgtec.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 66dcddb9c205..1ca830c171fd 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -574,7 +574,7 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot)
}
/* Set the current slot bus width */
- mci_writel(host, CTYPE, slot->ctype);
+ mci_writel(host, CTYPE, (slot->ctype << slot->id));
}
static void dw_mci_start_request(struct dw_mci *host,
OpenPOWER on IntegriCloud