mmc: clarify DDR timing mode between SD-UHS and eMMC
authorSeungwon Jeon <tgih.jun@samsung.com>
Fri, 14 Mar 2014 12:11:56 +0000 (21:11 +0900)
committerChris Ball <chris@printf.net>
Sun, 20 Apr 2014 20:59:28 +0000 (16:59 -0400)
This change distinguishes DDR timing mode of current
mixed usage to clarify device type.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/debugfs.c
drivers/mmc/core/mmc.c
include/linux/mmc/host.h

index 54829c0ed0002fcc08f193b6af6112eabd00699d..509229b48b55c3584e18d9838f67cb8b5d944ff6 100644 (file)
@@ -135,6 +135,9 @@ static int mmc_ios_show(struct seq_file *s, void *data)
        case MMC_TIMING_UHS_DDR50:
                str = "sd uhs DDR50";
                break;
+       case MMC_TIMING_MMC_DDR52:
+               str = "mmc DDR52";
+               break;
        case MMC_TIMING_MMC_HS200:
                str = "mmc high-speed SDR200";
                break;
index 1ab5f3a0af5b734a1829e732fe91b5bef8f24d2b..e22d8515ff97ee607a28c277ca81d71ee7b594d0 100644 (file)
@@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
                                        goto err;
                        }
                        mmc_card_set_ddr_mode(card);
-                       mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50);
+                       mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52);
                        mmc_set_bus_width(card->host, bus_width);
                }
        }
index cb61ea4d69455366768fa04bc2263c65795bc92f..35354207e71f19a1125a2c11777f279217c9d6fe 100644 (file)
@@ -58,7 +58,8 @@ struct mmc_ios {
 #define MMC_TIMING_UHS_SDR50   5
 #define MMC_TIMING_UHS_SDR104  6
 #define MMC_TIMING_UHS_DDR50   7
-#define MMC_TIMING_MMC_HS200   8
+#define MMC_TIMING_MMC_DDR52   8
+#define MMC_TIMING_MMC_HS200   9
 
 #define MMC_SDR_MODE           0
 #define MMC_1_2V_DDR_MODE      1