From patchwork Fri Mar 7 13:31:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3791411 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 2FF5A9F383 for ; Fri, 7 Mar 2014 13:31:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 963FF20265 for ; Fri, 7 Mar 2014 13:31:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96247201F0 for ; Fri, 7 Mar 2014 13:31:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753200AbaCGNbL (ORCPT ); Fri, 7 Mar 2014 08:31:11 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:47827 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752932AbaCGNbK (ORCPT ); Fri, 7 Mar 2014 08:31:10 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N22002BBIVXJH90@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Fri, 07 Mar 2014 22:31:09 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 84.52.09028.D1AC9135; Fri, 07 Mar 2014 22:31:09 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-f4-5319ca1db26a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id EB.C6.29263.D1AC9135; Fri, 07 Mar 2014 22:31:09 +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 <0N220038QIVXVH50@mmp2.samsung.com>; Fri, 07 Mar 2014 22:31:09 +0900 (KST) From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Wei WANG' , 'Samuel Ortiz' References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> <006401cf2a57$8525c4c0$8f714e40$%jun@samsung.com> In-reply-to: <006401cf2a57$8525c4c0$8f714e40$%jun@samsung.com> Subject: [PATCH v3 5/7] mmc: rtsx: clarify DDR timing mode between SD-UHS and eMMC Date: Fri, 07 Mar 2014 22:31:09 +0900 Message-id: <002d01cf3a09$7ffb5c50$7ff214f0$%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/rAABnFmgDfJZ22AGGYiOQAPsu4sQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBIsWRmVeSWpSXmKPExsVy+t8zI13ZU5LBBv+/KFhMuLyd0eLI/35G i9PdrBYr151mc2DxmHcy0OPGq4VMHj82vGP0+LxJLoAlissmJTUnsyy1SN8ugStj0es/bAXL OSteN59lbGB8w97FyMkhIWAicf/GT0YIW0ziwr31bF2MXBxCAssYJdq/b2TqYuQAK1rclw8R nw4U37WHFcL5wyjx+/l+ZpBuNgEtib9v3oDZIgKyEj//XGADsZkFiiWW7LnKAmILCVRJ/Ny6 hRXE5hSwk7iw6jlYXFggRKJj+QuwOIuAqsS1KfdYQBbzCthK9M7mBgnzCghK/JgMEWYWUJeY MiUXYrq8xOY1b5khzlSXePRXF+IAN4kHS+azQ5SISOx78Y4R5GIJgVPsEu/Ot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sjcwsjEzMzUkTVhLnPdBqHSgkkJ5YkpqdmlqQWgSzhYmDU6qB8QLH55cP/NsOyq4+ Yf/z7MSLZ/d4/AqbUfB5w7QIdbHUDa+8Li0LPlAkfKmGx/iS02TOVr3zn1Y66vctyWlN0bU6 dz/QZPH1YKYTD+Myy7kKnnBvOLFhwwQh6ZQW0d3LVd5x8jwS2W2RtGZvw6bGbwm2drnMdkzX 8+Z3vjVMuqx5WHfGm6Mth5RYijMSDbWYi4oTASxoC9A4AwAA 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. CC: Wei WANG CC: Samuel Ortiz Signed-off-by: Seungwon Jeon Reviewed-by: Ulf Hansson --- drivers/mmc/host/rtsx_pci_sdmmc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c index 5fb994f..8c2dd30 100644 --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c @@ -1075,6 +1075,7 @@ static int sd_set_timing(struct realtek_pci_sdmmc *host, unsigned char timing) rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, CLK_CTL, CLK_LOW_FREQ, 0); break; + case MMC_TIMING_MMC_DDR52: case MMC_TIMING_UHS_DDR50: rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_CFG1, 0x0C | SD_ASYNC_FIFO_NOT_RST, @@ -1155,6 +1156,7 @@ static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) host->vpclk = true; host->double_clk = false; break; + case MMC_TIMING_MMC_DDR52: case MMC_TIMING_UHS_DDR50: case MMC_TIMING_UHS_SDR25: host->ssc_depth = RTSX_SSC_DEPTH_1M;