From patchwork Sat Feb 15 14:08:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3656421 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 B40B6BF13A for ; Sat, 15 Feb 2014 14:09:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2713B20172 for ; Sat, 15 Feb 2014 14:09:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47A8620160 for ; Sat, 15 Feb 2014 14:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbaBOOI6 (ORCPT ); Sat, 15 Feb 2014 09:08:58 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:44251 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753046AbaBOOI5 (ORCPT ); Sat, 15 Feb 2014 09:08:57 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N11005YWJAX9640@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Sat, 15 Feb 2014 23:08:57 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 4E.7B.10092.9F47FF25; Sat, 15 Feb 2014 23:08:57 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-50-52ff74f9b230 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C9.4C.28157.8F47FF25; Sat, 15 Feb 2014 23:08:57 +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 <0N11007MBJAWJKB0@mmp1.samsung.com>; Sat, 15 Feb 2014 23:08:56 +0900 (KST) From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: 'Russell King' , 'Ulf Hansson' , 'Chris Ball' , 'Rickard Andersson' References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> In-reply-to: Subject: [PATCH v2 2/7] mmc: mmci: clarify DDR timing mode between SD-UHS and eMMC Date: Sat, 15 Feb 2014 23:08:57 +0900 Message-id: <006101cf2a57$77859c00$6690d400$%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/rAABnFmgDfJZ22AGGWSuEA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKIsWRmVeSWpSXmKPExsVy+t8zfd2fJf+DDBa0sllMuLyd0eLI/35G i9uXeS0W73nGaHF8bbgDq0dLcw+bx51re9g8brxayOTxfekado/Pm+QCWKO4bFJSczLLUov0 7RK4MjasX8xcsIazYt/BqSwNjE/Zuxg5OSQETCRudLazQdhiEhfurQeyuTiEBJYxSkz4dYsJ pujF0VOMEIlFjBLHpsyCqvrDKPHw6yywdjYBLYm/b94wg9giArISP/9cACtiFtjAKPHjwwNW kISQgJvEk54lYA2cAjwS6/50gjUIC4RItK6+CBZnEVCVOP/1Olg9r4CtxNo/c1kgbEGJH5Pv AdkcQEPVJaZMyQUJMwvIS2xe85YZJCwBFH70VxfiBCeJDctfMEKUiEjse/EO7AEJgVvsEuc2 zmSEWCUg8W3yIRaIXlmJTQeYIR6WlDi44gbLBEaJWUgWz0JYPAvJ4llIN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 3BA4503zqn2+qbP8UkwDVteK8OizJXi8e7NqjpkDFzfLHM3LRqd7D5389zK9rXKi8tfAR9t9 L2m2ldiH9nxvuTpRK5BzpffplU6OVj3X587h1ZO43swfaCc62ei4h///lQnHyq9ITfbxjN3m xpO6Tmez1vXEsJQzkUFe73XP8Xys37LtbpUSS3FGoqEWc1FxIgBVHdqNRQMAAA== 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 distinguished from SD-UHS. CC: Russell King Signed-off-by: Seungwon Jeon Acked-by: Ulf Hansson --- drivers/mmc/host/mmci.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index b931226..421d1fe 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -299,7 +299,8 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired) if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) clk |= MCI_ST_8BIT_BUS; - if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50) + if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || + host->mmc->ios.timing == MMC_TIMING_MMC_DDR52) clk |= MCI_ST_UX500_NEG_EDGE; mmci_write_clkreg(host, clk); @@ -784,7 +785,8 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data) mmci_write_clkreg(host, clk); } - if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50) + if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || + host->mmc->ios.timing == MMC_TIMING_MMC_DDR52) datactrl |= MCI_ST_DPSM_DDRMODE; /*