[PoC 138/241] global: Migrate CONFIG_ODROID_REV_AIN to CFG
Tom Rini
trini at konsulko.com
Sun Nov 20 15:07:28 CET 2022
Signed-off-by: Tom Rini <trini at konsulko.com>
---
board/samsung/common/exynos5-dt-types.c | 4 ++--
include/configs/odroid_xu3.h | 2 +-
scripts/config_whitelist.txt | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/samsung/common/exynos5-dt-types.c b/board/samsung/common/exynos5-dt-types.c
index 554fc91cc1a3..9294d36ba358 100644
--- a/board/samsung/common/exynos5-dt-types.c
+++ b/board/samsung/common/exynos5-dt-types.c
@@ -57,7 +57,7 @@ static int odroid_get_adc_val(unsigned int *adcval)
unsigned int adcval_prev = 0;
int ret, retries = 20;
- ret = adc_channel_single_shot("adc at 12D10000", CONFIG_ODROID_REV_AIN,
+ ret = adc_channel_single_shot("adc at 12D10000", CFG_ODROID_REV_AIN,
&adcval_prev);
if (ret)
return ret;
@@ -66,7 +66,7 @@ static int odroid_get_adc_val(unsigned int *adcval)
mdelay(5);
ret = adc_channel_single_shot("adc at 12D10000",
- CONFIG_ODROID_REV_AIN, adcval);
+ CFG_ODROID_REV_AIN, adcval);
if (ret)
return ret;
diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h
index 50213a383528..93f88ef53eba 100644
--- a/include/configs/odroid_xu3.h
+++ b/include/configs/odroid_xu3.h
@@ -60,7 +60,7 @@
#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K)
/* Set soc_rev, soc_id, board_rev, board_name, fdtfile */
-#define CONFIG_ODROID_REV_AIN 9
+#define CFG_ODROID_REV_AIN 9
/*
* Need to override existing one (smdk5420) with odroid so set_board_info will
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 9021044470ae..d8e9be8a82ef 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -147,7 +147,7 @@ CFG_NETDEV
CFG_NETMASK
CFG_NORBOOT
CFG_NUM_DSP_CPUS
-CONFIG_ODROID_REV_AIN
+CFG_ODROID_REV_AIN
CONFIG_OTHBOOTARGS
CONFIG_OVERWRITE_ETHADDR_ONCE
CONFIG_PCIE_IMX_PERST_GPIO
--
2.25.1
More information about the U-Boot
mailing list