From patchwork Mon Oct 26 11:42:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1387693 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=B7Fft7hj; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CKXzf5vl7z9sSC for ; Mon, 26 Oct 2020 22:43:58 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 53E298249C; Mon, 26 Oct 2020 12:43:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="B7Fft7hj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BC472823E3; Mon, 26 Oct 2020 12:43:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DF02A8247D for ; Mon, 26 Oct 2020 12:43:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x543.google.com with SMTP id l24so8904064edj.8 for ; Mon, 26 Oct 2020 04:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IyFMQ5DjH5y6gRsOaC8djyXQgj7ce0dTioIdC3291cU=; b=B7Fft7hjspc3GOasPtoTsk3ONb7oxL6jUcPGc1orn/CC/CACs6TdQFZFtaCjWMLegv QaWK8LN6LBr1p2Ve5WcV5xu8BT5D7bE/7UN8JkTNdUd1+W6IseE9bxk85AnY/jANNZTI V86qkSoJpLpFQoYCrtvMFGP9WTTmfsw+Yt+nFBmZTBMypOF+I7Hq/f8z5IFYWzldfaVd SxkyW8lEW3KYSCg+WkJm/d04HI3duRqYWj9C7C88OHs8caP9wCu6q12CCgetGCXTA+HE 9XQcjnDXbuj3oTXyaqYa1WgaPcFXAJsQgrBoIq0931+8jaCEgYglvvUG/yF9do2XvJIu fb0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=IyFMQ5DjH5y6gRsOaC8djyXQgj7ce0dTioIdC3291cU=; b=EUB47BO+i8JFLqiV8Kr7v4Uex4rYS512xEuzWISVK9PU/2ENBJAAL6zlQhLw8JGFE/ xDiS49avZtQ3ZmY0o5LcvSNLBSwm+iK66nAq5HX2P7NJaWNqhBbNE1Gphhgr53ysHcpy crSFoyzLqE2v6Gq3y0smzHOSeZnZ3aKUJwh014FbHG72qktnj4iNPbvrKN2a+3wEeMR0 48EEA5VnR9uT0zqj85+0DcvU8F9O2miDYjGXLZSxikp0fpRlikxViywSlPZT8Y/N66S4 DuFTvqTmoDVlbH305VyTc7vHGCUYlt4YDc+KJTm+ZXi+XraIh2EMjvzgQlpJbd5duCOd 5fUA== X-Gm-Message-State: AOAM533BKnWIXjC9lI1q2vaw572LvkEvpibyOTeX3uGkwToo/jc+Zdy1 jtp5WPMCi4ceQ+EGs9Z2j8ogZj1t646jCAky X-Google-Smtp-Source: ABdhPJxmiT2Dj23ZLCrtdZqyJ63B40STP08tYLN6MD8HfeVlu7gDsFBJHdTsuvQLtgTm0/NliIRTHg== X-Received: by 2002:a50:fd83:: with SMTP id o3mr15660549edt.17.1603712588357; Mon, 26 Oct 2020 04:43:08 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id f15sm3383423ejt.22.2020.10.26.04.43.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Oct 2020 04:43:07 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Peng Fan Subject: [PATCH v3 3/8] mmc: zynq_sdhci: Move macro to the top Date: Mon, 26 Oct 2020 12:42:56 +0100 Message-Id: X-Mailer: git-send-email 2.28.0 In-Reply-To: References: MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean Just group macros below headers. Other patches will be using this location too. Signed-off-by: Michal Simek Signed-off-by: Ashok Reddy Soma Reviewed-by: Peng Fan Reviewed-by: Jaehoon Chung --- (no changes since v1) drivers/mmc/zynq_sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 4f62bd008d24..998a38450680 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -19,6 +19,8 @@ #include #include +#define SDHCI_TUNING_LOOP_COUNT 40 + struct arasan_sdhci_plat { struct mmc_config cfg; struct mmc mmc; @@ -46,8 +48,6 @@ static const u8 mode2timing[] = { [MMC_HS_200] = MMC_TIMING_MMC_HS200, }; -#define SDHCI_TUNING_LOOP_COUNT 40 - static void arasan_zynqmp_dll_reset(struct sdhci_host *host, u8 deviceid) { u16 clk;