mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Alexander Shiyan" <shc_work@mail.ru>
To: "Eric B�nard" <eric@eukrea.com>
Cc: barebox@lists.infradead.org
Subject: Re[2]: [PATCH 2/2] ARM: i.MX: Update MX51 iomux definitions
Date: Tue, 09 Apr 2013 19:05:31 +0400	[thread overview]
Message-ID: <1365519925.926164842@f101.mail.ru> (raw)
In-Reply-To: <20130409100345.327f1f7c@e6520eb>

> Le Tue, 09 Apr 2013 12:01:51 +0400,
> Alexander Shiyan <shc_work@mail.ru> a écrit :
> 
> > > > > On Sun, Apr 07, 2013 at 12:48:57PM +0400, Alexander Shiyan wrote:
> > > > > > The patch updates MX51 iomux definitions from kernel.
> > > > > > 
> > > > > > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> > > > > 
> > > > > This patch effectively reverts:
> > > > > 
> > > > > commit 298d15571da8d1cb71e7fd87cc53cad3b2bf1d12
> > > > > Author: Eric Bénard <eric@eukrea.com>
> > > > > Date:   Thu Sep 6 21:39:30 2012 +0200
> > > > > 
> > > > >     i.MX51: unbreak FEC iomux
> > > > >     
> > > > >     in commit 2bdc9f57a86dff41cfc1f87b644a2e53fdcce2b6 the iomux was synced
> > > > >     with the kernel but this leads to some changes in the PAD_CTRL of some
> > > > >     FEC pins leading to a non working FEC on our cpuimx51 board.
> > > > >     
> > > > >     This patch set back the PAD_CTRL of the missing pins to the initial
> > > > >     value.
> > > > >     
> > > > >     Signed-off-by: Eric Bénard <eric@eukrea.com>
> > > > >     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> > > > > 
> > > > > You shouldn't do this.
> > > > 
> > > > What about write a patch for the kernel for this?
> > > 
> > > By the time I applied Erics patch I considered the days of the
> > > traditional iomux support in the kernel counted. From that day on
> > > we have to maintain our own versions anyway.
> > 
> > OK. Maybe as temporary solution we can define eukrea_cpuimx51 FEC
> > pins with NEW_PAD_CTRL macro? If so, I'll create a patch for this.
> > This will keep iomux-mx51.h file synced.
> > 
> Fine for me. Do you have a problem with these pads setting so that you
> need to revert the change ?
So, below is a temporary fixup.

From 47d0d7b9c0355ba31e4c563891b2e9159dc07533 Mon Sep 17 00:00:00 2001
From: Alexander Shiyan <shc_work@mail.ru>
Date: Tue, 9 Apr 2013 19:01:40 +0400
Subject: [PATCH] ARM: cpuimx51: Fix PAD_CTRLs for FEC


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/eukrea_cpuimx51/eukrea_cpuimx51.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boards/eukrea_cpuimx51/eukrea_cpuimx51.c b/arch/arm/boards/eukrea_cpuimx51/eukrea_cpuimx51.c
index 5e77f90..523a805 100644
--- a/arch/arm/boards/eukrea_cpuimx51/eukrea_cpuimx51.c
+++ b/arch/arm/boards/eukrea_cpuimx51/eukrea_cpuimx51.c
@@ -55,23 +55,23 @@ static iomux_v3_cfg_t eukrea_cpuimx51_pads[] = {
 	MX51_PAD_UART1_RTS__UART1_RTS,
 	MX51_PAD_UART1_CTS__UART1_CTS,
 	/* FEC */
-	MX51_PAD_DISP2_DAT1__FEC_RX_ER,
+	NEW_PAD_CTRL(MX51_PAD_DISP2_DAT1__FEC_RX_ER, MX51_PAD_CTRL_5),
 	MX51_PAD_DISP2_DAT15__FEC_TDATA0,
 	MX51_PAD_DISP2_DAT6__FEC_TDATA1,
 	MX51_PAD_DISP2_DAT7__FEC_TDATA2,
 	MX51_PAD_DISP2_DAT8__FEC_TDATA3,
 	MX51_PAD_DISP2_DAT9__FEC_TX_EN,
-	MX51_PAD_DISP2_DAT10__FEC_COL,
-	MX51_PAD_DISP2_DAT11__FEC_RX_CLK,
-	MX51_PAD_DISP2_DAT12__FEC_RX_DV,
+	NEW_PAD_CTRL(MX51_PAD_DISP2_DAT10__FEC_COL, MX51_PAD_CTRL_5),
+	NEW_PAD_CTRL(MX51_PAD_DISP2_DAT11__FEC_RX_CLK, MX51_PAD_CTRL_5),
+	NEW_PAD_CTRL(MX51_PAD_DISP2_DAT12__FEC_RX_DV, MX51_PAD_CTRL_5),
 	MX51_PAD_DISP2_DAT13__FEC_TX_CLK,
 	MX51_PAD_DI2_PIN4__FEC_CRS,
 	MX51_PAD_DI2_PIN2__FEC_MDC,
-	MX51_PAD_DI2_PIN3__FEC_MDIO,
+	NEW_PAD_CTRL(MX51_PAD_DI2_PIN3__FEC_MDIO, MX51_PAD_CTRL_5),
 	MX51_PAD_DISP2_DAT14__FEC_RDATA0,
 	MX51_PAD_DI2_DISP_CLK__FEC_RDATA1,
-	MX51_PAD_DI_GP4__FEC_RDATA2,
-	MX51_PAD_DISP2_DAT0__FEC_RDATA3,
+	NEW_PAD_CTRL(MX51_PAD_DI_GP4__FEC_RDATA2, MX51_PAD_CTRL_5),
+	NEW_PAD_CTRL(MX51_PAD_DISP2_DAT0__FEC_RDATA3, MX51_PAD_CTRL_5),
 	MX51_PAD_DI_GP3__FEC_TX_ER,
 	MX51_PAD_EIM_DTACK__GPIO2_31, /* LAN8700 reset pin */
 	/* NAND */
-- 
1.8.1.5

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

  parent reply	other threads:[~2013-04-09 15:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07  8:48 [PATCH 1/2] ARM: i.MX: Update MX2x " Alexander Shiyan
2013-04-07  8:48 ` [PATCH 2/2] ARM: i.MX: Update MX51 " Alexander Shiyan
2013-04-09  6:49   ` Sascha Hauer
2013-04-09  6:52     ` Re[2]: " Alexander Shiyan
2013-04-09  7:31       ` Sascha Hauer
2013-04-09  8:01         ` Re[2]: " Alexander Shiyan
2013-04-09  8:03           ` Eric Bénard
2013-04-09  8:15             ` Re[2]: " Alexander Shiyan
2013-04-09 15:05             ` Alexander Shiyan [this message]
2013-04-12 10:36               ` Re[3]: " Alexander Shiyan
2013-04-12 17:26                 ` Sascha Hauer

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=1365519925.926164842@f101.mail.ru \
    --to=shc_work@mail.ru \
    --cc=barebox@lists.infradead.org \
    --cc=eric@eukrea.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox