From patchwork Fri Jan 17 14:50:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3505071 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 5FABEC02DC for ; Fri, 17 Jan 2014 14:50:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 654B02011B for ; Fri, 17 Jan 2014 14:50:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0A3F02014A for ; Fri, 17 Jan 2014 14:50:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751246AbaAQOuf (ORCPT ); Fri, 17 Jan 2014 09:50:35 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:26179 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751094AbaAQOue (ORCPT ); Fri, 17 Jan 2014 09:50:34 -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 <0MZJ002C4VW9DF20@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Fri, 17 Jan 2014 23:50:33 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 48.2B.10364.93349D25; Fri, 17 Jan 2014 23:50:33 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-54-52d943398f5f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1E.A2.28157.83349D25; Fri, 17 Jan 2014 23:50:33 +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 <0MZJ00FAPVW8A290@mmp1.samsung.com>; Fri, 17 Jan 2014 23:50:32 +0900 (KST) From: Seungwon Jeon To: 'linux-mmc' Cc: 'Chris Ball' , 'Rickard Andersson' , 'Russell King' , 'Ulf Hansson' References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> <002001cf11fb$b7217380$25645a80$%jun@samsung.com> In-reply-to: Subject: [PATCH v2 2/7] mmc: mmci: clarify DDR timing mode between SD-UHS and eMMC Date: Fri, 17 Jan 2014 23:50:32 +0900 Message-id: <000701cf1393$78d551c0$6a7ff540$%jun@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=Windows-1252 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac8SpKif3SzhRu1PTPiA59Rm1zwNHAA3uqBAAALbnyA= Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsVy+t8zY11L55tBBhfWsFpMuLyd0eLI/35G i9uXeS0W73nGaHF8bbgDq0dLcw+bx51re9g8brxayOTxfekado/Pm+QCWKO4bFJSczLLUov0 7RK4Mm598ylYw1mx/NctlgbGp+xdjJwcEgImEi/O3maBsMUkLtxbz9bFyMUhJLCMUeLrpx8s MEULe+4yQyQWMUqs/P6PBcL5wyixbd8MsFFsAloSf9+8YQaxRQS0JTbOOgoWZxbYwCix9Vkm RMNBRom+m6vBEpwCPBLr/nSCNQgLhEi0rr7IBmKzCKhKvPswDczmFbCV+PLgOxOELSjxY/I9 FoihehIf/9xmhLDlJTaveQs0hwPoVHWJR391IW6wkniz5igrRImIxL4X7xhBbpAQuMYuceb1 BBaIXQIS3yYfYoHolZXYdIAZ4mNJiYMrbrBMYJSYhWTz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tjBxcEo1MGbpzPat fMu5+NbP05dF1j04onhnx5/CVxdkrrKnl57XCCi+mMq6Jt/o6/N06dvqz+2ytM+1cL/hs22v ryn0+t/KdSFnHe+SlunhWn/mC0/PtnRIiT3+P+/ktHvZtzMPHzh2LduZt/ERH0uYslb8hcRN Oay3sla98PBUv5GU/P9p87ldD+4Ff1ViKc5INNRiLipOBAB6N8tDRgMAAA== 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.2 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 --- 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 f320579..92d40be 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; /*