From patchwork Thu Nov 17 17:18:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9434735 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 9EF1260469 for ; Thu, 17 Nov 2016 17:19:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EB7528343 for ; Thu, 17 Nov 2016 17:19:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8397529640; Thu, 17 Nov 2016 17:19: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 3549428343 for ; Thu, 17 Nov 2016 17:19:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936557AbcKQRTH (ORCPT ); Thu, 17 Nov 2016 12:19:07 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35110 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935460AbcKQRTD (ORCPT ); Thu, 17 Nov 2016 12:19:03 -0500 Received: by mail-pg0-f65.google.com with SMTP id p66so18104375pga.2; Thu, 17 Nov 2016 09:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9YPa76KwZe/kpaBgGPH0TWs78wTkp2BVZn/bm6EV2W8=; b=HCMI6Q9gdBBvv/s6VZ5HCB9eaj6pc2BSoyRnfOUryMZSfXZsQROHwVVVxJXdIOjQVe xmo/fya0J4fna56D1Ih+46jvC/iUys3kftV7mPNdkX/kuRSl1hIlBpEpL3Q43nP9epq/ HOVdLczxL9bWGKcdQqLAhCH14WeeqZDG/LsGF+08dWWaRdh3Q16JnNOWbh22iIWTy7Oj FXJXFGjkBQlgWnmEs3tsjhy2fR89AOkMtc/BLl6zbqtcAl/0sRpupZrflIcGm5tXPfy7 d4pQC6RuNKSI5Vb3z/JACnFOpP1glS8Su8IsdfEomcq83n7ywxi+SJeZCMftrZzkIQCr z5yA== 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=9YPa76KwZe/kpaBgGPH0TWs78wTkp2BVZn/bm6EV2W8=; b=Vcm7qWHEBosoidWSJ0aXQWQ/2/w0Bjdr9u7CL5QcJFueJ7eo1okWG9oOp5n2Z7ZxmX ITGFJtVpmvsbJWFvXLeAgGetWv/KoB3a5T4WP6Qa+OMD7ISjwGdYWJ4ecVyFXaDK+1sF /INb2JaqnLQcdXp+GEgD6Cf3Gf5+Xu0dzrf7VwuM18LjyxD9Q3rzHtC71Imdkz30te2N nUZ6IA5BX8L6IUJm/VE9p0SNpHij1+ps5HcIDcz/arwg2qxi5Hsw0SnJ3BrztdHYVWhy USjyhiMVvEOL4an6d/ZvLKO8uee56eufJ13/f5cnHn/Y4wLBU94yMj6BC4rofpumxQT5 Appg== X-Gm-Message-State: ABUngvefgpY2MLY1dYq316zMtl4K/nDHmBgzLSkrvnQRtVyfTiEl/FWSeSE1u0SInyRx3w== X-Received: by 10.99.167.15 with SMTP id d15mr9605086pgf.167.1479403142615; Thu, 17 Nov 2016 09:19:02 -0800 (PST) Received: from localhost (port-24584.pppoe.wtnet.de. [46.59.157.190]) by smtp.gmail.com with ESMTPSA id y20sm9545021pfj.26.2016.11.17.09.19.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Nov 2016 09:19:01 -0800 (PST) From: Thierry Reding To: Adrian Hunter , Ulf Hansson Cc: Stephen Warren , Alexandre Courbot , linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 2/2] mmc: tegra: Add Tegra186 support Date: Thu, 17 Nov 2016 18:18:55 +0100 Message-Id: <20161117171855.20843-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161117171855.20843-1-thierry.reding@gmail.com> References: <20161117171855.20843-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 Signed-off-by: Thierry Reding --- 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 eac57bb161d3..0e7143557fe4 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 },