mmc: dw_mmc: support 8-bit buswidth
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Feb 2011 07:12:38 +0000 (16:12 +0900)
committerChris Ball <cjb@laptop.org>
Tue, 15 Mar 2011 17:49:30 +0000 (13:49 -0400)
This patch adds support for 8-bit buswidth.
dw_mmc can use 8-bit buswidth and set to CTYPE_8BIT in card-type register.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c

index cd6d8212dacc25154cc87fa9bbf9c7e2cff9a8b7..62c8440ff04b980e82976368730accc3d115b09b 100644 (file)
@@ -673,6 +673,9 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
        case MMC_BUS_WIDTH_4:
                slot->ctype = SDMMC_CTYPE_4BIT;
                break;
+       case MMC_BUS_WIDTH_8:
+               slot->ctype = SDMMC_CTYPE_8BIT;
+               break;
        }
 
        if (ios->clock) {