All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ye Li <ye.li@nxp.com>
To: sbabic@denx.de, u-boot@lists.denx.de, festevam@gmail.com,
	peng.fan@nxp.com
Cc: uboot-imx@nxp.com, marex@denx.de, rfried.dev@gmail.com,
	s.arendt@sensopart.de
Subject: [PATCH 5/7] imx8mp_evk: Remove EQoS PHY reset codes
Date: Mon, 16 Aug 2021 18:44:30 +0800	[thread overview]
Message-ID: <1629110672-28374-5-git-send-email-ye.li@nxp.com> (raw)
In-Reply-To: <1629110672-28374-1-git-send-email-ye.li@nxp.com>

Since we uses the DTS and PHY reset gpio in EQoS driver to do the
reset, remove the duplicated codes from board file.

Signed-off-by: Ye Li <ye.li@nxp.com>
---
 board/freescale/imx8mp_evk/imx8mp_evk.c | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/board/freescale/imx8mp_evk/imx8mp_evk.c b/board/freescale/imx8mp_evk/imx8mp_evk.c
index bc4753c..62096c2 100644
--- a/board/freescale/imx8mp_evk/imx8mp_evk.c
+++ b/board/freescale/imx8mp_evk/imx8mp_evk.c
@@ -54,30 +54,11 @@ static void setup_fec(void)
 	setbits_le32(&gpr->gpr[1], BIT(22));
 }
 
-#define EQOS_RST_PAD IMX_GPIO_NR(4, 22)
-static iomux_v3_cfg_t const eqos_rst_pads[] = {
-	MX8MP_PAD_SAI2_RXC__GPIO4_IO22 | MUX_PAD_CTRL(NO_PAD_CTRL),
-};
-
-static void setup_iomux_eqos(void)
-{
-	imx_iomux_v3_setup_multiple_pads(eqos_rst_pads,
-					 ARRAY_SIZE(eqos_rst_pads));
-
-	gpio_request(EQOS_RST_PAD, "eqos_rst");
-	gpio_direction_output(EQOS_RST_PAD, 0);
-	mdelay(15);
-	gpio_direction_output(EQOS_RST_PAD, 1);
-	mdelay(100);
-}
-
 static int setup_eqos(void)
 {
 	struct iomuxc_gpr_base_regs *gpr =
 		(struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR;
 
-	setup_iomux_eqos();
-
 	/* set INTF as RGMII, enable RGMII TXC clock */
 	clrsetbits_le32(&gpr->gpr[1],
 			IOMUXC_GPR_GPR1_GPR_ENET_QOS_INTF_SEL_MASK, BIT(16));
-- 
2.7.4


  parent reply	other threads:[~2021-08-16 10:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-16 10:44 [PATCH 1/7] arm: mach-imx: Update MAC fuse for i.MX8MP Ye Li
2021-08-16 10:44 ` [PATCH 2/7] arm: mach-imx: Allow to build mac.c for EQoS driver Ye Li
2021-10-21 14:13   ` sbabic
2021-08-16 10:44 ` [PATCH 3/7] arm: dts: imx8mp-evk: Enable the EQoS ethernet port Ye Li
2021-10-21 14:12   ` sbabic
2021-08-16 10:44 ` [PATCH 4/7] imx8mp_evk: Fix incorrect cascade for FEC and EQOS setup Ye Li
2021-10-21 14:12   ` sbabic
2021-08-16 10:44 ` Ye Li [this message]
2021-10-21 14:12   ` [PATCH 5/7] imx8mp_evk: Remove EQoS PHY reset codes sbabic
2021-08-16 10:44 ` [PATCH 6/7] imx8mp_evk: Delete noncached memory config Ye Li
2021-10-21 14:12   ` sbabic
2021-08-16 10:44 ` [PATCH 7/7] imx8mp_evk: Enable the DWC EQoS iMX driver Ye Li
2021-10-21 14:12   ` sbabic
2021-10-10  8:35 ` [PATCH 1/7] arm: mach-imx: Update MAC fuse for i.MX8MP Marcel Ziswiler
2021-10-21 14:13 ` sbabic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1629110672-28374-5-git-send-email-ye.li@nxp.com \
    --to=ye.li@nxp.com \
    --cc=festevam@gmail.com \
    --cc=marex@denx.de \
    --cc=peng.fan@nxp.com \
    --cc=rfried.dev@gmail.com \
    --cc=s.arendt@sensopart.de \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.