82 lines
3.5 KiB
Diff
82 lines
3.5 KiB
Diff
From patchwork Sun Jul 22 12:54:07 2018
|
|
Content-Type: text/plain; charset="utf-8"
|
|
MIME-Version: 1.0
|
|
Content-Transfer-Encoding: 7bit
|
|
X-Patchwork-Submitter: Icenowy Zheng <icenowy@aosc.io>
|
|
X-Patchwork-Id: 10539291
|
|
Return-Path: <linux-mmc-owner@kernel.org>
|
|
Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org
|
|
[172.30.200.125])
|
|
by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86834112B
|
|
for <patchwork-linux-mmc@patchwork.kernel.org>;
|
|
Sun, 22 Jul 2018 12:54:34 +0000 (UTC)
|
|
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
|
|
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 684332808F
|
|
for <patchwork-linux-mmc@patchwork.kernel.org>;
|
|
Sun, 22 Jul 2018 12:54:34 +0000 (UTC)
|
|
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
|
|
id 5959228372; Sun, 22 Jul 2018 12:54:34 +0000 (UTC)
|
|
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
|
|
pdx-wl-mail.web.codeaurora.org
|
|
X-Spam-Level:
|
|
X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI,
|
|
RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1
|
|
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
|
|
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3C822808F
|
|
for <patchwork-linux-mmc@patchwork.kernel.org>;
|
|
Sun, 22 Jul 2018 12:54:33 +0000 (UTC)
|
|
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
|
|
id S1728446AbeGVNvI (ORCPT
|
|
<rfc822;patchwork-linux-mmc@patchwork.kernel.org>);
|
|
Sun, 22 Jul 2018 09:51:08 -0400
|
|
Received: from hermes.aosc.io ([199.195.250.187]:56330 "EHLO hermes.aosc.io"
|
|
rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP
|
|
id S1728438AbeGVNvI (ORCPT <rfc822;linux-mmc@vger.kernel.org>);
|
|
Sun, 22 Jul 2018 09:51:08 -0400
|
|
Received: from localhost (localhost [127.0.0.1]) (Authenticated sender:
|
|
icenowy@aosc.io)
|
|
by hermes.aosc.io (Postfix) with ESMTPSA id 04DFE9F3AA;
|
|
Sun, 22 Jul 2018 12:54:27 +0000 (UTC)
|
|
From: Icenowy Zheng <icenowy@aosc.io>
|
|
To: Ulf Hansson <ulf.hansson@linaro.org>,
|
|
Maxime Ripard <maxime.ripard@bootlin.com>,
|
|
Chen-Yu Tsai <wens@csie.org>
|
|
Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
|
|
linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com,
|
|
Icenowy Zheng <icenowy@aosc.io>
|
|
Subject: [PATCH] mmc: sunxi: allow 3.3V DDR when DDR is available
|
|
Date: Sun, 22 Jul 2018 20:54:07 +0800
|
|
Message-Id: <20180722125407.43107-1-icenowy@aosc.io>
|
|
Sender: linux-mmc-owner@vger.kernel.org
|
|
Precedence: bulk
|
|
List-ID: <linux-mmc.vger.kernel.org>
|
|
X-Mailing-List: linux-mmc@vger.kernel.org
|
|
X-Virus-Scanned: ClamAV using ClamSMTP
|
|
|
|
Some Allwinner boards feature an on-board eMMC with fixed 3.3V voltage
|
|
(e.g. Banana Pi M2+), and in this case both the eMMC and the SoC are
|
|
capable of doing 3.3V DDR transmission.
|
|
|
|
Add capability of 3.3V DDR when DDR is available (extra clock or new
|
|
timing).
|
|
|
|
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
|
|
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
|
|
---
|
|
drivers/mmc/host/sunxi-mmc.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
|
|
index 8e7f3e35ee3d..4ea8e2611079 100644
|
|
--- a/drivers/mmc/host/sunxi-mmc.c
|
|
+++ b/drivers/mmc/host/sunxi-mmc.c
|
|
@@ -1388,7 +1388,7 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
|
|
MMC_CAP_ERASE | MMC_CAP_SDIO_IRQ;
|
|
|
|
if (host->cfg->clk_delays || host->use_new_timings)
|
|
- mmc->caps |= MMC_CAP_1_8V_DDR;
|
|
+ mmc->caps |= MMC_CAP_1_8V_DDR | MMC_CAP_3_3V_DDR;
|
|
|
|
ret = mmc_of_parse(mmc);
|
|
if (ret)
|