Message ID | 1524121630-13933-5-git-send-email-siva.durga.paladugu@xilinx.com |
---|---|
State | Accepted |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="R/6wtbMz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40RVVg17Rnz9s1w for <incoming@patchwork.ozlabs.org>; Thu, 19 Apr 2018 17:10:01 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 80F47C21F9F; Thu, 19 Apr 2018 07:07:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAD_ENC_HEADER, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 844E7C21FA4; Thu, 19 Apr 2018 07:06:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F39E5C21F7E; Thu, 19 Apr 2018 07:05:57 +0000 (UTC) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0047.outbound.protection.outlook.com [104.47.37.47]) by lists.denx.de (Postfix) with ESMTPS id 28988C21DA1 for <u-boot@lists.denx.de>; Thu, 19 Apr 2018 07:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Be2gGstwqPSIzNykQZWgYg1lcrI0kENAmy2Do6THdxM=; b=R/6wtbMz2GB1oIp8dO1bWBuLs77vhI10n6zYDC50Hp//Z3h3QXeTZu7CYPct3+Ab8Lmoo/yzJ27fURm8xaCrU16mxBMM53pUM/BXOt5vYj6fo+GSIL2f6TJwAmvI7C6oDouEYM4vYomCpymFmP/WQhTtK4mFX4ZseaWBjTtO0g8= Received: from CY4PR02CA0014.namprd02.prod.outlook.com (10.169.188.24) by BY1PR02MB1227.namprd02.prod.outlook.com (10.162.108.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Thu, 19 Apr 2018 07:05:53 +0000 Received: from CY1NAM02FT044.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::209) by CY4PR02CA0014.outlook.office365.com (2603:10b6:903:18::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.696.13 via Frontend Transport; Thu, 19 Apr 2018 07:05:53 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; samsung.com; dkim=none (message not signed) header.d=none;samsung.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT044.mail.protection.outlook.com (10.152.75.137) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.675.14 via Frontend Transport; Thu, 19 Apr 2018 07:05:52 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:44072 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <siva.durga.paladugu@xilinx.com>) id 1f93dg-00013g-7x; Thu, 19 Apr 2018 00:05:52 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <siva.durga.paladugu@xilinx.com>) id 1f93db-0003iN-4U; Thu, 19 Apr 2018 00:05:47 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w3J75i4w013908; Thu, 19 Apr 2018 00:05:44 -0700 Received: from [172.23.37.99] (helo=xhdsivadur40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <siva.durga.paladugu@xilinx.com>) id 1f93dY-0003gi-4l; Thu, 19 Apr 2018 00:05:44 -0700 From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> To: <u-boot@lists.denx.de> Date: Thu, 19 Apr 2018 12:37:07 +0530 Message-ID: <1524121630-13933-5-git-send-email-siva.durga.paladugu@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524121630-13933-1-git-send-email-siva.durga.paladugu@xilinx.com> References: <1524121630-13933-1-git-send-email-siva.durga.paladugu@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(376002)(346002)(39860400002)(39380400002)(2980300002)(438002)(189003)(199004)(9170700003)(9786002)(5660300001)(336012)(305945005)(426003)(106466001)(478600001)(50466002)(6666003)(6916009)(2351001)(77096007)(107886003)(4326008)(186003)(5890100001)(63266004)(26005)(48376002)(8936002)(36386004)(8746002)(316002)(54906003)(7696005)(51416003)(59450400001)(81166006)(8676002)(76176011)(2616005)(356003)(2906002)(476003)(106002)(126002)(486006)(50226002)(47776003)(446003)(11346002)(36756003)(107986001)(5001870100001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR02MB1227; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; LANG:en; MLV:ovrnspm; MX:1; A:1; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT044; 1:AEjO4WrjSDem0Q7rjGYCo86fOhHvyX2VoAnrSLoIvQj8pjcqP8CYUu/ns8pDBTptgGSD1LaEgxMUi4nD+eVyTE85ZKC9OLQHaHL1EPql5Sur4/ygRqJ6awu8lpQdujYw MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BY1PR02MB1227; X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1227; 3:YZqAhznuzaYaoT4gT3yCjxFEzqilnTeoPFkPbmx0goa6WN4l72/7TnCxXOijopWE228WVVKn3Nh5KWfodzaGmeuwK5T2BSO502EPsWzWqD0KJuXoY4zK54DFoU0TtmmlFypz7/7cp2XTBtFXxTUXIC0D+gEHnRsg4Fjdp4tW/rCIc2kex1uqkqMRIDDQtbrG6NZ64sV/gbpuDOILyKt5FcVeRbHqI2NMkP61Cg1V+rd0UR0EHBXX7hBFe+V/EBPzt1WPqJI6quEC83a/7BFG4l/3TxiJ+S7YmtOxDchxa7CVMWA1uxbuTM4Ldh0SAolBw3dkXHB9mF6jsrsNI2DP2CjNp451OnvmvoaVhB8dz+Y=; 25:hDn4pSTPkSDVqmdXx/Sr4NoeCp4peeQ282PUIRmyAZsqE7XyAGZXT4pwkaXzaCKewNGMNbs+luREMGXgClwYx3O0fbEwxocOXMNOW0ryiTR31IML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, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <BY1PR02MB122706D406F170911B8C1CC9D9B50@BY1PR02MB1227.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231232)(944501327)(52105095)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BY1PR02MB1227; BCL:0; PCL:0; RULEID:; SRVR:BY1PR02MB1227; X-Microsoft-Exchange-Diagnostics: 1; BY1PR02MB1227; 4:PsYkipYCV0gZvSD6vUDSVjbX/WEjM4CLWX0wLpvWnawX7stzJXkQh3Kxkg4uEpwvjTYsCqNepBw9wyxJ5jWyFs2yvUBa2WqzVYFF0kOm5QTjRFJ0EsT6Hc2mTL5/WJQ0UGjTj2rE62pACa7Q4kiQYW16XkCBEiyPI1RO/pkQ23ZQVHxpUjwNzyOARnR7/tv+1/QjtgY3LPut5Y4LZhLS/HUHWH6aWa/ZHXBIGRNHJ3dSS5/AIdNejYTQh0d4FnnKMu6VN8HQSmdmd1Djj67i2rENgPC/AZJISTWc6trCvy2RS7Yjw2ZHq1oqF6Y87Yt/ X-Forefront-PRVS: 0647963F84 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR02MB1227; 23:3PcZ520VVciPzlfooIHwzDiWUc3UPplY7SsEmztAW?= nZMbc7CfMnFeZIAI2LyCmR/lhL14aSVuTuUvTJjkz4xq6e1NTwvyb0GFr/nrIsdiHkTS0QkxHrtWtzalnYYTY62fLxZ3jVOWCOZCOFqQTwGoOK9RF5esBWqSt1jfVlWQMPyE8k10aYBu1b+ArzYxlQ+WUzcPKBqDY58xWzo87AK/mH1YYzdLpAr/mD6P1jHZiHa0QqeHjRDEBjeD86CvmgpcV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zOvjA2jUD6SrJPP4MZ7b4ZyRaHK/Hu7GZRTPp/O79Ai+1HFYikfqGiuggQEMLgUlhKVsKJzBVfVfZ48b/XoFEPDqxFQTxTMkqSqZOi9dJZ1AYTb48WeKsaUHlz+XWO36AHQArQkTQOM3ulLfPndAng1BTww3umXn0W5/uTJkdHHHHOfsm7xB/SLCGlOnZwQT+h X-MS-Office365-Filtering-Correlation-Id: 2363da6d-8a41-4d07-ad5e-08d5a5c3fd3d X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2018 07:05:52.6801 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2363da6d-8a41-4d07-ad5e-08d5a5c3fd3d X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR02MB1227 Cc: michal.simek@xilinx.com, Siva Durga Prasad Paladugu <sivadur@xilinx.com> Subject: [U-Boot] [UBOOT PATCH v3 4/7] mmc: sdhci: Invoke platform specific tuning and delay routines X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
Add support of SD3.0 UHS modes for ZynqMP
|
expand
|
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 2ce3b57..c17ab12 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -306,6 +306,24 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, return -ECOMM; } +#if defined(CONFIG_DM_MMC) && defined(MMC_SUPPORTS_TUNING) +static int sdhci_execute_tuning(struct udevice *dev, uint opcode) +{ + int err; + struct mmc *mmc = mmc_get_mmc_dev(dev); + struct sdhci_host *host = mmc->priv; + + debug("%s\n", __func__); + + if (host->ops->platform_execute_tuning) { + err = host->ops->platform_execute_tuning(mmc, opcode); + if (err) + return err; + return 0; + } + return 0; +} +#endif static int sdhci_set_clock(struct mmc *mmc, unsigned int clock) { struct sdhci_host *host = mmc->priv; @@ -330,6 +348,9 @@ static int sdhci_set_clock(struct mmc *mmc, unsigned int clock) if (clock == 0) return 0; + if (host->ops->set_delay) + host->ops->set_delay(host); + if (SDHCI_GET_VERSION(host) >= SDHCI_SPEC_300) { /* * Check if the Host Controller supports Programmable Clock @@ -521,6 +542,9 @@ int sdhci_probe(struct udevice *dev) const struct dm_mmc_ops sdhci_ops = { .send_cmd = sdhci_send_command, .set_ios = sdhci_set_ios, +#ifdef MMC_SUPPORTS_TUNING + .execute_tuning = sdhci_execute_tuning, +#endif }; #else static const struct mmc_ops sdhci_ops = {