[PoC 062/241] global: Migrate CONFIG_IMX6_PWM_PER_CLK to CFG
Tom Rini
trini at konsulko.com
Sun Nov 20 14:30:53 CET 2022
Signed-off-by: Tom Rini <trini at konsulko.com>
---
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
More information about the U-Boot
mailing list