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 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 BC300C433EF for ; Tue, 14 Dec 2021 18:38:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2A5608309C; Tue, 14 Dec 2021 19:37:43 +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 DD72C81761; Tue, 14 Dec 2021 19:36:55 +0100 (CET) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 D007282A70 for ; Tue, 14 Dec 2021 19:36:47 +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-qk1-f170.google.com with SMTP id m186so17666695qkb.4 for ; Tue, 14 Dec 2021 10:36:47 -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=gbA08nixuZq6R21z1+KGNtjyNBrWi2RVMM7WTiK8zEE=; b=Wo7mG0lh7/tK5kQ5kE2QOW3UQMAAbkwpH06t1o5Q01r/8idUaFoa90sy6pHgCTAh4J YA20yXqwAsvQ98WM0radlLvh3ZjrQsw0cVvSkc+qYv20aivm2b+7vM23+hZCuvbo9HFM 6amq9G3oNH4+nQCOreiq3C6OObzfUdmJlqFAE/pgQYIIXejVu2e3MccYHIiKrlwLgrHb jbDtLxKD7GCT82ewnZWt4w8ZvXomjv3fD2Co5ili5qI8fxS2fmZABedBIq1t1qCGfFjo QfTRSLY+660+U4431GuJtQBEdhCuOgM2brMQZk0fXkCUq2x1d103x7psB1gkIrG4KPXi bQcw== X-Gm-Message-State: AOAM533EZ8wa40LTaiidS3mqnzbreH1Dp9nLPPyN3of0Vgilej8e/B+3 ZGnj7HjrKq20yDNJImrl3+fncurwOA== X-Google-Smtp-Source: ABdhPJzwMWzII4xmSwWIz+793WEMYDeoRLsQQFRInKH9DYdqlEzOZv6AkvwctijRQUsfKTJNFZHXiQ== X-Received: by 2002:a05:620a:2a14:: with SMTP id o20mr5637078qkp.562.1639507006531; Tue, 14 Dec 2021 10:36:46 -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.45 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 5/9] ls1088a: Guard get_board_ddr_clk function correctly Date: Tue, 14 Dec 2021 13:36:37 -0500 Message-Id: <20211214183641.1877371-5-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/ls1088a/ls1088a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c index 7046fbaeb5d6..73c2077ecdb6 100644 --- a/board/freescale/ls1088a/ls1088a.c +++ b/board/freescale/ls1088a/ls1088a.c @@ -398,6 +398,7 @@ unsigned long get_board_sys_clk(void) return 66666666; } +#ifdef CONFIG_DYNAMIC_DDR_CLK_FREQ unsigned long get_board_ddr_clk(void) { u8 ddrclk_conf = QIXIS_READ(brdcfg[1]); @@ -415,6 +416,7 @@ unsigned long get_board_ddr_clk(void) return 66666666; } +#endif #if !defined(CONFIG_SPL_BUILD) void board_retimer_init(void) -- 2.25.1