* [PATCH] ARM: i.MX53 QSB: drop phy reset handling in board file
@ 2017-09-22 9:54 Uwe Kleine-König
2017-09-26 6:47 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2017-09-22 9:54 UTC (permalink / raw)
To: barebox
Since commit
5c1846b62524 ("ARM: i.mx53: Parse Reset GPIO pin in FEC driver from Devicetree")
the fec driver ensures a phy reset. As there is little use in resetting
twice, drop the reset from the board file.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
arch/arm/boards/freescale-mx53-qsb/board.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arch/arm/boards/freescale-mx53-qsb/board.c b/arch/arm/boards/freescale-mx53-qsb/board.c
index f75c9d12cd6b..0b1c927b81d4 100644
--- a/arch/arm/boards/freescale-mx53-qsb/board.c
+++ b/arch/arm/boards/freescale-mx53-qsb/board.c
@@ -64,15 +64,6 @@ static void set_board_rev(int rev)
loco_system_rev = (loco_system_rev & ~(0xF << 8)) | (rev & 0xF) << 8;
}
-#define LOCO_FEC_PHY_RST IMX_GPIO_NR(7, 6)
-
-static void loco_fec_reset(void)
-{
- gpio_direction_output(LOCO_FEC_PHY_RST, 0);
- mdelay(1);
- gpio_set_value(LOCO_FEC_PHY_RST, 1);
-}
-
#define MX53_LOCO_USB_PWREN IMX_GPIO_NR(7, 8)
static int loco_late_init(void)
@@ -148,8 +139,6 @@ static int loco_late_init(void)
gpio_direction_output(MX53_LOCO_USB_PWREN, 0);
gpio_set_value(MX53_LOCO_USB_PWREN, 1);
- loco_fec_reset();
-
set_silicon_rev(imx_silicon_revision());
armlinux_set_architecture(MACH_TYPE_MX53_LOCO);
--
2.11.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: i.MX53 QSB: drop phy reset handling in board file
2017-09-22 9:54 [PATCH] ARM: i.MX53 QSB: drop phy reset handling in board file Uwe Kleine-König
@ 2017-09-26 6:47 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-09-26 6:47 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: barebox
On Fri, Sep 22, 2017 at 11:54:59AM +0200, Uwe Kleine-König wrote:
> Since commit
>
> 5c1846b62524 ("ARM: i.mx53: Parse Reset GPIO pin in FEC driver from Devicetree")
>
> the fec driver ensures a phy reset. As there is little use in resetting
> twice, drop the reset from the board file.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> arch/arm/boards/freescale-mx53-qsb/board.c | 11 -----------
> 1 file changed, 11 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/arch/arm/boards/freescale-mx53-qsb/board.c b/arch/arm/boards/freescale-mx53-qsb/board.c
> index f75c9d12cd6b..0b1c927b81d4 100644
> --- a/arch/arm/boards/freescale-mx53-qsb/board.c
> +++ b/arch/arm/boards/freescale-mx53-qsb/board.c
> @@ -64,15 +64,6 @@ static void set_board_rev(int rev)
> loco_system_rev = (loco_system_rev & ~(0xF << 8)) | (rev & 0xF) << 8;
> }
>
> -#define LOCO_FEC_PHY_RST IMX_GPIO_NR(7, 6)
> -
> -static void loco_fec_reset(void)
> -{
> - gpio_direction_output(LOCO_FEC_PHY_RST, 0);
> - mdelay(1);
> - gpio_set_value(LOCO_FEC_PHY_RST, 1);
> -}
> -
> #define MX53_LOCO_USB_PWREN IMX_GPIO_NR(7, 8)
>
> static int loco_late_init(void)
> @@ -148,8 +139,6 @@ static int loco_late_init(void)
> gpio_direction_output(MX53_LOCO_USB_PWREN, 0);
> gpio_set_value(MX53_LOCO_USB_PWREN, 1);
>
> - loco_fec_reset();
> -
> set_silicon_rev(imx_silicon_revision());
>
> armlinux_set_architecture(MACH_TYPE_MX53_LOCO);
> --
> 2.11.0
>
>
> _______________________________________________
> 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] 2+ messages in thread
end of thread, other threads:[~2017-09-26 6:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-22 9:54 [PATCH] ARM: i.MX53 QSB: drop phy reset handling in board file Uwe Kleine-König
2017-09-26 6:47 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox