[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110224163944.GA15234@riccoc20.at.omicron.at>
Date: Thu, 24 Feb 2011 17:39:44 +0100
From: Richard Cochran <richardcochran@...il.com>
To: Grant Likely <grant.likely@...retlab.ca>
Cc: Scott Wood <scottwood@...escale.com>,
Thomas Gleixner <tglx@...utronix.de>,
Rodolfo Giometti <giometti@...ux.it>,
Arnd Bergmann <arnd@...db.de>,
Peter Zijlstra <peterz@...radead.org>,
linux-api@...r.kernel.org, devicetree-discuss@...ts.ozlabs.org,
linux-kernel@...r.kernel.org,
Russell King <linux@....linux.org.uk>,
Paul Mackerras <paulus@...ba.org>,
John Stultz <john.stultz@...aro.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>, netdev@...r.kernel.org,
Mike Frysinger <vapier@...too.org>,
Christoph Lameter <cl@...ux.com>,
linuxppc-dev@...ts.ozlabs.org, David Miller <davem@...emloft.net>,
linux-arm-kernel@...ts.infradead.org,
Krzysztof Halasa <khc@...waw.pl>
Subject: Re: [PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found
on the MPC85xx.
On Wed, Feb 23, 2011 at 10:54:59AM -0700, Grant Likely wrote:
> On Wed, Feb 23, 2011 at 11:26:12AM -0600, Scott Wood wrote:
> > The eTSEC revision is probeable as well, but due the way PTP is described as
> > a separate node, the driver doesn't have straightforward access to those
> > registers.
>
> Ignorant question: Should the ptp be described as a separate node?
Well, the PTP Hardware Clock function is logically separate from the
MAC function. PHCs can be implemented in the MAC, in the PHY, or in
between in an FPGA on MII bus.
If the PHC is in the MAC, then it might be wise to implement one
driver that offers both the MAC and the PHC.
In the case of gianfar, it is not really necessary to combine the PHC
into the gianfar driver, since the registers are pretty well
separated. Also, given the size and complexity (and churn over time)
of the gianfar driver, I decided to keep the PHC separate.
Right now, the driver correctly handles all the clock revisions in the
boards that I have (mpc8313, mpc8572, p2020ds, p2020rdb).
If checking the revision becomes important, then we can always export
a function from gianfar to provide this.
Thanks,
Richard
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists