summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-12-29 14:20:15 +0800
committerPeng Fan <peng.fan@nxp.com>2017-12-29 15:17:35 +0800
commit81223f7c281ba19a8acabc28cf2cd405bbb75365 (patch)
tree2e5bd5e2002b568aa2d7ee00e710eccc9a7636df
parent13a9fa8e8f215ed6aee1fde0e9f8eaaf9455a194 (diff)
MLK-17303-2 imx: 8qm: Fix ENET1 build
Fix ENET1 build and enablement. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit b799894c4e56a4afee0d7c8041bd49d718d0bd35)
-rw-r--r--board/freescale/imx8qm_mek/imx8qm_mek.c18
-rw-r--r--include/configs/imx8qm_mek.h7
2 files changed, 0 insertions, 25 deletions
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c
index a51827b587..1d5648b2a3 100644
--- a/board/freescale/imx8qm_mek/imx8qm_mek.c
+++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
@@ -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);
diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h
index a4037a8dce..8fdcf50f52 100644
--- a/include/configs/imx8qm_mek.h
+++ b/include/configs/imx8qm_mek.h
@@ -81,19 +81,12 @@
#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" \