[PoC 146/241] global: Migrate CONFIG_PHY_ID to CFG

Tom Rini trini at konsulko.com
Sun Nov 20 15:07:36 CET 2022


Signed-off-by: Tom Rini <trini at konsulko.com>
---
 board/egnite/ethernut5/ethernut5.c | 2 +-
 include/configs/ethernut5.h        | 2 +-
 scripts/config_whitelist.txt       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/egnite/ethernut5/ethernut5.c b/board/egnite/ethernut5/ethernut5.c
index ceb0d2cf0aa3..9953df017e19 100644
--- a/board/egnite/ethernut5/ethernut5.c
+++ b/board/egnite/ethernut5/ethernut5.c
@@ -160,7 +160,7 @@ int board_eth_init(struct bd_info *bis)
 	/* Set peripheral pins. */
 	at91_macb_hw_init();
 	/* Basic EMAC initialization. */
-	if (macb_eth_initialize(0, (void *)ATMEL_BASE_EMAC0, CONFIG_PHY_ID))
+	if (macb_eth_initialize(0, (void *)ATMEL_BASE_EMAC0, CFG_PHY_ID))
 		return -1;
 	/*
 	 * Early board revisions have a pull-down at the PHY's MODE0
diff --git a/include/configs/ethernut5.h b/include/configs/ethernut5.h
index 2859188e60c9..18c643478f76 100644
--- a/include/configs/ethernut5.h
+++ b/include/configs/ethernut5.h
@@ -48,7 +48,7 @@
 /* JFFS2 */
 
 /* Ethernet */
-#define CONFIG_PHY_ID			0
+#define CFG_PHY_ID			0
 #define CFG_MACB_SEARCH_PHY
 
 /* MMC */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index ebbc0b068611..664b59d44050 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -155,7 +155,7 @@ CFG_PCIE_IMX_POWER_GPIO
 CFG_PEN_ADDR_BIG_ENDIAN
 CFG_PHY_BASE_ADR
 CFG_PHY_ET1011C_TX_CLK_FIX
-CONFIG_PHY_ID
+CFG_PHY_ID
 CONFIG_PHY_INTERFACE_MODE
 CONFIG_PHY_IRAM_BASE
 CONFIG_PL011_CLOCK
-- 
2.25.1



More information about the U-Boot mailing list