From patchwork Fri May 22 10:44:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1296128 X-Patchwork-Delegate: trini@ti.com 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=LWaqqhy6; 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 49T36B3jYLz9sSx for ; Fri, 22 May 2020 20:45:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B569815EB; Fri, 22 May 2020 12:44:40 +0200 (CEST) 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="LWaqqhy6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02C648167E; Fri, 22 May 2020 12:44:27 +0200 (CEST) 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-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) (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 1739D81671 for ; Fri, 22 May 2020 12:44:23 +0200 (CEST) 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-ej1-x644.google.com with SMTP id a2so12426371ejb.10 for ; Fri, 22 May 2020 03:44:23 -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=docEIuv8gYTAmSkpDOwYT1n7wBG5+ThW0rId3DdGuHg=; b=LWaqqhy6K6Ef2eMFOdwxGUQnerlR1SeejQ2iCgHn9KqIB9C+mSxoYOPu1HYMsGhjQb rmoC+JR0H6auDIlDSNlJeWtUadH+q4BUS9KVSH10V2BWScmm5WJ+l21Yd4TTX5scy5Gz tcAdQSmxFl+jCKkNXZ210EAOLNCTFM9bdfIRcBJLROf3uegQtA/GQIzL+/waIoSKnb83 uzf9yAeOu6jjq8JyJeRaF7JUUY8vYGsE4+qxyCYYrW4Ju+o869fVNTd6sGT1TRasjLAH zS85hrPAgz7/aUItWYgeN5S1mcTq9bTOXqt6cVsHGTpbyFP+LXZvqziRmd+mX2KhL1XN j4PA== 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=docEIuv8gYTAmSkpDOwYT1n7wBG5+ThW0rId3DdGuHg=; b=nC59On/PtQDwusmI1CGAZh78f83i34HC65Vd8c6Dioe0UPo2WuvIiTRfmRpljAxHgw Bx0B881cj4hLZl83wfKjcrPvy+ZvAQ/R6uK0rhJWbxznWKj0rjFZh2iuOD9GgLemONAm 7OxF7qCngricCyumsUEdOwaPDSGGW208EhxXUf2ZLRsAWY7SQhvPkauWtZ+/JsxQz2bf mT5OmB0tk/4Onx8mxBdhJEL9StsQHZxN2OUwmm27tEEEP1ChZR2cMkwgeF/jKj6pID3C 7hP2tb3l2DMt2zxc/v0w8Z5VQJsKf/S9gYPPRSF4125EX7jM+xrYwTatNn3HXm9pGWnB j/lA== X-Gm-Message-State: AOAM531OXDYbNHO52lPMQkbSNmOtAMoawUbITRsFmhVALqxhO8kHpcQd bi4ye5FcFrIxZx1bv+MhCIydu6yOm+48GN8Y X-Google-Smtp-Source: ABdhPJw/OGC0YPtFPeMwBSua0AE8N1OICGnlBawEYtHitEvSu0dV/6k/ei7ezeJuB0oG1KytC/j6fw== X-Received: by 2002:a17:907:9484:: with SMTP id dm4mr7965074ejc.56.1590144262429; Fri, 22 May 2020 03:44:22 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id r1sm7551771ejz.59.2020.05.22.03.44.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 May 2020 03:44:21 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Peng Fan Subject: [PATCH 3/7] mmc: zynq_sdhci: Move macro to the top Date: Fri, 22 May 2020 12:44:07 +0200 Message-Id: <489334342da8b1b8e39048d8d800aefd2ff1c459.1590144247.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 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 --- 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 02583f76f936..1c83aab84021 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;