Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7273834imm; Thu, 28 Jun 2018 00:33:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc7SpRrZLBcuDcCs2joHeYMxvvE30tJTDUwWdZJhBgbapJPpEhpdSbQcpShEW0x6upIvGHP X-Received: by 2002:a65:4c87:: with SMTP id m7-v6mr7812043pgt.98.1530171183217; Thu, 28 Jun 2018 00:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530171183; cv=none; d=google.com; s=arc-20160816; b=fQMosfWRvrTz14JX7s1bLSlfJPBzHega/stTtcX0/++4zDYV1guniU2RCFbH14k83i /fcIxmCbNBCjf/yW5nygb9TWCdnJ0J+F1TReC3Rxz1x1L4kxKQI4DwBoj6WoHWrHmYMk aMwlSQQVMD369l8WynDrv9zsdaG/Hta6LYiAaIppGYs4zOSwv6bzELNOV7vC7toWr5vn SsmEOJ9hZ7RMXKwe3JRLZvGdglHzbXszXY6lV+zzqfGq92wiQfqxuqpuaHLhBHGCQaRp /xagFcZjkFjcyo37C8DtsS1yOyQ2QS/ELyYBQOxItUJ94X5AnJ/WMU6b7CAUdqoByT1R hJhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jJ/8gotlbHj4tbGClsbUbDRmmop7kNuRNCInkqLEDZU=; b=QM0RkCf9m0daW0zfVh+dW8pdHcorDrneob2GHN3GQY4MjJFj9nRFBnmgIgBXNSwuaI /RqVuyp50Vb8kK8U8dT3jKNY6N76ErpH1WabdvMEcy8ZWnRH+xGVPCHd5T3F4yKtQlCP uh9YBmZPcQ80JhRS/FXGYii2IkmNJEUskhW/JsXuCz1rlwiFbxlYy+RDFQNus/CIRR/G oDiUHHbIskQROmmMMA/A7GAMc2jaiC5/Wu0aLiRzPlAwHZ9kzr3atrsJZf8POdkDXHvu YrxljXPz1OaAF3FhLy/Iuci7Jh88o2rMXXBY4qt7yBUITcUm262sUN8XKI7nbKdwpRjP bQ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=I1fWJ4Jf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35-v6si6190992plg.209.2018.06.28.00.32.48; Thu, 28 Jun 2018 00:33:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=I1fWJ4Jf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934041AbeF1Hb7 (ORCPT + 99 others); Thu, 28 Jun 2018 03:31:59 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:48934 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933821AbeF1Hb5 (ORCPT ); Thu, 28 Jun 2018 03:31:57 -0400 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 348EB5C0070; Thu, 28 Jun 2018 09:31:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1530171116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=jJ/8gotlbHj4tbGClsbUbDRmmop7kNuRNCInkqLEDZU=; b=I1fWJ4Jf7K6HMtl9efBmfszwqBzJFg3O5OhhWkSd1pT3/pCVfQx7w+xmt45iQbynGhPAEE rzf4JDSrQP8wBoRXCwNnYfX1xrfOE2492bOGbNphetNM5TQzEFXYAmnTmwDw1xWr9edoRk uAxDXnbLdIBoz7Lnt9SwinRpOSDZMy4= From: Stefan Agner To: adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: fabio.estevam@nxp.com, haibo.chen@nxp.com, aisheng.dong@nxp.com, michael@amarulasolutions.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] mmc: sdhci-esdhc-imx: support eMMC DDR mode when running at 3.3V Date: Thu, 28 Jun 2018 09:31:36 +0200 Message-Id: <20180628073136.21748-1-stefan@agner.ch> X-Mailer: git-send-email 2.18.0 X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:6830, ipnet:46.140.0.0/17, country:AT]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The uSDHC supports DDR modes for eMMC devices running at 3.3V. This allows to run eMMC with 3.3V signaling voltage at DDR52 mode: # cat /sys/kernel/debug/mmc1/ios clock: 52000000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 3 (8 bits) timing spec: 8 (mmc DDR52) signal voltage: 0 (3.30 V) driver type: 0 (driver type B) Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index b716b933f00a..6f444731754d 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1324,7 +1324,7 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) if (esdhc_is_usdhc(imx_data)) { host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; - host->mmc->caps |= MMC_CAP_1_8V_DDR; + host->mmc->caps |= MMC_CAP_1_8V_DDR | MMC_CAP_3_3V_DDR; if (!(imx_data->socdata->flags & ESDHC_FLAG_HS200)) host->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200; -- 2.18.0