mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file
@ 2014-11-12  7:58 Christian Hemp
  2014-11-12  7:58 ` [PATCH 2/2] ARM: defconfig: Enable Micrel PHY driver in am335x_defconfig Christian Hemp
  2014-11-12  8:22 ` [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Christian Hemp @ 2014-11-12  7:58 UTC (permalink / raw)
  To: barebox

The ethernet timings are set by the devicetree. They are no longer required in the
board file.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
---
 arch/arm/boards/phytec-phyflex-am335x/board.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/arch/arm/boards/phytec-phyflex-am335x/board.c b/arch/arm/boards/phytec-phyflex-am335x/board.c
index cf7dd2e..f265e52 100644
--- a/arch/arm/boards/phytec-phyflex-am335x/board.c
+++ b/arch/arm/boards/phytec-phyflex-am335x/board.c
@@ -32,21 +32,11 @@
 #include <mach/am33xx-silicon.h>
 #include <mach/bbu.h>
 
-static int ksz9031rn_phy_fixup(struct phy_device *dev)
-{
-	phy_write_mmd_indirect(dev, 6, 2, 0);
-	phy_write_mmd_indirect(dev, 8, 2, 0x003ff);
-
-	return 0;
-}
-
 static int pfla03_coredevice_init(void)
 {
 	if (!of_machine_is_compatible("phytec,phyflex-am335x-som"))
 		return 0;
 
-	phy_register_fixup_for_uid(PHY_ID_KSZ9031, MICREL_PHY_ID_MASK,
-					ksz9031rn_phy_fixup);
 	am33xx_register_ethaddr(0, 0);
 	am33xx_register_ethaddr(1, 1);
 
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/2] ARM: defconfig: Enable Micrel PHY driver in am335x_defconfig
  2014-11-12  7:58 [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file Christian Hemp
@ 2014-11-12  7:58 ` Christian Hemp
  2014-11-12  8:22 ` [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Christian Hemp @ 2014-11-12  7:58 UTC (permalink / raw)
  To: barebox

From: Wadim Egorov <w.egorov@phytec.de>

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
---
 arch/arm/configs/am335x_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/am335x_defconfig b/arch/arm/configs/am335x_defconfig
index a682fe4..e9bc1ba 100644
--- a/arch/arm/configs/am335x_defconfig
+++ b/arch/arm/configs/am335x_defconfig
@@ -92,6 +92,7 @@ CONFIG_OF_BAREBOX_DRIVERS=y
 CONFIG_DRIVER_SERIAL_NS16550=y
 CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
 CONFIG_DRIVER_NET_CPSW=y
+CONFIG_MICREL_PHY=y
 CONFIG_NET_USB=y
 CONFIG_NET_USB_ASIX=y
 CONFIG_NET_USB_SMSC95XX=y
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file
  2014-11-12  7:58 [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file Christian Hemp
  2014-11-12  7:58 ` [PATCH 2/2] ARM: defconfig: Enable Micrel PHY driver in am335x_defconfig Christian Hemp
@ 2014-11-12  8:22 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-11-12  8:22 UTC (permalink / raw)
  To: Christian Hemp; +Cc: barebox

On Wed, Nov 12, 2014 at 08:58:05AM +0100, Christian Hemp wrote:
> The ethernet timings are set by the devicetree. They are no longer required in the
> board file.
> 
> Signed-off-by: Christian Hemp <c.hemp@phytec.de>

Applied both, thanks

Sascha

> ---
>  arch/arm/boards/phytec-phyflex-am335x/board.c | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> diff --git a/arch/arm/boards/phytec-phyflex-am335x/board.c b/arch/arm/boards/phytec-phyflex-am335x/board.c
> index cf7dd2e..f265e52 100644
> --- a/arch/arm/boards/phytec-phyflex-am335x/board.c
> +++ b/arch/arm/boards/phytec-phyflex-am335x/board.c
> @@ -32,21 +32,11 @@
>  #include <mach/am33xx-silicon.h>
>  #include <mach/bbu.h>
>  
> -static int ksz9031rn_phy_fixup(struct phy_device *dev)
> -{
> -	phy_write_mmd_indirect(dev, 6, 2, 0);
> -	phy_write_mmd_indirect(dev, 8, 2, 0x003ff);
> -
> -	return 0;
> -}
> -
>  static int pfla03_coredevice_init(void)
>  {
>  	if (!of_machine_is_compatible("phytec,phyflex-am335x-som"))
>  		return 0;
>  
> -	phy_register_fixup_for_uid(PHY_ID_KSZ9031, MICREL_PHY_ID_MASK,
> -					ksz9031rn_phy_fixup);
>  	am33xx_register_ethaddr(0, 0);
>  	am33xx_register_ethaddr(1, 1);
>  
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2014-11-12  8:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-12  7:58 [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file Christian Hemp
2014-11-12  7:58 ` [PATCH 2/2] ARM: defconfig: Enable Micrel PHY driver in am335x_defconfig Christian Hemp
2014-11-12  8:22 ` [PATCH 1/2] am335x:phyflex: Remove phy fixup from board file Sascha Hauer

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