From patchwork Fri Mar 7 13:31:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3791431 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 02FF6BF540 for ; Fri, 7 Mar 2014 13:31:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B7AF20265 for ; Fri, 7 Mar 2014 13:31:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB541201F0 for ; Fri, 7 Mar 2014 13:31:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753187AbaCGNb1 (ORCPT ); Fri, 7 Mar 2014 08:31:27 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:47842 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752932AbaCGNb0 (ORCPT ); Fri, 7 Mar 2014 08:31:26 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N22007R8IWD5M40@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Fri, 07 Mar 2014 22:31:25 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 48.9C.10364.D2AC9135; Fri, 07 Mar 2014 22:31:25 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-aa-5319ca2deafa Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 46.D6.29263.D2AC9135; Fri, 07 Mar 2014 22:31:25 +0900 (KST) Received: from DOTGIHJUN01 ([12.36.185.168]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2200DPKIWDX380@mmp1.samsung.com>; Fri, 07 Mar 2014 22:31:25 +0900 (KST) From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Ulf Hansson' References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> <006601cf2a57$8af1af90$a0d50eb0$%jun@samsung.com> In-reply-to: <006601cf2a57$8af1af90$a0d50eb0$%jun@samsung.com> Subject: [PATCH v3 7/7] mmc: sdhci: clarify DDR timing mode between SD-UHS and eMMC Date: Fri, 07 Mar 2014 22:31:24 +0900 Message-id: <002f01cf3a09$89588430$9c098c90$%jun@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac7aH/uUm1J6MxFOSyaXb4Fx/nx/rAABnFmgDfJZ22AGGagowAPsr8jw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zI13dU5LBBl/+KVhMuLyd0eLI/35G i+Nrwx2YPe5c28PmcePVQiaPz5vkApijuGxSUnMyy1KL9O0SuDKO9exkLljHVfH9wyLWBsbt HF2MnBwSAiYSHX/mMkPYYhIX7q1n62Lk4hASWMYocffuCjaYom0z26ESixgltn09wALh/GGU uD2jlRGkik1AS+Lvmzdgo0QEZCV+/rkA1s0s4C1x5vMUsLiQQJXEm129YDangJ3EhMV9rCC2 sECoROv+6WD1LAKqEo8PPAWbyStgK/FqCkQNr4CgxI/J94AWcwDNVJeYMiUXYry8xOY1b5lB whJA4Ud/dUFMEQE3ieNnCiAqRCT2vXjHCHKxhMA+donF318xQmwSkPg2+RALRKusxKYD0HCQ lDi44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MHp1QDo+VrPr9ll/cWni+sXOu8yuFlub+WxZNv tZui5sxtcJvbMrX4zSHxU6t7n5+OlOU3vckTV2UynZt3XqLD+oDNShFzE7I+KO0vOth9+5Jk gNG+CUzbtX3fz+Vc+f7uO/ViL+U1x/4xmK06sHn39mu7k2ZdUMnn2z35BMvdD2L/k59t7HiS Z+/xJ1yJpTgj0VCLuag4EQByRObaMAMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added MMC_DDR52 as eMMC's DDR mode is distinguished from SD-UHS. Signed-off-by: Seungwon Jeon Reviewed-by: Ulf Hansson --- drivers/mmc/host/sdhci.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 7f95211..6926b42 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1510,6 +1510,7 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios) /* In case of UHS-I modes, set High Speed Enable */ if ((ios->timing == MMC_TIMING_MMC_HS200) || + (ios->timing == MMC_TIMING_MMC_DDR52) || (ios->timing == MMC_TIMING_UHS_SDR50) || (ios->timing == MMC_TIMING_UHS_SDR104) || (ios->timing == MMC_TIMING_UHS_DDR50) || @@ -1570,7 +1571,8 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios) ctrl_2 |= SDHCI_CTRL_UHS_SDR25; else if (ios->timing == MMC_TIMING_UHS_SDR50) ctrl_2 |= SDHCI_CTRL_UHS_SDR50; - else if (ios->timing == MMC_TIMING_UHS_DDR50) + else if ((ios->timing == MMC_TIMING_UHS_DDR50) || + (ios->timing == MMC_TIMING_MMC_DDR52)) ctrl_2 |= SDHCI_CTRL_UHS_DDR50; sdhci_writew(host, ctrl_2, SDHCI_HOST_CONTROL2); }