From patchwork Fri Mar 14 12:12:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3832461 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 9443EBF540 for ; Fri, 14 Mar 2014 12:12:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A39E920320 for ; Fri, 14 Mar 2014 12:12:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87ECF20306 for ; Fri, 14 Mar 2014 12:12:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754023AbaCNMMP (ORCPT ); Fri, 14 Mar 2014 08:12:15 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:44395 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753722AbaCNMMP (ORCPT ); Fri, 14 Mar 2014 08:12:15 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2F009ADDWENK10@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Fri, 14 Mar 2014 21:12:14 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id FE.57.12635.E12F2235; Fri, 14 Mar 2014 21:12:14 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-82-5322f21ef781 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FE.BF.29263.E12F2235; Fri, 14 Mar 2014 21:12:14 +0900 (KST) Received: from DOTGIHJUN01 ([12.36.185.168]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2F00L74DWE9G20@mmp2.samsung.com>; Fri, 14 Mar 2014 21:12:14 +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> <006101cf2a57$77859c00$6690d400$%jun@samsung.com> In-reply-to: Subject: [PATCH RESEND v3 2/7] mmc: mmci: clarify DDR timing mode between SD-UHS and eMMC Date: Fri, 14 Mar 2014 21:12:13 +0900 Message-id: <003401cf3f7e$a26ebff0$e74c3fd0$%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/rAABnFmgDfJZ22AGGWSuEAPsrUwgAVyjRLA= Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKIsWRmVeSWpSXmKPExsVy+t8zQ125T0rBBndWSFhMuLyd0eLI/35G i9uXeS0W73nGaHF8bbgDq0dLcw+bx51re9g8brxayOTxfekado/Pm+QCWKO4bFJSczLLUov0 7RK4Mrrv/2MsuMNZcWX3fcYGxgkcXYycHBICJhItr78xQdhiEhfurWfrYuTiEBJYxijx48Mb dpiiXZM+g9lCAtMZJf5cdYQo+sMocW3NfEaQBJuAlsTfN2+YQWwRAVmJn38ugE1iFtgAMukB K0R3lcS17S/AGjgFeCTW/ekEaxAWiJY49uMJ0BkcHCwCqhL3LuiDhHkFbCWWnr3ICmELSvyY fI8FxGYWUJeYNG8RM4QtL7F5zVtmkFYJoPijv7oQJ/hJzNx8hhWiRERi34t3jCDnSAjcYpf4 svYK2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cyMLI3MLIxMzM1JE1YS5z3Qah0oJJCeWJKanZpakFoEs4WJg1Oq gZEpqm4TB1OTV4yvgfGPcGPluGgPF5t5z4W0lky8wft1QTz7yYvrCplvZia3S5kbH7mz5cZe tfoKKYd1cx9u5tsfXFvne3uq1Y+ldf/OlnM3ndpkPzdPWuSlX9Zb3yNTO9wWe87W22p/1EDG UNtz6wWN+LDW2Ixe4+/Jz7Oj3XoWsS7+KZO0S4mlOCPRUIu5qDgRAPbdvWlFAwAA 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 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 771c60a..7e85393 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; /*