MLK-17303-2 imx: 8qm: Fix ENET1 build
authorPeng Fan <peng.fan@nxp.com>
Fri, 29 Dec 2017 06:20:15 +0000 (14:20 +0800)
committerPeng Fan <peng.fan@nxp.com>
Fri, 29 Dec 2017 07:14:01 +0000 (15:14 +0800)
Fix ENET1 build and enablement.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/freescale/imx8qm_mek/imx8qm_mek.c
include/configs/imx8qm_mek.h

index a51827b..1d5648b 100644 (file)
@@ -163,24 +163,6 @@ int board_eth_init(bd_t *bis)
 
 int board_phy_config(struct phy_device *phydev)
 {
-#ifdef CONFIG_FEC_ENABLE_MAX7322
-       uint8_t value;
-
-       /* This is needed to drive the pads to 1.8V instead of 1.5V */
-       i2c_set_bus_num(CONFIG_MAX7322_I2C_BUS);
-
-       if (!i2c_probe(CONFIG_MAX7322_I2C_ADDR)) {
-               /* Write 0x1 to enable O0 output, this device has no addr */
-               /* hence addr length is 0 */
-               value = 0x1;
-               if (i2c_write(CONFIG_MAX7322_I2C_ADDR, 0, 0, &value, 1))
-                       printf("MAX7322 write failed\n");
-       } else {
-               printf("MAX7322 Not found\n");
-       }
-       mdelay(1);
-#endif
-
        phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x1f);
        phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x8);
 
index a4037a8..8fdcf50 100644 (file)
 #elif (CONFIG_FEC_ENET_DEV == 1)
 #define IMX_FEC_BASE                   0x5B050000
 #define CONFIG_FEC_MXC_PHYADDR          0x1
-#define CONFIG_FEC_ENABLE_MAX7322
 #define CONFIG_ETHPRIME                 "eth1"
 #endif
 
 /* ENET0 MDIO are shared */
 #define CONFIG_FEC_MXC_MDIO_BASE       0x5B040000
 
-/* MAX7322 */
-#ifdef CONFIG_FEC_ENABLE_MAX7322
-#define CONFIG_MAX7322_I2C_ADDR                0x68
-#define CONFIG_MAX7322_I2C_BUS         0 /* I2C0 */
-#endif
-
 /* Boot M4 */
 #define M4_BOOT_ENV \
        "m4_0_image=m4_0.bin\0" \