linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* mvebu: tclk detection for armada-xp and marvell packet processor with integrated CPU
@ 2014-11-17  2:12 Chris Packham
  2014-11-17  8:34 ` Thomas Petazzoni
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Packham @ 2014-11-17  2:12 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

One of the first problems I encountered looking at the Marvell Packet 
Processor with integrated CPU (I'll refer to that as 'the PP' throughout 
the rest of this email) was that it has a different TCLK to the armada-xp.

It appears that for both the PP and the armada-xp the TCLK is hard-coded 
(to 200MHz and 250MHz respectively) and cannot be detected as far as I 
can see from the various data-sheets. I was hoping to re-use 
drivers/clk/mvebu/armada-xp.c but I need to figure out how to make 
axp_get_tclk_freq() give me an appropriate answer depending on the SoC. 
If this were in the mach-mvebu code I could just use mvebu_get_soc_id() 
to fetch the device id. Is there an equivalent I could use in generic code?

One option would be to use a different compatible string in the dts. 
That would also give me a way of handling other differences (the 
clock-gating is a subset of what's available on the armada-xp). How 
different would things have to be before it's worth spinning the PP code 
out into a file of it's own?

Thanks,
Chris

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-11-18  0:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17  2:12 mvebu: tclk detection for armada-xp and marvell packet processor with integrated CPU Chris Packham
2014-11-17  8:34 ` Thomas Petazzoni
2014-11-17 14:18   ` Andrew Lunn
2014-11-17 20:18     ` Chris Packham
2014-11-17 21:32       ` Andrew Lunn
2014-11-17 20:14   ` Chris Packham
2014-11-17 21:55     ` Andrew Lunn
2014-11-17 22:07       ` Chris Packham
2014-11-18  0:39         ` Marcin Wojtas

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).