[PoC 144/241] global: Migrate CONFIG_PHY_BASE_ADR to CFG

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


Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/net/mvgbe.h            | 4 ++--
 include/configs/SBx81LIFKW.h   | 2 +-
 include/configs/SBx81LIFXCAT.h | 2 +-
 include/configs/dockstar.h     | 2 +-
 include/configs/dreamplug.h    | 2 +-
 include/configs/ds109.h        | 2 +-
 include/configs/goflexhome.h   | 2 +-
 include/configs/guruplug.h     | 2 +-
 include/configs/ib62x0.h       | 2 +-
 include/configs/iconnect.h     | 2 +-
 include/configs/nas220.h       | 2 +-
 include/configs/nsa310s.h      | 2 +-
 include/configs/openrd.h       | 4 ++--
 include/configs/pogo_e02.h     | 2 +-
 include/configs/pogo_v4.h      | 2 +-
 include/configs/sheevaplug.h   | 2 +-
 scripts/config_whitelist.txt   | 2 +-
 17 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/drivers/net/mvgbe.h b/drivers/net/mvgbe.h
index 44541c0a85e3..bc0c32957204 100644
--- a/drivers/net/mvgbe.h
+++ b/drivers/net/mvgbe.h
@@ -12,8 +12,8 @@
 #define __MVGBE_H__
 
 /* PHY_BASE_ADR is board specific and can be configured */
-#if defined (CONFIG_PHY_BASE_ADR)
-#define PHY_BASE_ADR		CONFIG_PHY_BASE_ADR
+#if defined (CFG_PHY_BASE_ADR)
+#define PHY_BASE_ADR		CFG_PHY_BASE_ADR
 #else
 #define PHY_BASE_ADR		0x08	/* default phy base addr */
 #endif
diff --git a/include/configs/SBx81LIFKW.h b/include/configs/SBx81LIFKW.h
index 861ae530336a..3585d5f1b021 100644
--- a/include/configs/SBx81LIFKW.h
+++ b/include/configs/SBx81LIFKW.h
@@ -44,7 +44,7 @@
  */
 #ifdef CONFIG_CMD_NET
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable a single port */
-#define CONFIG_PHY_BASE_ADR	0x01
+#define CFG_PHY_BASE_ADR	0x01
 #endif /* CONFIG_CMD_NET */
 
 #endif /* _CONFIG_SBX81LIFKW_H */
diff --git a/include/configs/SBx81LIFXCAT.h b/include/configs/SBx81LIFXCAT.h
index 418221ca72b3..4b1c9f995fb0 100644
--- a/include/configs/SBx81LIFXCAT.h
+++ b/include/configs/SBx81LIFXCAT.h
@@ -49,7 +49,7 @@
  */
 #ifdef CONFIG_CMD_NET
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable a single port */
-#define CONFIG_PHY_BASE_ADR	0x01
+#define CFG_PHY_BASE_ADR	0x01
 #endif /* CONFIG_CMD_NET */
 
 #endif /* _CONFIG_SBX81LIFXCAT_H */
diff --git a/include/configs/dockstar.h b/include/configs/dockstar.h
index 68afe96239e6..bef274431261 100644
--- a/include/configs/dockstar.h
+++ b/include/configs/dockstar.h
@@ -32,6 +32,6 @@
  * Ethernet Driver configuration
  */
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 
 #endif /* _CONFIG_DOCKSTAR_H */
diff --git a/include/configs/dreamplug.h b/include/configs/dreamplug.h
index 2b312e52b135..c258eadd6d9b 100644
--- a/include/configs/dreamplug.h
+++ b/include/configs/dreamplug.h
@@ -28,6 +28,6 @@
  * Ethernet Driver configuration
  */
 #define CFG_MVGBE_PORTS	{1, 1}	/* enable both ports */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 
 #endif /* _CONFIG_DREAMPLUG_H */
diff --git a/include/configs/ds109.h b/include/configs/ds109.h
index a5f62497a731..123ebf751f37 100644
--- a/include/configs/ds109.h
+++ b/include/configs/ds109.h
@@ -40,7 +40,7 @@
  */
 #ifdef CONFIG_CMD_NET
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable one port */
-#define CONFIG_PHY_BASE_ADR	8
+#define CFG_PHY_BASE_ADR	8
 #endif /* CONFIG_CMD_NET */
 
 #endif /* _CONFIG_DS109_H */
diff --git a/include/configs/goflexhome.h b/include/configs/goflexhome.h
index c10e991d6589..10f2715c8b2a 100644
--- a/include/configs/goflexhome.h
+++ b/include/configs/goflexhome.h
@@ -40,6 +40,6 @@
  * Ethernet Driver configuration
  */
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 
 #endif /* _CONFIG_GOFLEXHOME_H */
