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 EBA81C433FE for ; Sun, 20 Nov 2022 13:44:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E8DB985349; Sun, 20 Nov 2022 14:35:32 +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="OiXiommM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B192C852B4; Sun, 20 Nov 2022 14:34:44 +0100 (CET) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (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 5440685280 for ; Sun, 20 Nov 2022 14:34:39 +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-qk1-x734.google.com with SMTP id s20so6511730qkg.5 for ; Sun, 20 Nov 2022 05:34:39 -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=57erM5JMbXoN1QDywUfXyL9BIxVaq2/ZeJjbQqFRoOc=; b=OiXiommMrheQIrg+HpAMk0yDmxjTKDrmK6i7WrFijC6ibGrQGLaKz2CFJTajES9UXD phUy0xcM2cLyJbBCxYMUrcbNksIfvHFGbwqLtfZgaNTWsBZsTAevwbzz79TUEYiBdRKa 8ZURvr5YNXAKCS6Ay98NuyDtrfNMibX13KLEI= 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=57erM5JMbXoN1QDywUfXyL9BIxVaq2/ZeJjbQqFRoOc=; b=bwNOKXEGxWfHTdRrxZ+DHUkYQhp5L7XDffDuUWxrIh4Jgi+ZwC8kR8haaUjuz5V6qi Gc8l2MH1l8LRj0QvJOe0PRs/BN0Omj37WxivuIfGqJtfdzdP0+eRC7KoiI3xCu4YeDQo FIUg37Ii3W+OZp8fN1VpU1WeMUGS2JQaYPKHEc+yrIPW1eGv+eTRqOXtFYVx5Xul6YAw QzpY8bzCWdH5++t9AMHhSf2SNuPdcJh+J/Keka67aWl02/oLyBga96lgbqcdTTSNA59K 1GZWF/8s4ytOGw1bcBALAKBKV2LFCeaxzkoglbroCL6Zjmi4mIPJQtYYOBRvKrHA4Ym8 BxYw== X-Gm-Message-State: ANoB5pkvLWRg3uxmHmDtNK1gT9/64EF1tzEnA6/OZt31xaR2Vn3Evga9 L3X/mNg3HDxYxT8e4i0amZOgfr9KcPoWtw== X-Google-Smtp-Source: AA0mqf5cNLmqzKf2853ziKDzwIWK3KzHhjRAlYYYM9dbmrWUL82CwGNHPiFobBBEkT6Qa2RzkhGJUw== X-Received: by 2002:a37:ac05:0:b0:6fb:4ef0:3f38 with SMTP id e5-20020a37ac05000000b006fb4ef03f38mr12947011qkm.439.1668951278712; 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.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 05:34:38 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 062/241] global: Migrate CONFIG_IMX6_PWM_PER_CLK to CFG Date: Sun, 20 Nov 2022 08:30:53 -0500 Message-Id: <20221120133352.3055600-63-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 --- drivers/pwm/pwm-imx.c | 2 +- include/configs/vining_2000.h | 2 +- scripts/config_whitelist.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 9b8a8c189d09..8fbb40cc2767 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -76,7 +76,7 @@ int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c, * value here as a define. Replace it when we have the clock * framework. */ - c = CONFIG_IMX6_PWM_PER_CLK; + c = CFG_IMX6_PWM_PER_CLK; c = c * period_ns; do_div(c, 1000000000); *period_c = c; diff --git a/include/configs/vining_2000.h b/include/configs/vining_2000.h index c84353ebea66..cdd2eeef0ac9 100644 --- a/include/configs/vining_2000.h +++ b/include/configs/vining_2000.h @@ -43,7 +43,7 @@ #define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(4, 6) #endif -#define CONFIG_IMX6_PWM_PER_CLK 66000000 +#define CFG_IMX6_PWM_PER_CLK 66000000 #ifdef CONFIG_ENV_IS_IN_MMC /* 0=user, 1=boot0, 2=boot1, * 4..7=general0..3. */ diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 9516ba848bfc..48de265ee7e1 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -64,7 +64,7 @@ CFG_I2C_MVTWSI_BASE0 CFG_I2C_MVTWSI_BASE1 CFG_I2C_RTC_ADDR CFG_ICS307_REFCLK_HZ -CONFIG_IMX6_PWM_PER_CLK +CFG_IMX6_PWM_PER_CLK CONFIG_IPADDR CONFIG_IRAM_BASE CONFIG_IRAM_END -- 2.25.1