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 02D20C433F5 for ; Tue, 14 Dec 2021 18:37:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4CD7180379; Tue, 14 Dec 2021 19:37:24 +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 0054D82A70; Tue, 14 Dec 2021 19:36:55 +0100 (CET) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 60B788203C 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-qv1-f52.google.com with SMTP id kl7so1235573qvb.3 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=Vi8tfe4+9FotrhTMwOsVK3XkUpqJNC2+KShtsZTp6V0=; b=Pf3mwMjcDAG9ZYToEYDrlK7JbVycaGL5KQ12qi7g/oaxORFMiDnRNIDGJ3ARdVvzxs swN4H8Un5mV3Yc7/gyuZyHBo1Heu1oiYej9ts9/tNW/zLNmKeojh3tEyobcHpfl/cIfE cLdSqH1U4j/zHrP3co2jhhSXIM4TKrqTAmC7fmt0TxmvfQmBmOYOJne25zwKmnSyap9M sK5GGdwBL15vT/Fddx3v4dplrRbwNr3NlMUWi+ZA82z0e8ut/OkbhtmOrOcFI72qD4nS PfivZgW2qSCfqjKaNoxYsrV7s6nt81pq2Spr59h9bqwtQ+IGnUmvgNTlgF0PIdBL6fI2 x82g== X-Gm-Message-State: AOAM530CS/ScmsaiY3WqkQzWm/1S2enivVd6PyNsZzWWZ2nK+k6ZiGSd hx5sRFSk66GkLr/CdHMuuTpsH2AwOA== X-Google-Smtp-Source: ABdhPJxJaGXPliNF2bCw7y3ut24VzAFSXEwnWLhVMZxcg4lVf8n86+7kF14q+9HNdzyUmVzgk8v9Cg== X-Received: by 2002:a05:6214:2308:: with SMTP id gc8mr7577163qvb.12.1639507005902; Tue, 14 Dec 2021 10:36:45 -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:45 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 4/9] arm: s5pc1xx: Move CONFIG_SYS_CLK_FREQ_C1x0 out of CONFIG namespace Date: Tue, 14 Dec 2021 13:36:36 -0500 Message-Id: <20211214183641.1877371-4-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 The values CONFIG_SYS_CLK_FREQ_C100 and CONFIG_SYS_CLK_FREQ_C110 are only used in one place and not changed by the board config file. Move these out of the CONFIG namespace and in to the CFG namespace. Signed-off-by: Tom Rini --- arch/arm/mach-s5pc1xx/clock.c | 12 ++++-------- include/configs/s5p_goni.h | 3 --- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-s5pc1xx/clock.c b/arch/arm/mach-s5pc1xx/clock.c index 555228a52083..c90c341b5082 100644 --- a/arch/arm/mach-s5pc1xx/clock.c +++ b/arch/arm/mach-s5pc1xx/clock.c @@ -14,12 +14,8 @@ #define CLK_D 1 #define CLK_P 2 -#ifndef CONFIG_SYS_CLK_FREQ_C100 -#define CONFIG_SYS_CLK_FREQ_C100 12000000 -#endif -#ifndef CONFIG_SYS_CLK_FREQ_C110 -#define CONFIG_SYS_CLK_FREQ_C110 24000000 -#endif +#define CFG_SYS_CLK_FREQ_C100 12000000 +#define CFG_SYS_CLK_FREQ_C110 24000000 /* s5pc110: return pll clock frequency */ static unsigned long s5pc100_get_pll_clk(int pllreg) @@ -66,7 +62,7 @@ static unsigned long s5pc100_get_pll_clk(int pllreg) s = r & 0x7; /* FOUT = MDIV * FIN / (PDIV * 2^SDIV) */ - freq = CONFIG_SYS_CLK_FREQ_C100; + freq = CFG_SYS_CLK_FREQ_C100; fout = m * (freq / (p * (1 << s))); return fout; @@ -116,7 +112,7 @@ static unsigned long s5pc110_get_pll_clk(int pllreg) /* SDIV [2:0] */ s = r & 0x7; - freq = CONFIG_SYS_CLK_FREQ_C110; + freq = CFG_SYS_CLK_FREQ_C110; if (pllreg == APLL) { if (s < 1) s = 1; diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h index 14840a453a67..e3b091a93709 100644 --- a/include/configs/s5p_goni.h +++ b/include/configs/s5p_goni.h @@ -18,9 +18,6 @@ #include #include /* get chip and board defs */ -/* input clock of PLL: has 24MHz input clock at S5PC110 */ -#define CONFIG_SYS_CLK_FREQ_C110 24000000 - /* DRAM Base */ #define CONFIG_SYS_SDRAM_BASE 0x30000000 -- 2.25.1