public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] imx: mx6qsabreauto: drop duplicated net phy configuration
@ 2016-05-24 12:28 Peng Fan
  2016-05-24 12:32 ` Fabio Estevam
  2016-05-24 12:34 ` Stefano Babic
  0 siblings, 2 replies; 4+ messages in thread
From: Peng Fan @ 2016-05-24 12:28 UTC (permalink / raw)
  To: u-boot

In 'commit d584c68ce0f5bf2f430ccfb2ba00bd506206fb91',
ar8031 is changed to use ar8035_config. ar8035_config
actually does the same thing as mx6_rgmii_rework, so
drop mx6_rgmii_rework and board_phy_config.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 board/freescale/mx6qsabreauto/mx6qsabreauto.c | 33 ---------------------------
 1 file changed, 33 deletions(-)

diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
index 0712f08..d63a979 100644
--- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c
+++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
@@ -321,39 +321,6 @@ static void setup_gpmi_nand(void)
 }
 #endif
 
-int mx6_rgmii_rework(struct phy_device *phydev)
-{
-	unsigned short val;
-
-	/* To enable AR8031 ouput a 125MHz clk from CLK_25M */
-	phy_write(phydev, MDIO_DEVAD_NONE, 0xd, 0x7);
-	phy_write(phydev, MDIO_DEVAD_NONE, 0xe, 0x8016);
-	phy_write(phydev, MDIO_DEVAD_NONE, 0xd, 0x4007);
-
-	val = phy_read(phydev, MDIO_DEVAD_NONE, 0xe);
-	val &= 0xffe3;
-	val |= 0x18;
-	phy_write(phydev, MDIO_DEVAD_NONE, 0xe, val);
-
-	/* introduce tx clock delay */
-	phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x5);
-	val = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
-	val |= 0x0100;
-	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, val);
-
-	return 0;
-}
-
-int board_phy_config(struct phy_device *phydev)
-{
-	mx6_rgmii_rework(phydev);
-
-	if (phydev->drv->config)
-		phydev->drv->config(phydev);
-
-	return 0;
-}
-
 static void setup_fec(void)
 {
 	if (is_mx6dqp()) {
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] imx: mx6qsabreauto: drop duplicated net phy configuration
  2016-05-24 12:28 [U-Boot] [PATCH] imx: mx6qsabreauto: drop duplicated net phy configuration Peng Fan
@ 2016-05-24 12:32 ` Fabio Estevam
  2016-05-24 13:02   ` Peng Fan
  2016-05-24 12:34 ` Stefano Babic
  1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2016-05-24 12:32 UTC (permalink / raw)
  To: u-boot

On Tue, May 24, 2016 at 9:28 AM, Peng Fan <van.freenix@gmail.com> wrote:
> In 'commit d584c68ce0f5bf2f430ccfb2ba00bd506206fb91',

In the future, please use the following format when referencing commit IDs:
d584c68ce ("phy: atheros: Use ar8035_config for AR8031")

> ar8031 is changed to use ar8035_config. ar8035_config
> actually does the same thing as mx6_rgmii_rework, so
> drop mx6_rgmii_rework and board_phy_config.
>
> Signed-off-by: Peng Fan <van.freenix@gmail.com>
> Cc: Fabio Estevam <fabio.estevam@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] imx: mx6qsabreauto: drop duplicated net phy configuration
  2016-05-24 12:28 [U-Boot] [PATCH] imx: mx6qsabreauto: drop duplicated net phy configuration Peng Fan
  2016-05-24 12:32 ` Fabio Estevam
@ 2016-05-24 12:34 ` Stefano Babic
  1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2016-05-24 12:34 UTC (permalink / raw)
  To: u-boot

On 24/05/2016 14:28, Peng Fan wrote:
> In 'commit d584c68ce0f5bf2f430ccfb2ba00bd506206fb91',
> ar8031 is changed to use ar8035_config. ar8035_config
> actually does the same thing as mx6_rgmii_rework, so
> drop mx6_rgmii_rework and board_phy_config.
> 
> Signed-off-by: Peng Fan <van.freenix@gmail.com>
> Cc: Fabio Estevam <fabio.estevam@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
>  board/freescale/mx6qsabreauto/mx6qsabreauto.c | 33 ---------------------------
>  1 file changed, 33 deletions(-)
> 
> diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
> index 0712f08..d63a979 100644
> --- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c
> +++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
> @@ -321,39 +321,6 @@ static void setup_gpmi_nand(void)
>  }
>  #endif
>  
> -int mx6_rgmii_rework(struct phy_device *phydev)
> -{
> -	unsigned short val;
> -
> -	/* To enable AR8031 ouput a 125MHz clk from CLK_25M */
> -	phy_write(phydev, MDIO_DEVAD_NONE, 0xd, 0x7);
> -	phy_write(phydev, MDIO_DEVAD_NONE, 0xe, 0x8016);
> -	phy_write(phydev, MDIO_DEVAD_NONE, 0xd, 0x4007);
> -
> -	val = phy_read(phydev, MDIO_DEVAD_NONE, 0xe);
> -	val &= 0xffe3;
> -	val |= 0x18;
> -	phy_write(phydev, MDIO_DEVAD_NONE, 0xe, val);
> -
> -	/* introduce tx clock delay */
> -	phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x5);
> -	val = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
> -	val |= 0x0100;
> -	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, val);
> -
> -	return 0;
> -}
> -
> -int board_phy_config(struct phy_device *phydev)
> -{
> -	mx6_rgmii_rework(phydev);
> -
> -	if (phydev->drv->config)
> -		phydev->drv->config(phydev);
> -
> -	return 0;
> -}
> -
>  static void setup_fec(void)
>  {
>  	if (is_mx6dqp()) {
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] imx: mx6qsabreauto: drop duplicated net phy configuration
  2016-05-24 12:32 ` Fabio Estevam
@ 2016-05-24 13:02   ` Peng Fan
  0 siblings, 0 replies; 4+ messages in thread
From: Peng Fan @ 2016-05-24 13:02 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

On Tue, May 24, 2016 at 09:32:31AM -0300, Fabio Estevam wrote:
>On Tue, May 24, 2016 at 9:28 AM, Peng Fan <van.freenix@gmail.com> wrote:
>> In 'commit d584c68ce0f5bf2f430ccfb2ba00bd506206fb91',
>
>In the future, please use the following format when referencing commit IDs:
>d584c68ce ("phy: atheros: Use ar8035_config for AR8031")

Thanks. Will follow this in future patches.

Thanks,
Peng.

>
>> ar8031 is changed to use ar8035_config. ar8035_config
>> actually does the same thing as mx6_rgmii_rework, so
>> drop mx6_rgmii_rework and board_phy_config.
>>
>> Signed-off-by: Peng Fan <van.freenix@gmail.com>
>> Cc: Fabio Estevam <fabio.estevam@nxp.com>
>> Cc: Stefano Babic <sbabic@denx.de>
>
>Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-24 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 12:28 [U-Boot] [PATCH] imx: mx6qsabreauto: drop duplicated net phy configuration Peng Fan
2016-05-24 12:32 ` Fabio Estevam
2016-05-24 13:02   ` Peng Fan
2016-05-24 12:34 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox