All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Possible Denx m28evk ethernet problem + solution
Date: Sat, 7 Jan 2012 20:04:05 -0200	[thread overview]
Message-ID: <CAOMZO5AbVOrGLb42H-fMV4edtHQU+SPLE_8MOBTpB8JvKyN-RQ@mail.gmail.com> (raw)
In-Reply-To: <3C18F794-D414-406A-BEA4-ABE59990B5BF@Delien.nl>

On Fri, Jan 6, 2012 at 3:54 PM, Robert Deli?n <robert@delien.nl> wrote:
> Hi Marek,
>
> I'm currently working on U-Boot support for the Freescale i.mx28evk board. It started out as
> an update of the old Freescale supplied U-Boot 2009.08, but it ended up in reconfiguring
> your work on the Denx m28evk module. Today I stumbled upon a problem with Ethernet.
>
> It turned out that communication with the PHYs didn't work, because the SoC isn't supplying
> ENET_CLK. The Ethernet clock is configured properly by cpu_eth_init in
> ./arch/arm/cpu/arm926ejs/mx28/mx28.c. But later in the boot process, board_eth_init in
> board/denx/m28evk/m28evk.c tries to configure the Ethernet clock again. Unfortunately that
> second configuration is just disabling the clock:
> ? ? ? ?clrsetbits_le32(&clkctrl_regs->hw_clkctrl_enet,
> ? ? ? ? ? ? ? ?CLKCTRL_ENET_TIME_SEL_MASK | CLKCTRL_ENET_CLK_OUT_EN,
> ? ? ? ? ? ? ? ?CLKCTRL_ENET_TIME_SEL_RMII_CLK);
> After removing this line, I measured a 25MHz clock, communication with the PHYs worked
> and I successfully tftp'ed a kernel from my server.
>
> Does Ethernet on your board work? Does you board have an external clock oscillator for
> the PHYs? If not, do you agree with removing this line?

Please use Stefano's imx git tree, which has support for mx28evk already.

m28evk and mx28evk differ in the way they driver their Ethernet PHYs.

Let me know if you have any issues.

Regards,

Fabio Estevam

  parent reply	other threads:[~2012-01-07 22:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 17:54 [U-Boot] Possible Denx m28evk ethernet problem + solution Robert Deliën
2012-01-06 19:05 ` Marek Vasut
2012-01-06 20:05   ` Robert Deliën
2012-01-06 20:51     ` Marek Vasut
2012-01-06 22:17       ` Robert Deliën
     [not found]       ` <6F6D3536-378A-4DA4-8C7E-7C6D74CC7895@delien.nl>
2012-01-06 23:22         ` Marek Vasut
2012-01-07 22:04 ` Fabio Estevam [this message]
2012-01-08 10:39   ` Robert Deliën
2012-01-08 10:51     ` Marek Vasut
2012-01-08 15:16       ` Robert Deliën
2012-01-08 16:05         ` Marek Vasut

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=CAOMZO5AbVOrGLb42H-fMV4edtHQU+SPLE_8MOBTpB8JvKyN-RQ@mail.gmail.com \
    --to=festevam@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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.