From patchwork Fri Feb 14 12:27:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 3652381 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 8BB369F382 for ; Fri, 14 Feb 2014 12:27:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5B4020220 for ; Fri, 14 Feb 2014 12:27:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E28522021F for ; Fri, 14 Feb 2014 12:27:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751664AbaBNM11 (ORCPT ); Fri, 14 Feb 2014 07:27:27 -0500 Received: from mail-la0-f54.google.com ([209.85.215.54]:35787 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbaBNM1U (ORCPT ); Fri, 14 Feb 2014 07:27:20 -0500 Received: by mail-la0-f54.google.com with SMTP id y1so9480744lam.27 for ; Fri, 14 Feb 2014 04:27:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C0D1SILl5SNMnVd9VozjdIGRqPXOp6W7G9VXSMpUhWg=; b=gqAlCtTGBPKmO64PBO4wZwMYAgRM4dHZDvH18EEksOW8lyZ4Wh1FNDxHeUd6gYXyyK MpbHhDsonRJYVskbaSPJKpaCtElOauWS6h2HctKEFzjkLv98Cp2PHrOVHJKutOUgxF+3 4bXx9XJOzCSKaxj1V8KBbgi/ci0O5PHf3d0rOelFxGFrmcrwoZ+QvWibS6R7pB4BSGrC KfFry7fPOhMdM7xlKnLc1Jehx+8/IPGGAf5GQx2yOZr+0RXiU1a/LA4KX8kkGs1Tzb49 +kiCj8UROCLGH1JWIJHq+AeeRdgkMVOHpbcQ2wO6Er2XVL/GZaJRbRQewXAsdvaiQGxz YZYA== X-Gm-Message-State: ALoCoQmoJ4yiZhNMq6cQk7B9eE8ZDdQtGiBVlUe1bcCgQRmQwbMoH4UqW/BZnJ2KD2bXvfkLTC2A X-Received: by 10.152.6.101 with SMTP id z5mr1420274laz.53.1392380837150; Fri, 14 Feb 2014 04:27:17 -0800 (PST) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id qx7sm5727943lbb.9.2014.02.14.04.27.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 04:27:16 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Jaehoon Chung , devicetree@vger.kernel.org Subject: [PATCH 3/3] mmc: core: Add DT bindings for eMMC HS200 1.8/1.2V Date: Fri, 14 Feb 2014 13:27:09 +0100 Message-Id: <1392380829-8473-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392380829-8473-1-git-send-email-ulf.hansson@linaro.org> References: <1392380829-8473-1-git-send-email-ulf.hansson@linaro.org> 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.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Jaehoon Chung Provide the option to configure these speed modes per host, for those host driver's that can't distinguish this in runtime. Signed-off-by: Jaehoon Chung Acked-by: Ulf Hansson --- Documentation/devicetree/bindings/mmc/mmc.txt | 2 ++ drivers/mmc/core/host.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 519d952..9dce540 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -36,6 +36,8 @@ Optional properties: - full-pwr-cycle: full power cycle of the card is supported - mmc-highspeed-ddr-1_8v: eMMC high-speed DDR mode(1.8V I/O) is supported - mmc-highspeed-ddr-1_2v: eMMC high-speed DDR mode(1.2V I/O) is supported +- mmc-hs200-1_8v: eMMC HS200 mode(1.8V I/O) is supported +- mmc-hs200-1_2v: eMMC HS200 mode(1.2V I/O) is supported *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line polarity properties, we have to fix the meaning of the "normal" and "inverted" diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index d014127..453573d 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -443,6 +443,10 @@ int mmc_of_parse(struct mmc_host *host) host->caps |= MMC_CAP_1_8V_DDR; if (of_find_property(np, "mmc-ddr-1_2v", &len)) host->caps |= MMC_CAP_1_2V_DDR; + if (of_find_property(np, "mmc-hs200-1_8v", &len)) + host->caps2 |= MMC_CAP2_HS200_1_8V_SDR; + if (of_find_property(np, "mmc-hs200-1_2v", &len)) + host->caps2 |= MMC_CAP2_HS200_1_2V_SDR; return 0;