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 2944AC4332F for ; Sun, 20 Nov 2022 13:43:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3EA0E8532C; Sun, 20 Nov 2022 14:35:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="r44C+GNe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2C225852AB; Sun, 20 Nov 2022 14:34:41 +0100 (CET) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 9C18285293 for ; Sun, 20 Nov 2022 14:34:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x832.google.com with SMTP id l15so5912486qtv.4 for ; Sun, 20 Nov 2022 05:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=+tf10g530TXcHeP0g0GGLKajc1/ROmjjbwfwYu/l68U=; b=r44C+GNeOz9Y4fyNENfnwcmlhRCbvQOt46OctoIXj1dDUekShgIKLN6YPs/pxyU3DY 98xA7jwfeCd8nVbIjAC7aWd/8pRkn93evaaF48Y1y04sn6gNF1y3DXnIbxUSPsrH5YZe n6kwm7iCA9VNgkoWdu7YPo+sgRiFBxeY/Psas= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+tf10g530TXcHeP0g0GGLKajc1/ROmjjbwfwYu/l68U=; b=qAsXHaFybqvkLSvqwU7+l5dTDfuEStc4XDI8U7NVjlxSyHkqaes9F3fSF8CZbFRSAV mbHpG7EmtOLEzejWxYUl6x+epd2huFIH/Yd3ctmTszlqlV8m3EFvOvs4hxbSj0K1TspM vBEpKj3SRR5/SdAN6FX6YlaHvHxhqgvee3LRTSjANaImWfM3tATazd9ljqH9cKNow9Ks rh1UdZi1HPTe4UcjQgy5t152Gkr/r05kNseUtzR3AJ1bpPO91ayWUvuG26KjSEGlzRF6 QCx9A8CjjnSuvzy1dRQiedqoSOrjIog07KBbtJ7t4dXut0AY63pHZ5gjXccqM3CbldE0 jmfg== X-Gm-Message-State: ANoB5pnOGg616BGCSUv0Io9W58PdylrCxUSeemkQ8sGsN52c0RLDLORS Z2mfL19E1+uoLdDbg4uh+GbajRfDA8h/vQ== X-Google-Smtp-Source: AA0mqf5tvyPEcnvIE98zndB5DlkUbUs0lWv8e0eIMAq7KvKpvOFw1W6ReTrOBiRvgrlzikozExHfmA== X-Received: by 2002:a05:622a:514e:b0:3a5:2988:c67c with SMTP id ew14-20020a05622a514e00b003a52988c67cmr1446649qtb.487.1668951278033; Sun, 20 Nov 2022 05:34:38 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-29a0-035f-b06a-235e.res6.spectrum.com. [2603:6081:7b00:6400:29a0:35f:b06a:235e]) by smtp.gmail.com with ESMTPSA id m21-20020a05620a24d500b006ce0733caebsm6487740qkn.14.2022.11.20.05.34.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 05:34:37 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 061/241] global: Migrate CONFIG_ICS307_REFCLK_HZ to CFG Date: Sun, 20 Nov 2022 08:30:52 -0500 Message-Id: <20221120133352.3055600-62-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221120133352.3055600-1-trini@konsulko.com> References: <20221119234545.404563-38-trini@konsulko.com> <20221120133352.3055600-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Tom Rini --- board/freescale/common/ics307_clk.c | 4 ++-- include/configs/T208xQDS.h | 2 +- include/configs/T208xRDB.h | 2 +- include/configs/T4240RDB.h | 2 +- scripts/config_whitelist.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/board/freescale/common/ics307_clk.c b/board/freescale/common/ics307_clk.c index 01662d36e9fb..5f95571d24cc 100644 --- a/board/freescale/common/ics307_clk.c +++ b/board/freescale/common/ics307_clk.c @@ -50,7 +50,7 @@ static u8 ics307_s_to_od[] = { */ unsigned long ics307_sysclk_calculator(unsigned long out_freq) { - const unsigned long input_freq = CONFIG_ICS307_REFCLK_HZ; + const unsigned long input_freq = CFG_ICS307_REFCLK_HZ; unsigned long vdw, rdw, odp, s_vdw = 0, s_rdw = 0, s_odp = 0, od; unsigned long tmp_out, diff, result = 0; int found = 0; @@ -101,7 +101,7 @@ unsigned long ics307_sysclk_calculator(unsigned long out_freq) */ static unsigned long ics307_clk_freq(u8 cw0, u8 cw1, u8 cw2) { - const unsigned long input_freq = CONFIG_ICS307_REFCLK_HZ; + const unsigned long input_freq = CFG_ICS307_REFCLK_HZ; unsigned long vdw = ((cw1 << 1) & 0x1FE) + ((cw2 >> 7) & 1); unsigned long rdw = cw2 & 0x7F; unsigned long od = ics307_s_to_od[cw0 & 0x7]; diff --git a/include/configs/T208xQDS.h b/include/configs/T208xQDS.h index 0d245940dc0e..c614a539b391 100644 --- a/include/configs/T208xQDS.h +++ b/include/configs/T208xQDS.h @@ -13,7 +13,7 @@ #include -#define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ +#define CFG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ /* High Level Configuration Options */ diff --git a/include/configs/T208xRDB.h b/include/configs/T208xRDB.h index 28c59b4e66f8..2da4f5a09b14 100644 --- a/include/configs/T208xRDB.h +++ b/include/configs/T208xRDB.h @@ -13,7 +13,7 @@ #include -#define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ +#define CFG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ /* High Level Configuration Options */ diff --git a/include/configs/T4240RDB.h b/include/configs/T4240RDB.h index 640c12d91ab5..b8bfc52f07ae 100644 --- a/include/configs/T4240RDB.h +++ b/include/configs/T4240RDB.h @@ -12,7 +12,7 @@ #include -#define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ +#define CFG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ #ifdef CONFIG_RAMBOOT_PBL #ifndef CONFIG_SDCARD diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index e507dca614f5..9516ba848bfc 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -63,7 +63,7 @@ CFG_I2C_MVTWSI CFG_I2C_MVTWSI_BASE0 CFG_I2C_MVTWSI_BASE1 CFG_I2C_RTC_ADDR -CONFIG_ICS307_REFCLK_HZ +CFG_ICS307_REFCLK_HZ CONFIG_IMX6_PWM_PER_CLK CONFIG_IPADDR CONFIG_IRAM_BASE -- 2.25.1