From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9C87C4338F for ; Mon, 2 Aug 2021 10:17:54 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 40A1A60184 for ; Mon, 2 Aug 2021 10:17:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 40A1A60184 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 95695833E6; Mon, 2 Aug 2021 12:17:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="F8XFJx8y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 565B6833DA; Mon, 2 Aug 2021 12:16:54 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on20618.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eb2::618]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C26F0833B8 for ; Mon, 2 Aug 2021 12:16:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ashokred@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W73cyx6J5TsJUWjwohDJve8DSqFGMo8o2XoWiWvIRUj8+RYrU/5lI6ms7wAj1jdvG04UZ+7vMJlcN/EYssDk/2vMLRvpeXCRtMTEsqGt7RYQoWotML2HpbMBFiXkS5juOAXv/LTSg3Mt17xBp9b5R8VV3LVNogTNrdpKqIxpwkxT1jbWcKILpFE/obhj6BOwCWiTtQQEhnNngFbSS2vSvjq8+BR44YdLEbLnctAJanUCuoDRyGTepK8sXUKZ4u7EwnjG/OtZQDorvjHh4Th9Cuf3v/WkoyW/hy4FSr64/RKINxZ2jf+es49JNiGBycxAzgBAbaUnaHPk2dhqj+0bYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CRpmTVJo4yX2Ekqp8uAuQE1zE1XUx/0lbDKnxUlObjo=; b=LSAklErn1ILbu2ajERFoAMAELOjA/mssi9uH5p6JD+tRKNOlWWBcl3jmDVmTQvDt133Qc1r9ZIkv2X2+x37wgXSl1IxXkVM38FeWhl+9JMwN4vg8aPKz3KXgcbYq5UdLxrm8YvYiDJnTUmCXAIQsaTak5z0jEPXaucC7idZ5Tf29JmqI3TJzAVA9w+ZEFxIHaAwYFnTkGeaRfaPtZpl6NzOjtzKtNaHLDKNBWsxFCqdFUgHoE68JpD7qRSW9duz2oFD8qnBFw/YbiZK5Dou29fxtsrS609zZ631X0S29okUjetKXd26nZBNBo/s/AIuCMYFojcdwMzUQ26R1saKwxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=chromium.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CRpmTVJo4yX2Ekqp8uAuQE1zE1XUx/0lbDKnxUlObjo=; b=F8XFJx8yxQE7mqJz1rjJY3aEUA7uhW2sYQkOTW7A7VoiPfp/A+3WnzyorJmf8bd3EFYqa2eceDL/Ih5xZgc4A11TYdeX1KkCD0IsWZnsrfIcMFLbNXHOFFcaZ5OHCs3mH/S1MPzgVEZ5R/RIZ1OuIAl/VdtgxNee/4Kpu87GJ8w= Received: from SA9PR13CA0051.namprd13.prod.outlook.com (2603:10b6:806:22::26) by DM8PR02MB8231.namprd02.prod.outlook.com (2603:10b6:8:d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Mon, 2 Aug 2021 10:16:35 +0000 Received: from SN1NAM02FT0038.eop-nam02.prod.protection.outlook.com (2603:10b6:806:22:cafe::38) by SA9PR13CA0051.outlook.office365.com (2603:10b6:806:22::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.11 via Frontend Transport; Mon, 2 Aug 2021 10:16:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; chromium.org; dkim=none (message not signed) header.d=none;chromium.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0038.mail.protection.outlook.com (10.97.5.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4373.18 via Frontend Transport; Mon, 2 Aug 2021 10:16:35 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 2 Aug 2021 03:16:25 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Mon, 2 Aug 2021 03:16:25 -0700 Envelope-to: git@xilinx.com, sjg@chromium.org, somaashokreddy@gmail.com, u-boot@lists.denx.de, monstr@monstr.eu, peng.fan@nxp.com, jh80.chung@samsung.com, faiz_abbas@ti.com, michael@walle.cc Received: from [10.140.6.65] (port=42174 helo=xhdashokred41.localdomain) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1mAUzf-000F5u-Uh; Mon, 02 Aug 2021 03:16:24 -0700 Received: by xhdashokred41.localdomain (Postfix, from userid 2896) id 34AA11025DF; Mon, 2 Aug 2021 04:16:22 -0600 (MDT) From: Ashok Reddy Soma To: CC: , , , , , , , , Ashok Reddy Soma Subject: [PATCH v4 7/7] mmc: zynq_sdhci: Use set_control_reg from sdhci.c Date: Mon, 2 Aug 2021 04:16:19 -0600 Message-ID: <20210802101619.28462-8-ashok.reddy.soma@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210802101619.28462-1-ashok.reddy.soma@xilinx.com> References: <20210802101619.28462-1-ashok.reddy.soma@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa545830-e77b-4a96-11d1-08d9559e9ba7 X-MS-TrafficTypeDiagnostic: DM8PR02MB8231: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:411; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6eShLzy92bH6551VfwjCodtw3Zf2YFmcaTluhr387+ZsimVwZDqqLgSsLaTCN5NmzAlmDD99pKfYYA5RGOvRV6Fvx3kz8MU1WYmvaTJ/LTy0P++5WnpPTRNR7YqTG1o4EMrujov/1uPvKm8NkRqwt1ZTcoTe8h4nnE+U8wAjdFzpSyo/gkGHbrVuLBqwJiLx84WgqXF8vAXRbxGJ0wS631SJUSXdVfgRlKlnm9zR2l5bQCanJIH6wQfz1JvSCWuCmJfdw3m5cdSYuPKLTmPsXvhmVbMFLTfLWb5BizULWf199RnfZNAvPjSVRfqP0H1BqOd1JUZEM/7XLMMv1/tHMy+3I+w0VLCmixWSyQu4PHL2cunJ+OTVSMwEORtAxyQ26qPyy6LDtPj4hulOfWfs2cn4ComSCt5TrkcSDYXVNi0/Oq1Uw60GQG/OFlOUow4moq6nKpRyLDb8qsGqavhx51bEJLePfvfCP1gBcP+AVJ2fgz1n4waRniSELZQ742gYWPKckx785w2zaFVDgzVFXZnp+hlKxvexMHsXlXsMG8tTZf0bKCa46+4+oFymGttOoXcI1G3XXdi1TG2SqJytfNEn8NBgcCqgbunN714xNklK73AmtD2WXn9r+29gYnfZwrTuz7rvHLC+TQ4M6uj6jo0rv0pydHYZh/JMxyHAdqt6sDvEdwM2a/6JVysmaXhMt3jM33XyEQW1TlzOHNdnww== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(346002)(396003)(39850400004)(376002)(136003)(46966006)(36840700001)(186003)(26005)(6266002)(36756003)(107886003)(356005)(2616005)(8676002)(70206006)(336012)(4326008)(54906003)(316002)(42186006)(5660300002)(6666004)(83380400001)(103116003)(82310400003)(82740400003)(6916009)(2906002)(36860700001)(1076003)(478600001)(70586007)(47076005)(36906005)(7636003)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2021 10:16:35.3447 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa545830-e77b-4a96-11d1-08d9559e9ba7 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0038.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR02MB8231 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Since set_control_reg is available in sdhci.c, use it and remove arasan_sdhci_set_control_reg(). Signed-off-by: Ashok Reddy Soma Reviewed-by: Jaehoon Chung --- (no changes since v1) drivers/mmc/zynq_sdhci.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 89776f48eb..73bb3abbc2 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -690,29 +690,10 @@ static void arasan_dt_parse_clk_phases(struct udevice *dev) "clk-phase-mmc-hs400"); } -static void arasan_sdhci_set_control_reg(struct sdhci_host *host) -{ - struct mmc *mmc = (struct mmc *)host->mmc; - u32 reg; - - if (!IS_SD(mmc)) - return; - - if (mmc->signal_voltage == MMC_SIGNAL_VOLTAGE_180) { - reg = sdhci_readw(host, SDHCI_HOST_CONTROL2); - reg |= SDHCI_CTRL_VDD_180; - sdhci_writew(host, reg, SDHCI_HOST_CONTROL2); - } - - if (mmc->selected_mode > SD_HS && - mmc->selected_mode <= MMC_HS_200) - sdhci_set_uhs_timing(host); -} - static const struct sdhci_ops arasan_ops = { .platform_execute_tuning = &arasan_sdhci_execute_tuning, .set_delay = &arasan_sdhci_set_tapdelay, - .set_control_reg = &arasan_sdhci_set_control_reg, + .set_control_reg = &sdhci_set_control_reg, }; #endif -- 2.17.1