diff --git a/include/configs/guruplug.h b/include/configs/guruplug.h
index b21151e312c9..f78981c5b4e6 100644
--- a/include/configs/guruplug.h
+++ b/include/configs/guruplug.h
@@ -35,7 +35,7 @@
  */
 #ifdef CONFIG_CMD_NET
 #define CFG_MVGBE_PORTS	{1, 1}	/* enable both ports */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 #endif /* CONFIG_CMD_NET */
 
 #endif /* _CONFIG_GURUPLUG_H */
diff --git a/include/configs/ib62x0.h b/include/configs/ib62x0.h
index 5eeaeadd4bec..3dab13863051 100644
--- a/include/configs/ib62x0.h
+++ b/include/configs/ib62x0.h
@@ -29,7 +29,7 @@
  */
 #ifdef CONFIG_CMD_NET
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 #endif /* CONFIG_CMD_NET */
 
 /*
diff --git a/include/configs/iconnect.h b/include/configs/iconnect.h
index 12f8a3c933cc..bb0813053256 100644
--- a/include/configs/iconnect.h
+++ b/include/configs/iconnect.h
@@ -23,7 +23,7 @@
  */
 #ifdef CONFIG_CMD_NET
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	11
+#define CFG_PHY_BASE_ADR	11
 #endif /* CONFIG_CMD_NET */
 
 #endif /* _CONFIG_ICONNECT_H */
diff --git a/include/configs/nas220.h b/include/configs/nas220.h
index bfa132dbfe58..149a1e20af40 100644
--- a/include/configs/nas220.h
+++ b/include/configs/nas220.h
@@ -44,7 +44,7 @@
  */
 #ifdef CONFIG_CMD_NET
 #define CFG_MVGBE_PORTS {1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR 8
+#define CFG_PHY_BASE_ADR 8
 #endif /* CONFIG_CMD_NET */
 
 /*
diff --git a/include/configs/nsa310s.h b/include/configs/nsa310s.h
index 85cbd0bab07d..765268cba3ca 100644
--- a/include/configs/nsa310s.h
+++ b/include/configs/nsa310s.h
@@ -48,6 +48,6 @@
 
 /* Ethernet driver configuration */
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	1
+#define CFG_PHY_BASE_ADR	1
 
 #endif /* _CONFIG_NSA310S_H */
diff --git a/include/configs/openrd.h b/include/configs/openrd.h
index 1d1915a98520..413ca37e861d 100644
--- a/include/configs/openrd.h
+++ b/include/configs/openrd.h
@@ -43,10 +43,10 @@
 #  define CFG_MVGBE_PORTS	{1, 1}	/* enable both ports */
 # endif
 # ifdef CONFIG_BOARD_IS_OPENRD_ULTIMATE
-#  define CONFIG_PHY_BASE_ADR	0x0
+#  define CFG_PHY_BASE_ADR	0x0
 #  define PHY_NO		"88E1121"
 # else
-#  define CONFIG_PHY_BASE_ADR	0x8
+#  define CFG_PHY_BASE_ADR	0x8
 #  define PHY_NO		"88E1116"
 # endif
 #endif /* CONFIG_CMD_NET */
diff --git a/include/configs/pogo_e02.h b/include/configs/pogo_e02.h
index c48590123bd2..17fb475f56a7 100644
--- a/include/configs/pogo_e02.h
+++ b/include/configs/pogo_e02.h
@@ -27,6 +27,6 @@
  * Ethernet Driver configuration
  */
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 
 #endif /* _CONFIG_POGO_E02_H */
diff --git a/include/configs/pogo_v4.h b/include/configs/pogo_v4.h
index 5d26a45f1426..9d6064f1e631 100644
--- a/include/configs/pogo_v4.h
+++ b/include/configs/pogo_v4.h
@@ -73,6 +73,6 @@
  * Ethernet Driver configuration
  */
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 
 #endif /* _CONFIG_POGO_V4_H */
diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h
index d4d968285fbd..9f78e1ac9a27 100644
--- a/include/configs/sheevaplug.h
+++ b/include/configs/sheevaplug.h
@@ -25,6 +25,6 @@
  * Ethernet Driver configuration
  */
 #define CFG_MVGBE_PORTS	{1, 0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	0
+#define CFG_PHY_BASE_ADR	0
 
 #endif /* _CONFIG_SHEEVAPLUG_H */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index ca5faaeea1a3..5788c297fc21 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -153,7 +153,7 @@ CFG_OVERWRITE_ETHADDR_ONCE
 CFG_PCIE_IMX_PERST_GPIO
 CFG_PCIE_IMX_POWER_GPIO
 CFG_PEN_ADDR_BIG_ENDIAN
-CONFIG_PHY_BASE_ADR
+CFG_PHY_BASE_ADR
 CONFIG_PHY_ET1011C_TX_CLK_FIX
 CONFIG_PHY_ID
 CONFIG_PHY_INTERFACE_MODE
-- 
2.25.1



More information about the U-Boot mailing list