Thread (25 messages) flat view 25 messages, 4 authors, 2012-06-24

Dove clock support

From: andrew@lunn.ch (Andrew Lunn)
Date: 2012-06-18 10:11:00

On Mon, Jun 18, 2012 at 12:01:14PM +0200, Sebastian Hesselbarh wrote:
On 06/18/2012 11:54 AM, Marc Kleine-Budde wrote:
quoted
quoted
Also ge-phy has to be connected with ge-clk, too. But for dove this is
a clk gate while kirkwood can shut it down somewhere else. I guess it
can be handled like sata/pcie on kirkwood.
The PHY is a clock gate so I'm handling it via:
quoted
ge = dove_register_gate("ge0", CLOCK_GATING_GBE_BIT | CLOCK_GATING_GIGA_PHY_BIT);
So no gate_fn needed.
There is no fn needed for dove, but kirkwood will need one IIRC.
Moreover, you could hook-up PHY-gate as a parent of corresponding
clk-gate and they will be enabled/disabled simultaneously.

But I'd prefer the driver to take care of clks _and_ PHYs.
That would be nice, but we have to remember that the driver is used
for a number of different Marvell SoC and discreet devices. Only a few
have the ability to turn on/off there clocks and PHYs. So you need to
abstract this in such a way it does not break older chipsets.
One more: I suggest to clean the clk names of orion platforms,
they are a mess
Do you have a proposal?

   Thanks
	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help