From patchwork Sat Feb 15 14:09:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3656471 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 04FBA9F334 for ; Sat, 15 Feb 2014 14:09:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B54A201C8 for ; Sat, 15 Feb 2014 14:09:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF892201DE for ; Sat, 15 Feb 2014 14:09:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753258AbaBOOJb (ORCPT ); Sat, 15 Feb 2014 09:09:31 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:44286 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753046AbaBOOJa (ORCPT ); Sat, 15 Feb 2014 09:09:30 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N11000JDJBTTN60@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Sat, 15 Feb 2014 23:09:29 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 1B.E2.10364.9157FF25; Sat, 15 Feb 2014 23:09:29 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-58-52ff7519c6f7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 73.A8.29263.9157FF25; Sat, 15 Feb 2014 23:09:29 +0900 (KST) Received: from DOTGIHJUN01 ([12.23.118.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N11008S3JBTQBA0@mmp1.samsung.com>; Sat, 15 Feb 2014 23:09:29 +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> In-reply-to: Subject: [PATCH v2 7/7] mmc: sdhci: clarify DDR timing mode between SD-UHS and eMMC Date: Sat, 15 Feb 2014 23:09:29 +0900 Message-id: <006601cf2a57$8af1af90$a0d50eb0$%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/rAABnFmgDfJZ22AGGagowA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zQ13J0v9BBtN6NSwmXN7OaHHkfz+j xfG14Q7MHneu7WHzuPFqIZPH501yAcxRXDYpqTmZZalF+nYJXBl7j/SxF6zjqlizaBpLA+N2 ji5GTg4JAROJ/uX9jBC2mMSFe+vZuhi5OIQEljFKvF3VzQJTtHPbbkaIxCJGiQWTbrCBJIQE /jBKHFqTAmKzCWhJ/H3zhhnEFhGQlfj55wJYDbOAt8SZz1OYIerdJJ70LAGLcwrwSKz70wkW FxYIlTi88BFrFyMHB4uAqsS29awgYV4BW4mdEz4wQdiCEj8m32MBKWEWUJeYMiUXYrq8xOY1 b5lBwhJA4Ud/dSEOcJKYOP8dE0SJiMS+F+/ArpcQ2Mcu0X7qGNhWFgEBiW+TD7FA9MpKbDrA DPGtpMTBFTdYJjBKzEKyeBbC4llIFs9CsmEBI8sqRtHUguSC4qT0IhO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vo7o4zcOHuwV6lnNPZMrS+e1+Es1npJOzutLtyvsfPZ994qSp0X7/1zNF/9SHO0j 1LhfzW+uRB6PtduOyqQd7ALcH+0KtjSd0tKUNxYNefQufp9USXbYqxKXF38uZrs+jzGsTDjK 2yq+5bwSS3FGoqEWc1FxIgDjT0dQLwMAAA== 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=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 9ddef47..92e55dd 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); }