From patchwork Sun Dec 4 15:04:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1711917 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=bIt4YBZN; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NQ9Gt0DBMz23mf for ; Mon, 5 Dec 2022 02:15:34 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A35CE8551E; Sun, 4 Dec 2022 16:08:26 +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="bIt4YBZN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 741C1853F7; Sun, 4 Dec 2022 16:06:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 2177B85490 for ; Sun, 4 Dec 2022 16:06:51 +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-ed1-x536.google.com with SMTP id e13so12542479edj.7 for ; Sun, 04 Dec 2022 07:06:51 -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=9uRD/MZryUuUxRjOQf0EMeIpe28ahoGUzP5kfko+BEg=; b=bIt4YBZNJRCxFy6vyQ/j1OU3EfPvk8JN7Vk9nBYJ9ZFanKyOvAralM2rnpb/pSereF m3NlR8aHT8pF0DF5zURDKpiH153Dti0ShHkyVa6eD4WymSUkYb3ESuv5vkzI4qkoGc+P amnwl6LSmKAbI6HQ0XyvnpWu+VqkEdpv748WE= 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=9uRD/MZryUuUxRjOQf0EMeIpe28ahoGUzP5kfko+BEg=; b=cd8MEhmE1SBQ3yrUsUAKi8mxzIgBrLklWOBF1hkaf4a7PhBxUMT8x/upgiLNIO2ebS 3cBGtBGvXFWHJbzYAOl29GzpQfDLRk5bEyEyTg6S+UHg8MFwcYEbZbJ6cVBH13v/jkOx IN4TpUKOQ0VWYyEXe5KmfAG0+x3jcxwchCQxmYdyfk77BEROFm1tECFrMZ3WIBZGYK4N gBtD2GmXVF97yAO0qKhW0zHotpHEmvrf5q39hSO4cVoagKteqCjuG0Ol/j2VFaIxW8q5 yNN0BA7cuPmtPYBxmihLATeqzOYbb5G66NMvoxXIi+qf5kqXavqQPXu3xOZ19zz1pUKF V8EQ== X-Gm-Message-State: ANoB5pnzSzv6wMieajjjE5lpwWfwmSFdhLTmpH1cJo5JgVmnwHBhQTD2 XZ7kCewNv/xOCMLRmPhdiY+c3NNhx3gnHhDP X-Google-Smtp-Source: AA0mqf6I5Y+M+SApo5XF6U8bmZK+1YPxKpczWyNXzXhOvJOivEpW2PCNK6HCuaHVfrs1yqKag2IBNg== X-Received: by 2002:a50:fc91:0:b0:46c:673b:93ac with SMTP id f17-20020a50fc91000000b0046c673b93acmr4921257edq.317.1670166410407; Sun, 04 Dec 2022 07:06:50 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-61c7-2644-b62d-0af3.res6.spectrum.com. [2603:6081:7b00:6400:61c7:2644:b62d:af3]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b0073dc5bb7c32sm5240058eja.64.2022.12.04.07.06.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 07:06:49 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 047/149] global: Migrate CONFIG_IMX6_PWM_PER_CLK to CFG Date: Sun, 4 Dec 2022 10:04:12 -0500 Message-Id: <20221204150554.4165941-47-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221204150554.4165941-1-trini@konsulko.com> References: <20221202214251.3027264-41-trini@konsulko.com> <20221204150554.4165941-1-trini@konsulko.com> MIME-Version: 1.0 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 Perform a simple rename of CONFIG_IMX6_PWM_PER_CLK to CFG_IMX6_PWM_PER_CLK Signed-off-by: Tom Rini --- drivers/pwm/pwm-imx.c | 2 +- include/configs/vining_2000.h | 2 +- 2 files changed, 2 insertions(+), 2 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. */