Drop CFG_SH_ETHER_PHY_ADDR from README and configuration files, this
value is never used, PHY address is extracted from control DT instead.
No functional change intended.

Signed-off-by: Marek Vasut <marek.vasut+rene...@mailbox.org>
---
Cc: Heinrich Schuchardt <xypron.g...@gmx.de>
Cc: Joe Hershberger <joe.hershber...@ni.com>
Cc: Masakazu Mochizuki <masakazu.mochizuki...@hitachi.com>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu...@renesas.com>
Cc: Ramon Fried <rfried....@gmail.com>
Cc: Simon Glass <s...@chromium.org>
Cc: Tom Rini <tr...@konsulko.com>
Cc: u-boot@lists.denx.de
---
 README                    | 3 ---
 drivers/net/sh_eth.c      | 4 ----
 include/configs/alt.h     | 1 -
 include/configs/condor.h  | 1 -
 include/configs/gose.h    | 1 -
 include/configs/grpeach.h | 1 -
 include/configs/koelsch.h | 1 -
 include/configs/lager.h   | 1 -
 include/configs/porter.h  | 1 -
 include/configs/silk.h    | 1 -
 include/configs/stout.h   | 1 -
 include/configs/v3hsk.h   | 1 -
 12 files changed, 17 deletions(-)

diff --git a/README b/README
index 7acf39540c2..dbf66bd83ac 100644
--- a/README
+++ b/README
@@ -379,9 +379,6 @@ The following options need to be configured:
                CONFIG_SH_ETHER
                Support for Renesas on-chip Ethernet controller
 
-                       CFG_SH_ETHER_PHY_ADDR
-                       Define the ETH PHY's address
-
 - TPM Support:
                CONFIG_TPM
                Support TPM devices.
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 4d9cdf17b46..1160c1d6cfa 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -29,10 +29,6 @@
 
 #include "sh_eth.h"
 
-#ifndef CFG_SH_ETHER_PHY_ADDR
-# error "Please define CFG_SH_ETHER_PHY_ADDR"
-#endif
-
 static void flush_cache_wback(void *addr, unsigned long len)
 {
        flush_dcache_range((unsigned long)addr,
diff --git a/include/configs/alt.h b/include/configs/alt.h
index 987fd25bb4c..7db01cedb8b 100644
--- a/include/configs/alt.h
+++ b/include/configs/alt.h
@@ -21,7 +21,6 @@
 #define RCAR_GEN2_UBOOT_SDRAM_SIZE     (512 * 1024 * 1024)
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/condor.h b/include/configs/condor.h
index b2d66c785fc..3be0f99ec4b 100644
--- a/include/configs/condor.h
+++ b/include/configs/condor.h
@@ -14,7 +14,6 @@
 /* Environment compatibility */
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/gose.h b/include/configs/gose.h
index acef925855a..a5537ee30b2 100644
--- a/include/configs/gose.h
+++ b/include/configs/gose.h
@@ -20,7 +20,6 @@
 #define RCAR_GEN2_UBOOT_SDRAM_SIZE     (512u * 1024 * 1024)
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/grpeach.h b/include/configs/grpeach.h
index 9a7eef57c87..9c47fbf1c90 100644
--- a/include/configs/grpeach.h
+++ b/include/configs/grpeach.h
@@ -17,7 +17,6 @@
 #define CFG_SYS_SDRAM_SIZE             (10 * 1024 * 1024)
 
 /* Network interface */
-#define CFG_SH_ETHER_PHY_ADDR  0
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
 
 #endif /* __GRPEACH_H */
diff --git a/include/configs/koelsch.h b/include/configs/koelsch.h
index 13d2127ac13..cc6266d4d6c 100644
--- a/include/configs/koelsch.h
+++ b/include/configs/koelsch.h
@@ -20,7 +20,6 @@
 #define RCAR_GEN2_UBOOT_SDRAM_SIZE     (512 * 1024 * 1024)
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/lager.h b/include/configs/lager.h
index d76f003e391..f59f44f1862 100644
--- a/include/configs/lager.h
+++ b/include/configs/lager.h
@@ -21,7 +21,6 @@
 #define RCAR_GEN2_UBOOT_SDRAM_SIZE     (512 * 1024 * 1024)
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/porter.h b/include/configs/porter.h
index eaf5d31c1d3..265a0d775a3 100644
--- a/include/configs/porter.h
+++ b/include/configs/porter.h
@@ -22,7 +22,6 @@
 #define RCAR_GEN2_UBOOT_SDRAM_SIZE     (1024u * 1024 * 1024)
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/silk.h b/include/configs/silk.h
index 4ef70281dda..459b9b86797 100644
--- a/include/configs/silk.h
+++ b/include/configs/silk.h
@@ -22,7 +22,6 @@
 #define RCAR_GEN2_UBOOT_SDRAM_SIZE     (512 * 1024 * 1024)
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/stout.h b/include/configs/stout.h
index cb544de243e..d1accb90d9f 100644
--- a/include/configs/stout.h
+++ b/include/configs/stout.h
@@ -26,7 +26,6 @@
 #define CFG_SCIF_A
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x1
 #define CFG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_RMII
 
 /* Board Clock */
diff --git a/include/configs/v3hsk.h b/include/configs/v3hsk.h
index a8d1641b36e..c5685b4c6c1 100644
--- a/include/configs/v3hsk.h
+++ b/include/configs/v3hsk.h
@@ -15,7 +15,6 @@
 /* Environment compatibility */
 
 /* SH Ether */
-#define CFG_SH_ETHER_PHY_ADDR  0x0
 #define CFG_SH_ETHER_PHY_MODE  PHY_INTERFACE_MODE_RGMII_ID
 
 /* Board Clock */
-- 
2.47.2

Reply via email to