diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2012-11-08 03:35:31 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 13:55:12 -0500 |
commit | b2f7cb45c0ac0852b4b0ba938388ab24c91d6b2d (patch) | |
tree | 5f6eeb11f6e6336fffb9d445c430942a95122242 /drivers/mmc | |
parent | bf7cb2244c80b1390c51dfc33a88b56ce88a8986 (diff) |
mmc: dw_mmc: remove duplicated buswidth code
ctype is using 1-bit buswidth mode by default.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index fa8b14cce33a..323c5022c2ca 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c | |||
@@ -773,19 +773,16 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
773 | const struct dw_mci_drv_data *drv_data = slot->host->drv_data; | 773 | const struct dw_mci_drv_data *drv_data = slot->host->drv_data; |
774 | u32 regs; | 774 | u32 regs; |
775 | 775 | ||
776 | /* set default 1 bit mode */ | ||
777 | slot->ctype = SDMMC_CTYPE_1BIT; | ||
778 | |||
779 | switch (ios->bus_width) { | 776 | switch (ios->bus_width) { |
780 | case MMC_BUS_WIDTH_1: | ||
781 | slot->ctype = SDMMC_CTYPE_1BIT; | ||
782 | break; | ||
783 | case MMC_BUS_WIDTH_4: | 777 | case MMC_BUS_WIDTH_4: |
784 | slot->ctype = SDMMC_CTYPE_4BIT; | 778 | slot->ctype = SDMMC_CTYPE_4BIT; |
785 | break; | 779 | break; |
786 | case MMC_BUS_WIDTH_8: | 780 | case MMC_BUS_WIDTH_8: |
787 | slot->ctype = SDMMC_CTYPE_8BIT; | 781 | slot->ctype = SDMMC_CTYPE_8BIT; |
788 | break; | 782 | break; |
783 | default: | ||
784 | /* set default 1 bit mode */ | ||
785 | slot->ctype = SDMMC_CTYPE_1BIT; | ||
789 | } | 786 | } |
790 | 787 | ||
791 | regs = mci_readl(slot->host, UHS_REG); | 788 | regs = mci_readl(slot->host, UHS_REG); |