From: Ilya Yanok <yanok@emcraft.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>,
Igor Grinberg <grinberg@compulab.co.il>,
linux-omap@vger.kernel.org,
Ranjith Lohithakshan <ranjithl@ti.com>,
wd@denx.de, dzu@denx.de, sasha_d@emcraft.com
Subject: Re: [PATCH] am35xx-emac: move generic EMAC init to separate file
Date: Wed, 21 Dec 2011 02:31:07 +0400 [thread overview]
Message-ID: <4EF10CAB.4010503@emcraft.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1112152257150.12660@utopia.booyaka.com>
Hi Paul,
On 16.12.2011 10:13, Paul Walmsley wrote:
>> Ok, let's wait for Paul's answer and then I'll prepare a separate patch.
>
> Unfortunately the AM3517 TRM (SPRUGR0) here doesn't really have the same
> level of clock integration information that the WBU TRMs have, so it's
> kind of hard to tell what's going on :-(
>
> Looking at Figure 22-1 "EMAC and MDIO Block Diagram", it appears that what
> we call "emac_fck" is really just an optional functional clock for the
> MDIO PHY?
Hm. I have to admit I'm completely lost here.
CONTROL_IPSS_CLK_CTRL register has bit controlling "Func clock of
CPGMAC". But there is no mention of this clock anywhere else in the
manual. I can't find neither where it comes from nor how it's used.
According to the current sources it comes from external 50MHz RMII
clock, do you think this is correct?
EMAC section speaks something about variable frequency peripheral clock
which is used to generate MDIO bus clock signal. But I can't find any
information on that clock in the other parts of the document. It seems
to me the EMAC section was just copied from DaVinci RM without any
editing...
> And it sounds like the AM35xx clock that we call "emac_ick" is actually a
> combined interface and functional clock for the EMAC and MDIO IP blocks?
> I guess a combined interface/functional clock would make sense, since the
> EMAC seems to contain a DMA controller.
>
> Maybe Ranjith can provide some more information; he's cc'ed.
>
> In any case, your changes sound reasonable to me, so a patch to the clock
> file sounds good. I'd suggest both changing the clkdev aliases and
> renaming emac_fck - that's a confusing name and I don't think it's in the
> TRM as such.
Actually it's called Func clock in the manual (see
CONTROL_IPSS_CLK_CTRL). Do you still think we have to rename it?
I have another concern: changing clkdev aliases make things work for me
but now I'm not sure if this change is really correct...
Regards, Ilya.
next prev parent reply other threads:[~2011-12-20 22:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 0:36 [PATCH] am35xx-emac: move generic EMAC init to separate file Ilya Yanok
2011-12-08 0:15 ` Tony Lindgren
2011-12-14 23:46 ` Ilya Yanok
2011-12-15 9:39 ` Igor Grinberg
2011-12-15 18:43 ` Tony Lindgren
2011-12-15 21:42 ` Ilya Yanok
2011-12-16 6:13 ` Paul Walmsley
2011-12-20 22:31 ` Ilya Yanok [this message]
2011-12-21 1:38 ` Paul Walmsley
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=4EF10CAB.4010503@emcraft.com \
--to=yanok@emcraft.com \
--cc=dzu@denx.de \
--cc=grinberg@compulab.co.il \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=ranjithl@ti.com \
--cc=sasha_d@emcraft.com \
--cc=tony@atomide.com \
--cc=wd@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).