From patchwork Wed Jan 15 14:12:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3491991 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 DA050C02DC for ; Wed, 15 Jan 2014 14:13:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CFA9120165 for ; Wed, 15 Jan 2014 14:13:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F0A220122 for ; Wed, 15 Jan 2014 14:12:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752176AbaAOOMy (ORCPT ); Wed, 15 Jan 2014 09:12:54 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:57239 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbaAOOMx (ORCPT ); Wed, 15 Jan 2014 09:12:53 -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 <0MZG009AJ4SF9W50@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Wed, 15 Jan 2014 23:12:15 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 2B.5C.10092.F3796D25; Wed, 15 Jan 2014 23:12:15 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-e8-52d6973fa3ab Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 7E.D4.28157.F3796D25; Wed, 15 Jan 2014 23:12:15 +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 <0MZG00GE04SFAR60@mmp1.samsung.com>; Wed, 15 Jan 2014 23:12:15 +0900 (KST) From: Seungwon Jeon To: 'Chris Ball' , 'Wei WANG' , 'Samuel Ortiz' Cc: linux-mmc@vger.kernel.org References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> In-reply-to: Subject: [PATCH 5/7] mmc: rtsx: clarify DDR timing mode between SD-UHS and eMMC Date: Wed, 15 Jan 2014 23:12:15 +0900 Message-id: <002301cf11fb$cad390c0$607ab240$%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/rAABnFmgDfJZ22A= Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOIsWRmVeSWpSXmKPExsVy+t8zY1376deCDNbuVrCYcHk7o8WR//2M Fqe7WS1WrjvN5sDiMe9koMeNVwuZPH5seMfo8XmTXABLFJdNSmpOZllqkb5dAlfGisULGAve clQ0zP7F2sC4g72LkZNDQsBE4vrXHywQtpjEhXvr2boYuTiEBJYxShw9uJIFpqh76mEmiMQi RokbL+8xQzh/GCVe3+5gBaliE9CS+PvmDTOILSJQLLG6ex0biM0sICtxcf9VRhBbSMBN4knP ErA4pwCPxLo/nWD1wgL+Eg/uXgI6iYODRUBVYsNlfZAwr4CtxIYVT5khbEGJH5PvsYCUMAuo S0yZkgsxXV5i85q3zCBhCaDwo7+6IKaIgJVE10xDiAoRiX0v3jFCfHKOXWL67VgQm0VAQOLb 5EMsEJ2yEpsOMEOUSEocXHGDZQKjxCwka2chrJ2FZO0sJAsWMLKsYhRNLUguKE5KLzLWK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ZrVnLBUrq+TMoqUZJrU7bFW9L7mgPvxlNatKfuDcb3ffbZmecPbIlMUSDiw/Ayw/xJq8kZVJ 2nIiJqZd8Mv7WiuVUIafl90658xu/PB8zoa8236v1Zd+Vn1x/qlyVkDdgvdP3CUZVb6rLLaY xBt2XHuhR+6xIrnTZ1yEHk5UYinOSDTUYi4qTgQAmaX53jgDAAA= 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: 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 c46feda..752f003 100644 --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c @@ -864,6 +864,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, @@ -944,6 +945,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;