From patchwork Wed Mar 8 19:00:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9611849 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 41D4660414 for ; Wed, 8 Mar 2017 19:07:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3363F21E5A for ; Wed, 8 Mar 2017 19:07:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26144269DA; Wed, 8 Mar 2017 19:07:12 +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 9484821E5A for ; Wed, 8 Mar 2017 19:07:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753795AbdCHTHL (ORCPT ); Wed, 8 Mar 2017 14:07:11 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34657 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbdCHTHK (ORCPT ); Wed, 8 Mar 2017 14:07:10 -0500 Received: by mail-wr0-f196.google.com with SMTP id u48so5333737wrc.1; Wed, 08 Mar 2017 11:07:09 -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=jBkwnh1CBuwycUas0FA0hXP9cwmUytwS7vehR/B/Sfo=; b=cU8tsK1kgXZli1G6n+H1FEIan9wSkig844yJa9imnWgSwQxOGX8ELe52sYcDRnoW9f CBDVshog6qiXPu9T5iYW7khMp2sYB7Vk5F1jpJGhV1cfcgOeR4BJcHG46x2ptdGpmEuw /MfPvAuXw2BrKs0dGfH8KL1p0oDR9u+hNFjYZu5jdueYYNf4/v53OynlIy71Em+AsMST IS7G1u7eVlIMjSgc7mNJo0XCIDvIYsgxkkxApYfNgprp8u10VsC57S+g5oS99lq0LRGa gwn4DqxDAOT2xwtRWOO1wV3LOr2EK6koZNR29lrrC67nxewMl3gU54Jkf3Lg1NyI5FeR QjRg== 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=jBkwnh1CBuwycUas0FA0hXP9cwmUytwS7vehR/B/Sfo=; b=QN8+HdvBwAI27STXfdV31cYTnHPOMj0S5pZWvfIyQlw8e6vFE9yYRSAs6JqD+68wsE /vlheydL47mYSgFWanOjwdQ4Rqf7t+vo/utphlmnaEDErSkm0p9+PVRmg+d5MohHc/Rn MMMZEG62euUzlutf+ZrKQ9zlG5STF6WB/g4O6vUu99Xtu271p0uw7ioL4MypKSimDmXS yGthQPEguP/QG/2SaNLUJgh2hmy032mdG+Gm/RaI4Il7x9EXmrjo7mG/wm1O5OYAuMl/ 2AzHzf4aEqcf9S/cSfZWEzGaAaq0Ocfi0M8r9XtDvO76AypYB3inboh9W9posWfesB7b R1vA== X-Gm-Message-State: AMke39nJCeshfY5kw1bazwT3sHaWRVo9AjPxaFaj2crPMw35iQcw3mDJIvbwTGqiIPxUhQ== X-Received: by 10.223.162.205 with SMTP id t13mr7397075wra.155.1488999644552; Wed, 08 Mar 2017 11:00:44 -0800 (PST) Received: from localhost (port-8170.pppoe.wtnet.de. [84.46.32.10]) by smtp.gmail.com with ESMTPSA id c35sm5312326wra.1.2017.03.08.11.00.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Mar 2017 11:00:43 -0800 (PST) From: Thierry Reding To: Adrian Hunter , Ulf Hansson Cc: Jon Hunter , linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v3 2/2] mmc: tegra: Add Tegra186 support Date: Wed, 8 Mar 2017 20:00:40 +0100 Message-Id: <20170308190040.28386-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170308190040.28386-1-thierry.reding@gmail.com> References: <20170308190040.28386-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. Acked-by: Adrian Hunter 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 9d31ee8988ef..7f93079c7a3a 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 },