From patchwork Fri Aug 30 15:13:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 2852118 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 0343AC0AB5 for ; Fri, 30 Aug 2013 15:13:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB4B32018D for ; Fri, 30 Aug 2013 15:13:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B36EB20182 for ; Fri, 30 Aug 2013 15:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756546Ab3H3PNL (ORCPT ); Fri, 30 Aug 2013 11:13:11 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:47238 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756321Ab3H3PNK (ORCPT ); Fri, 30 Aug 2013 11:13:10 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSC00GCNNLLHW40@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Sat, 31 Aug 2013 00:13:09 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 09.12.30629.586B0225; Sat, 31 Aug 2013 00:13:09 +0900 (KST) X-AuditID: cbfee68d-b7fe86d0000077a5-c3-5220b6853192 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7A.51.09055.586B0225; Sat, 31 Aug 2013 00:13:09 +0900 (KST) Received: from DOTGIHJUN01 ([12.23.118.161]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSC00CUUNLXY220@mmp2.samsung.com>; Sat, 31 Aug 2013 00:13:09 +0900 (KST) From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Jaehoon Chung' References: In-reply-to: Subject: [PATCH 12/22] mmc: dw_mmc: add the capability to support hs200 mode Date: Sat, 31 Aug 2013 00:13:09 +0900 Message-id: <000f01cea593$6fada6b0$4f08f410$%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: Ac03z3aCvVFr8FaITt2vKVQKst76fw3OcIrwS9fJ1BAByUIdcA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zfd3WbQpBBh2tihbbX29ks7jxq43V 4sj/fkYHZo9DV9YyevRtWcXo8XmTXABzFJdNSmpOZllqkb5dAldG/5ctjAUN/BVTW2cyNzDu 4uli5OCQEDCRWHtVsIuRE8gUk7hwbz1bFyMXh5DAMkaJO40zWCASJhKLT89ghkhMZ5SY2LWO HcL5wyjx5cALVpAqNgEtib9v3jCD2CICshI//1xgA7GZBbwlXs1fwwiyTUiAW2J1cxBImFOA R2Ldn06wcmEBH4n9/ZeZQUpYBFQlnr+OBgnzCthKLHxxkBHCFpT4MfkeC0gJs4C6xJQpuRDD 5SU2r3nLDPGKusSjv7oQ+50kzjZBdDILiEjse/GOEeRgCYF97BKrv0JsZREQkPg2+RALRK+s xKYDzBDfSkocXHGDZQKjxCwki2chLJ6FZPEsJBsWMLKsYhRNLUguKE5KLzLUK07MLS7NS9dL zs/dxAiJvN4djLcPWB9iTAbaPpFZSjQ5Hxi5eSXxhs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dKVSMh xiSHvds2H89wbtThn9WZxqucNe/ZqmiL+6duTbzWLyxxtvikQJVjb0lFiO/n8xJz9E7dvvL/ WMqGjTJKLMUZiYZazEXFiQCbqqssMAMAAA== 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=-9.0 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 As host controller can support eMMC's HS200 mode at 1.8V or 1.2V, these capability will be added. Signed-off-by: Seungwon Jeon Tested-by: Alim Akhtar --- .../devicetree/bindings/mmc/synopsis-dw-mshc.txt | 5 +++++ drivers/mmc/host/dw_mmc.c | 6 ++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/synopsis-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/synopsis-dw-mshc.txt index cdcebea..ae5f8e8 100644 --- a/Documentation/devicetree/bindings/mmc/synopsis-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/synopsis-dw-mshc.txt @@ -66,6 +66,10 @@ Optional properties: * supports-highspeed: Enables support for high speed cards (up to 50MHz) +* caps2-mmc-hs200-1_8v: Supports mmc HS200 SDR 1.8V mode + +* caps2-mmc-hs200-1_2v: Supports mmc HS200 SDR 1.2V mode + * broken-cd: as documented in mmc core bindings. * vmmc-supply: The phandle to the regulator to use for vmmc. If this is @@ -95,6 +99,7 @@ board specific portions as listed below. clock-frequency = <400000000>; num-slots = <1>; supports-highspeed; + caps2-mmc-hs200-1_8v; broken-cd; fifo-depth = <0x80>; card-detect-delay = <200>; diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 764790b..5f30df9 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -2187,6 +2187,12 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host) if (of_find_property(np, "enable-sdio-wakeup", NULL)) pdata->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; + if (of_find_property(np, "caps2-mmc-hs200-1_8v", NULL)) + pdata->caps2 |= MMC_CAP2_HS200_1_8V_SDR; + + if (of_find_property(np, "caps2-mmc-hs200-1_2v", NULL)) + pdata->caps2 |= MMC_CAP2_HS200_1_2V_SDR; + return pdata; }