Re: [PATCH] am35xx-emac: move generic EMAC init to separate file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(cc'ing Ranjith)

Hi

On Fri, 16 Dec 2011, Ilya Yanok wrote:

> >>>>> +	clk_add_alias(NULL, dev_name(&am35xx_emac_device.dev),
> >>>>> +		      "emac_clk", &am35xx_emac_device.dev);
> >>>>> +	clk_add_alias(NULL, dev_name(&am35xx_mdio_device.dev),
> >>>>> +		      "phy_clk", &am35xx_emac_device.dev);
> >>>>
> >>>> Hmm after moving the code and should be a separate patch, don't
> >>>> we already have these clock aliases in cloc3xxx_data.c?
> >>>
> >>> No, we have
> >>> CLK("davinci_emac", "emac_clk"...) and
> >>> CLK("davinci_emac", "phy_clk"...)
> >>> while drivers want ("davinci_emac", NULL) and ("davinci_mdio", NULL).
> >>>
> >>> Probably we have to fix the clock definitions instead of adding the aliases.
> >>>
> >>> So, should I post this as a separate patch?
> >>
> >> If it comes to that question, Cc Paul...
> > 
> > Yes please do that as a separate patch.
> 
> 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?

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.


- Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux