global: Migrate CONFIG_FEC_MXC_PHYADDR to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:03:53 +0000 (10:03 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:09:42 +0000 (10:09 -0500)
Perform a simple rename of CONFIG_FEC_MXC_PHYADDR to CFG_FEC_MXC_PHYADDR

Signed-off-by: Tom Rini <trini@konsulko.com>
38 files changed:
board/compulab/cl-som-imx7/cl-som-imx7.c
board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
doc/README.fec_mxc
drivers/net/fec_mxc.c
include/configs/aristainetos2.h
include/configs/capricorn-common.h
include/configs/cgtqmx8.h
include/configs/cl-som-imx7.h
include/configs/cm_fx6.h
include/configs/imx6_logic.h
include/configs/imx6dl-mamoj.h
include/configs/imx8mm-cl-iot-gate.h
include/configs/imx8mm_evk.h
include/configs/imx8mp_evk.h
include/configs/imx8mp_icore_mx8mp.h
include/configs/imx8mp_rsb3720.h
include/configs/imx8mq_evk.h
include/configs/imx8mq_phanbell.h
include/configs/imx8ulp_evk.h
include/configs/kontron_pitx_imx8m.h
include/configs/liteboard.h
include/configs/m53menlo.h
include/configs/mccmon6.h
include/configs/msc_sm2s_imx8mp.h
include/configs/mx6sxsabreauto.h
include/configs/mx6sxsabresd.h
include/configs/mx6ul_14x14_evk.h
include/configs/nitrogen6x.h
include/configs/npi_imx6ull.h
include/configs/pico-imx6.h
include/configs/pico-imx6ul.h
include/configs/pico-imx8mq.h
include/configs/somlabs_visionsom_6ull.h
include/configs/tqma6_mba6.h
include/configs/tqma6_wru4.h
include/configs/vf610twr.h
include/configs/vining_2000.h
include/configs/xpress.h

index 9733a33..1b08a2c 100644 (file)
@@ -214,7 +214,7 @@ int board_eth_init(struct bd_info *bis)
        gpio_set_value(CL_SOM_IMX7_ETH1_PHY_NRST, 1);
        /* MAC initialization */
        return fecmxc_initialize_multi(bis, CL_SOM_IMX7_FEC_DEV_ID_PRI,
-                                      CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE);
+                                      CFG_FEC_MXC_PHYADDR, IMX_FEC_BASE);
 }
 
 /*
index 7340a34..9205d5e 100644 (file)
@@ -104,7 +104,7 @@ int board_eth_init(struct bd_info *bis)
        setup_fec();
 
        ret = fecmxc_initialize_multi(bis, 1,
-               CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE);
+               CFG_FEC_MXC_PHYADDR, IMX_FEC_BASE);
        if (ret)
                printf("FEC%d MXC: %s:failed\n", 1, __func__);
 
index 4e890d3..2ccd428 100644 (file)
@@ -18,7 +18,7 @@ CONFIG_PHYLIB
 CONFIG_FEC_MXC_NO_ANEG
        Relevant only if PHYLIB not used. Skips auto-negotiation restart.
 
-CONFIG_FEC_MXC_PHYADDR
+CFG_FEC_MXC_PHYADDR
        Optional, selects the exact phy address that should be connected
        and function fecmxc_initialize will try to initialize it.
 
index 9cb235a..ab52cc1 100644 (file)
@@ -1086,8 +1086,8 @@ static int fec_phy_init(struct fec_priv *priv, struct udevice *dev)
        int addr;
 
        addr = device_get_phy_addr(priv, dev);
-#ifdef CONFIG_FEC_MXC_PHYADDR
-       addr = CONFIG_FEC_MXC_PHYADDR;
+#ifdef CFG_FEC_MXC_PHYADDR
+       addr = CFG_FEC_MXC_PHYADDR;
 #endif
 
        phydev = phy_connect(priv->bus, addr, dev, priv->interface);
index a6e9d2b..be1478e 100644 (file)
@@ -26,7 +26,7 @@
 /* MMC Configs */
 #define CFG_SYS_FSL_ESDHC_ADDR      USDHC1_BASE_ADDR
 
-#define CONFIG_FEC_MXC_PHYADDR         0
+#define CFG_FEC_MXC_PHYADDR            0
 
 #ifdef CONFIG_IMX_HAB
 #define HAB_EXTRA_SETTINGS \
index 63afa6e..19c7fca 100644 (file)
@@ -20,7 +20,7 @@
 
 /* ENET1 connects to base board and MUX with ESAI */
 #define CFG_FEC_ENET_DEV               1
-#define CONFIG_FEC_MXC_PHYADDR         0x0
+#define CFG_FEC_MXC_PHYADDR            0x0
 
 /* EEPROM */
 #define  EEPROM_I2C_BUS                0 /* I2C0 */
index 2639818..caa1498 100644 (file)
 #define PHYS_SDRAM_2_SIZE              0x100000000     /* 4 GB */
 
 /* Networking */
-#define CONFIG_FEC_MXC_PHYADDR         -1
+#define CFG_FEC_MXC_PHYADDR            -1
 
 #endif /* __CGTQMX8_H */
index 2d56d37..cde7d3c 100644 (file)
@@ -13,7 +13,7 @@
 #define CONFIG_MXC_UART_BASE            UART1_IPS_BASE_ADDR
 
 /* Network */
-#define CONFIG_FEC_MXC_PHYADDR          0
+#define CFG_FEC_MXC_PHYADDR          0
 
 /* ENET1 */
 #define IMX_FEC_BASE                   ENET_IPS_BASE_ADDR
index c66cf72..47b76c9 100644 (file)
 /* APBH DMA is required for NAND support */
 
 /* Ethernet */
-#define CONFIG_FEC_MXC_PHYADDR         0
+#define CFG_FEC_MXC_PHYADDR            0
 
 /* USB */
 #define CONFIG_MXC_USB_PORTSC          (PORT_PTS_UTMI | PORT_PTS_PTW)
index 0df6191..121b34a 100644 (file)
@@ -19,7 +19,7 @@
 
 
 /* Ethernet Configs */
-#define CONFIG_FEC_MXC_PHYADDR         0
+#define CFG_FEC_MXC_PHYADDR         0
 
 #define CFG_EXTRA_ENV_SETTINGS \
        "script=boot.scr\0" \
index b6006c0..162b0b8 100644 (file)
@@ -40,7 +40,7 @@
 /* MMC */
 
 /* Ethernet */
-#define CONFIG_FEC_MXC_PHYADDR         1
+#define CFG_FEC_MXC_PHYADDR            1
 
 /* USB */
 #define CONFIG_MXC_USB_PORTSC                  (PORT_PTS_UTMI | PORT_PTS_PTW)
index 00ce7fb..7785bdc 100644 (file)
 #define CFG_SYS_FSL_USDHC_NUM  2
 #define CFG_SYS_FSL_ESDHC_ADDR 0
 
-#define CONFIG_FEC_MXC_PHYADDR         0
+#define CFG_FEC_MXC_PHYADDR            0
 
 /* USB Configs */
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
index d28f3f1..c364e06 100644 (file)
@@ -61,6 +61,6 @@
 #define PHYS_SDRAM                      0x40000000
 #define PHYS_SDRAM_SIZE                        0x80000000 /* 2GB DDR */
 
-#define CONFIG_FEC_MXC_PHYADDR          0
+#define CFG_FEC_MXC_PHYADDR          0
 
 #endif
index c6e3b10..1fea5b7 100644 (file)
@@ -13,7 +13,7 @@
 #define CFG_SYS_UBOOT_BASE     (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR          1
+#define CFG_FEC_MXC_PHYADDR          1
 
 #define PHY_ANEG_TIMEOUT 20000
 
index c3abcee..bbbd917 100644 (file)
@@ -14,7 +14,7 @@
 #define CFG_SYS_UBOOT_BASE     (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR          1
+#define CFG_FEC_MXC_PHYADDR          1
 
 #define DWC_NET_PHYADDR                        1
 
index ed4da0e..38ae5f1 100644 (file)
@@ -39,7 +39,7 @@
 /* ENET Config */
 /* ENET1 */
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR          4
+#define CFG_FEC_MXC_PHYADDR          4
 
 #define PHY_ANEG_TIMEOUT 20000
 
index c404487..d9ce5d5 100644 (file)
@@ -24,7 +24,7 @@
 /* ENET Config */
 /* ENET1 */
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR          0
+#define CFG_FEC_MXC_PHYADDR          0
 #endif
 
 #define BOOT_TARGET_DEVICES(func) \
index 8fed3e3..eb7059f 100644 (file)
@@ -21,7 +21,7 @@
 /* ENET Config */
 /* ENET1 */
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR          0
+#define CFG_FEC_MXC_PHYADDR          0
 #endif
 
 #define CONFIG_MFG_ENV_SETTINGS \
index 30dd5af..b7397f6 100644 (file)
@@ -21,7 +21,7 @@
 #if defined(CONFIG_FEC_MXC)
 #define PHY_ANEG_TIMEOUT               20000
 
-#define CONFIG_FEC_MXC_PHYADDR         1
+#define CFG_FEC_MXC_PHYADDR            1
 #endif
 
 #ifdef CONFIG_DISTRO_DEFAULTS
index d909bbb..4dd51c7 100644 (file)
@@ -25,7 +25,7 @@
 
 /* ENET1 Config */
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR          0
+#define CFG_FEC_MXC_PHYADDR          0
 
 #define PHY_ANEG_TIMEOUT               20000
 
index 7200c69..0b8781d 100644 (file)
 #ifdef CONFIG_CMD_NET
 #define CFG_FEC_ENET_DEV               0
 
-#define CONFIG_FEC_MXC_PHYADDR         0x0
+#define CFG_FEC_MXC_PHYADDR            0x0
 #endif
 
 #endif
index 0deb767..de6928d 100644 (file)
@@ -54,7 +54,7 @@
  * Ethernet on SOC (FEC)
  */
 #ifdef CONFIG_CMD_NET
-#define CONFIG_FEC_MXC_PHYADDR         0x0
+#define CFG_FEC_MXC_PHYADDR            0x0
 #endif
 
 #define CFG_SYS_RTC_BUS_NUM            1 /* I2C2 */
index 436f5f0..6cc4937 100644 (file)
@@ -31,7 +31,7 @@
 #define CFG_SYS_FLASH_BANKS_SIZES      { (32 * SZ_1M) }
 
 /* Ethernet Configuration */
-#define CONFIG_FEC_MXC_PHYADDR         1
+#define CFG_FEC_MXC_PHYADDR            1
 
 #define CFG_EXTRA_ENV_SETTINGS \
        "console=ttymxc0,115200 quiet\0" \
index ef2111c..1cd0b3c 100644 (file)
@@ -17,7 +17,7 @@
 #define CFG_SYS_UBOOT_BASE     (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
 
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR          1
+#define CFG_FEC_MXC_PHYADDR          1
 #define PHY_ANEG_TIMEOUT 20000
 #endif
 
index 9d8737c..3399cdd 100644 (file)
@@ -93,7 +93,7 @@
 /* Network */
 
 #define IMX_FEC_BASE                   ENET2_BASE_ADDR
-#define CONFIG_FEC_MXC_PHYADDR          0x0
+#define CFG_FEC_MXC_PHYADDR          0x0
 
 #ifdef CONFIG_CMD_USB
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
index 8372f97..c99d99a 100644 (file)
 
 /* Network */
 
-#define CONFIG_FEC_MXC_PHYADDR          0x1
+#define CFG_FEC_MXC_PHYADDR          0x1
 
 #ifdef CONFIG_CMD_USB
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
index efc599f..5e3695e 100644 (file)
 #define CFG_FEC_ENET_DEV               1
 
 #if (CFG_FEC_ENET_DEV == 0)
-#define CONFIG_FEC_MXC_PHYADDR          0x2
+#define CFG_FEC_MXC_PHYADDR          0x2
 #elif (CFG_FEC_ENET_DEV == 1)
-#define CONFIG_FEC_MXC_PHYADDR         0x1
+#define CFG_FEC_MXC_PHYADDR            0x1
 #endif
 #endif
 
index 496a316..aca15be 100644 (file)
@@ -18,7 +18,7 @@
 #define CFG_SYS_FSL_USDHC_NUM       2
 
 #define IMX_FEC_BASE                   ENET_BASE_ADDR
-#define CONFIG_FEC_MXC_PHYADDR         6
+#define CFG_FEC_MXC_PHYADDR            6
 
 /* USB Configs */
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
index 979512c..4b47e4f 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MXC_USB_FLAGS           0
 
 #ifdef CONFIG_CMD_NET
-#define CONFIG_FEC_MXC_PHYADDR         0x1
+#define CFG_FEC_MXC_PHYADDR            0x1
 #endif
 
 #define CFG_FEC_ENET_DEV               1
index 66258a3..e1f7b70 100644 (file)
@@ -98,6 +98,6 @@
 /* Environment organization */
 
 /* Ethernet Configuration */
-#define CONFIG_FEC_MXC_PHYADDR         1
+#define CFG_FEC_MXC_PHYADDR            1
 
 #endif                        /* __CONFIG_H * */
index 45fc612..1cb8fa6 100644 (file)
@@ -15,7 +15,7 @@
 
 /* Network support */
 
-#define CONFIG_FEC_MXC_PHYADDR         0x1
+#define CFG_FEC_MXC_PHYADDR            0x1
 
 #define CONFIG_MXC_UART_BASE           UART6_BASE_ADDR
 
index ac25991..1d87091 100644 (file)
@@ -21,7 +21,7 @@
 /* ENET Config */
 /* ENET1 */
 #if defined(CONFIG_CMD_NET)
-#define CONFIG_FEC_MXC_PHYADDR         1
+#define CFG_FEC_MXC_PHYADDR            1
 #endif
 
 /* Initial environment variables */
index e132805..3418d4e 100644 (file)
@@ -66,7 +66,7 @@
 #endif
 
 #ifdef CONFIG_CMD_NET
-#define CONFIG_FEC_MXC_PHYADDR         0x1
+#define CFG_FEC_MXC_PHYADDR            0x1
 #endif
 
 #endif
index 899c218..a5f14dc 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef __CONFIG_TQMA6_MBA6_H
 #define __CONFIG_TQMA6_MBA6_H
 
-#define CONFIG_FEC_MXC_PHYADDR         0x03
+#define CFG_FEC_MXC_PHYADDR            0x03
 
 #define CONFIG_MXC_UART_BASE           UART2_BASE
 #define CONSOLE_DEV            "ttymxc1"
index 4d8839b..34c9b6a 100644 (file)
@@ -7,7 +7,7 @@
 #define __CONFIG_TQMA6_WRU4_H
 
 /* Ethernet */
-#define CONFIG_FEC_MXC_PHYADDR         0x01
+#define CFG_FEC_MXC_PHYADDR            0x01
 
 /* UART */
 #define CONFIG_MXC_UART_BASE           UART4_BASE
index 0e0b3a7..d10b88f 100644 (file)
@@ -21,7 +21,7 @@
 
 #define CFG_SYS_FSL_ESDHC_ADDR 0
 
-#define CONFIG_FEC_MXC_PHYADDR          0
+#define CFG_FEC_MXC_PHYADDR          0
 
 /* I2C Configs */
 
index 1a71b30..c84353e 100644 (file)
@@ -34,7 +34,7 @@
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 
 /* Network */
-#define CONFIG_FEC_MXC_PHYADDR          0x0
+#define CFG_FEC_MXC_PHYADDR          0x0
 
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
 #define CONFIG_MXC_USB_FLAGS   0
index 13f0ee6..96996ac 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_MXC_USB_FLAGS           0
 
 #define CFG_FEC_ENET_DEV               0
-#define CONFIG_FEC_MXC_PHYADDR          0x0
+#define CFG_FEC_MXC_PHYADDR          0x0
 
 #define CFG_EXTRA_ENV_SETTINGS \
        "script=boot.scr\0" \