public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* RE: omap clock.h question
@ 2006-02-07 21:41 Woodruff, Richard
  2006-02-07 21:53 ` Tony Lindgren
  0 siblings, 1 reply; 10+ messages in thread
From: Woodruff, Richard @ 2006-02-07 21:41 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Linux-omap-open-source


> > What's the correct way to support this?  Define another clock struct
> > with the same name, but setup for 730?
> 
> Yes, just add another clock for 730. BTW, the mmc driver is about to
> change where you just request mmc_ick and mmc_fck on all omaps.

Is that what RMK meant...  I was wondering if he meant you stash away a
number of clocks and a list of them in the dev structure.  That way you
could just call clock enable for all need clocks based on private data.
Who is to say 2 is enough, or 3, in the future.

I wasn't all that clear on exactly what was meant, but that was my first
thought.

Regards,
Richard W.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: omap clock.h question
@ 2006-02-07 22:57 Woodruff, Richard
  2006-02-07 23:12 ` Tony Lindgren
  0 siblings, 1 reply; 10+ messages in thread
From: Woodruff, Richard @ 2006-02-07 22:57 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Linux-omap-open-source

> * Woodruff, Richard <r-woodruff2@ti.com> [060207 14:07]:
> > > I believe he meant just to hide the clock number for mmc 1 or 2.
But I
> > > guess we still need to have different naming for omap1 and omap2.
> >
> > Like I was saying you could hide both the slot and the names.
> >
> >  for(i=data.slot[slot].num_clks; i>0; i--)
> >  {
> > 	ck = clk_get(data.slot.clk_name[i-1])
> > 	if(ck != NULL)
> > 	clk_enabl(ck);
> >  }
> >
> > That way we don't care the name or how many.  It gets rid of some if
> > statements anyway.
> 
> But one of the clocks can be off more often than the other from PM
point
> of view.

Perhaps, but probably not for OMAP2.  The I clocks and the F clock
enables are local to the module. Enabling an F or an I clock doesn't
mean the parent which supplies it is active. It will open up a gate of
sorts and raise a clock request.  If that parent source is running then
it can propagate into the functional block.

I don't think OMAP1 does it quite like this.  The source clock doesn't
have the module level gating.  

Seems like in theory you and run some modules with their I clock off and
the F clock on, though I doubt you would do it much in practice.  You
can just set your I clock to auto idle and it will raise and lower its
clock request automatically as needed, effectively doing the same.

Regards,
Richard W.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: omap clock.h question
@ 2006-02-07 22:06 Woodruff, Richard
  2006-02-07 22:29 ` Tony Lindgren
  0 siblings, 1 reply; 10+ messages in thread
From: Woodruff, Richard @ 2006-02-07 22:06 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Linux-omap-open-source

> I believe he meant just to hide the clock number for mmc 1 or 2. But I
> guess we still need to have different naming for omap1 and omap2.

Like I was saying you could hide both the slot and the names.

 for(i=data.slot[slot].num_clks; i>0; i--)
 {
	ck = clk_get(data.slot.clk_name[i-1])
	if(ck != NULL)
	clk_enabl(ck);
 }

That way we don't care the name or how many.  It gets rid of some if
statements anyway.

Regards,
Richard W.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* omap clock.h question
@ 2006-02-07 18:59 Brian Swetland
  2006-02-07 20:52 ` Tony Lindgren
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Swetland @ 2006-02-07 18:59 UTC (permalink / raw)
  To: Linux-omap-open-source


I'm trying to get the MMC driver working on OMAP730 -- currently it
fails in probe because it can't obtain "mmc1_ck".  clocks.h has a
definition for this, but only for 1510/16xx/310.  OMAP730 appears to use
a different config register (PERSEUS_PCC_CONF) to enable this clock.

What's the correct way to support this?  Define another clock struct
with the same name, but setup for 730?  

Thanks,

Brian

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

end of thread, other threads:[~2006-02-07 23:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-07 21:41 omap clock.h question Woodruff, Richard
2006-02-07 21:53 ` Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2006-02-07 22:57 Woodruff, Richard
2006-02-07 23:12 ` Tony Lindgren
2006-02-07 22:06 Woodruff, Richard
2006-02-07 22:29 ` Tony Lindgren
2006-02-07 18:59 Brian Swetland
2006-02-07 20:52 ` Tony Lindgren
2006-02-07 21:10   ` Brian Swetland
2006-02-07 21:27     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox