Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C06EAC433F5 for ; Tue, 14 Dec 2021 18:38:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2DFD482F70; Tue, 14 Dec 2021 19:37:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 56EA28192A; Tue, 14 Dec 2021 19:36:55 +0100 (CET) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 1713D82C88 for ; Tue, 14 Dec 2021 19:36:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f178.google.com with SMTP id n15so19370386qta.0 for ; Tue, 14 Dec 2021 10:36:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Oa0D4lXc70TCo3gQpiQo9B3Qm4v6yCPzRcK+Dn8uMCc=; b=Kb/bBPYK9kRnlaxmt6hjGfTW9UG70ttKziDALUkWGzr2dNIBAx5xd/0VG+dxRPup/t paUCfy2AJeLeBsZLENOuIlx0GuOzcED37lXH/GbMs/he5ORIiVYsCx9xKIksmHW4Cy43 /TSn1xE3/bkDT01oxMzKi+uYU3uapTIjhMRt1w2ys0IYH8nnE+2o3gHlmAzwC2vFqCox ieflpXdBTcdQ5kqJyPZf03Kqwco4NUU2dzTsC8TX9/rS8zO/KJlN7juCggspwG4egYP/ ZuWJKdEHkNPJgSMQfmuOXReEfX1XAeN2Bm6NjFNnSYbae9dr5cUT5zAor1lgXp7Vpy7S ItYg== X-Gm-Message-State: AOAM533wObyd9ol6JscB0syRWpM5W2Nbh+T67gRWYD4fEMz86+Q/lgrd ui8kDFh1lI8DM/chC7/2CCSyzZFenw== X-Google-Smtp-Source: ABdhPJwMZsr7ONQQzzslS6vF14yGkdYVFVB5F3kpM3jlu4gSKFpaYWUeg2P3CiS5P3PuWRl8urmmZw== X-Received: by 2002:a05:622a:1705:: with SMTP id h5mr7786849qtk.331.1639507007067; Tue, 14 Dec 2021 10:36:47 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-310c-c3b6-cb4e-9c9e.res6.spectrum.com. [2603:6081:7b01:cbda:310c:c3b6:cb4e:9c9e]) by smtp.gmail.com with ESMTPSA id b11sm498795qtx.85.2021.12.14.10.36.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 10:36:46 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 6/9] nxp: ics307_clk: Guard get_board_ddr_clk function correctly Date: Tue, 14 Dec 2021 13:36:38 -0500 Message-Id: <20211214183641.1877371-6-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211214183641.1877371-1-trini@konsulko.com> References: <20211214183641.1877371-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 When we have CONFIG_DYNAMIC_DDR_CLK_FREQ set is the only time we should have this function, so guard it so that we can include in this file later on. Signed-off-by: Tom Rini --- board/freescale/common/ics307_clk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/common/ics307_clk.c b/board/freescale/common/ics307_clk.c index 2143395781a1..03be8be30347 100644 --- a/board/freescale/common/ics307_clk.c +++ b/board/freescale/common/ics307_clk.c @@ -137,6 +137,7 @@ unsigned long get_board_sys_clk(void) in_8(&fpga_reg->sclk[2])); } +#ifdef CONFIG_DYNAMIC_DDR_CLK_FREQ unsigned long get_board_ddr_clk(void) { return ics307_clk_freq( @@ -144,3 +145,4 @@ unsigned long get_board_ddr_clk(void) in_8(&fpga_reg->dclk[1]), in_8(&fpga_reg->dclk[2])); } +#endif -- 2.25.1