From patchwork Thu Feb 23 16:23:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9588567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D2E636057F for ; Thu, 23 Feb 2017 16:25:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3F5A28932 for ; Thu, 23 Feb 2017 16:25:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8B2D28934; Thu, 23 Feb 2017 16:25:10 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 46F0128933 for ; Thu, 23 Feb 2017 16:25:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751318AbdBWQYf (ORCPT ); Thu, 23 Feb 2017 11:24:35 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36271 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751156AbdBWQYV (ORCPT ); Thu, 23 Feb 2017 11:24:21 -0500 Received: by mail-wr0-f195.google.com with SMTP id z61so4447079wrc.3; Thu, 23 Feb 2017 08:23:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pwwsQDYbZ6pWTN6pY0IIhOxxtqLgpXKsi4KrLshToDo=; b=J4cI4EHWMnTjHYb1dl2OjCI6JMwEQoPPoTUWM/jEmS7C5z0UDV/MNXpK8u4rtb9igt /D+xqwLNHwB3ac86DqNFg3x2BfZYJqyiZC3TC1q2+Feg7lIG+BEKrqGQyxknKccQgKcn DaI5HHoTU5T0MVGNFKQGCNuMiQ8X3RUmQzGVQslZSXCQAYV+pxhIu0TOSvpA+ZVk3dsU u+7YOWdm1OG1K7g0HRL8S9n0p9ATp3LmMgr/AiWg6G4S2TBzK18ujKpugfuYB9MCx468 FLhvL1jF1QjNvG2JKDbNnHRTMFIhumOcB/FlMAv7oaqzRc1F2M4/86pABmA4vMq/CfSL OMvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pwwsQDYbZ6pWTN6pY0IIhOxxtqLgpXKsi4KrLshToDo=; b=PkRuqubdAmNzNO0BLvgzFgB2sOIfnhw2qP7wJgaqhfwm0+b1vhksZdWjSbT/p9a1mY MTx4Auu/SkzRV8hiOQUdhqim8PcwzrO8bFAHC7sLXXcuEqXoZzDDujMJWf22qvtzt/dJ WxtuM3VaA0eH9WOaPCy7XBzWUbuFqvmPEnE7iHE0lzGyhqF48UwkP8mGsfwRBVHe0w77 rCjGlt+M1QTcyX5lXNkToa/x+o2k91ZAdQp0O3q8Fek9OVpn3yPS6/wJXlbop3TGT4Z6 C/HjAGJRsrU4VCqqULf3qF36N+W0zE602BMOS4zniWFmZcUJKzmZ8Vq6KOsRcupKGt1C wDxQ== X-Gm-Message-State: AMke39kmc2t2DvwjEUiq0UgsaMd31gVfdg/DfwEjRcBYe/ggoUFGrASN10GUfxqH16EivA== X-Received: by 10.223.177.142 with SMTP id q14mr28525526wra.194.1487867026141; Thu, 23 Feb 2017 08:23:46 -0800 (PST) Received: from localhost (port-435.pppoe.wtnet.de. [84.46.1.180]) by smtp.gmail.com with ESMTPSA id 186sm7408092wmw.24.2017.02.23.08.23.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2017 08:23:45 -0800 (PST) From: Thierry Reding To: Adrian Hunter , Ulf Hansson Cc: Jon Hunter , Alexandre Courbot , linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 2/2] mmc: tegra: Add Tegra186 support Date: Thu, 23 Feb 2017 17:23:42 +0100 Message-Id: <20170223162342.15911-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170223162342.15911-1-thierry.reding@gmail.com> References: <20170223162342.15911-1-thierry.reding@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding The SDHCI controller found on NVIDIA Tegra186 SoCs is very similar to the one on prior generations of Tegra and can be supported by the same driver. Signed-off-by: Thierry Reding Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-tegra.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 9ae5895678e8..9ef4afcf312c 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -434,7 +434,23 @@ static const struct sdhci_tegra_soc_data soc_data_tegra210 = { .pdata = &sdhci_tegra210_pdata, }; +static const struct sdhci_pltfm_data sdhci_tegra186_pdata = { + .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | + SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | + SDHCI_QUIRK_SINGLE_POWER_WRITE | + SDHCI_QUIRK_NO_HISPD_BIT | + SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC | + SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, + .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN, + .ops = &tegra114_sdhci_ops, +}; + +static const struct sdhci_tegra_soc_data soc_data_tegra186 = { + .pdata = &sdhci_tegra186_pdata, +}; + static const struct of_device_id sdhci_tegra_dt_match[] = { + { .compatible = "nvidia,tegra186-sdhci", .data = &soc_data_tegra186 }, { .compatible = "nvidia,tegra210-sdhci", .data = &soc_data_tegra210 }, { .compatible = "nvidia,tegra124-sdhci", .data = &soc_data_tegra124 }, { .compatible = "nvidia,tegra114-sdhci", .data = &soc_data_tegra114 },