public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: b-cousson@ti.com (Cousson, Benoit)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH-V3 3/3] ARM: OMAP3+: clock33xx: Add AM33XX clock tree data
Date: Wed, 25 Apr 2012 14:33:21 +0200	[thread overview]
Message-ID: <4F97EF11.4020300@ti.com> (raw)
In-Reply-To: <79CD15C6BA57404B839C016229A409A83E9FDA47@DBDE01.ent.ti.com>

On 4/25/2012 2:26 PM, Hiremath, Vaibhav wrote:
> On Wed, Apr 25, 2012 at 17:08:43, Cousson, Benoit wrote:
>> On 4/25/2012 12:20 PM, Hiremath, Vaibhav wrote:
>>> On Wed, Apr 25, 2012 at 14:10:49, Cousson, Benoit wrote:
>>
>> ...
>>
> <snip>
>>
>>> How would I know the rate of this clock in driver? Say for example, I want
>>> to configure my internal divider based on input rate?
>>> OR
>>> I want to change the rate of dss_clk itself?
>>> OR
>>> Looking at debugfs, would I get the rate of dss_clk?
>>
>> No because that clock will not exist anymore, but you will have the real
>> clock rate from the "dss_dss_clk".
>>
>
> Thanks Benoit, I think I understand your perspective on Module Vs leaf node
> and now able to digest as well.
> Probably Last Q, which I think clarify all my doubts,
>
> Assume we have complete hwmod instance and built a device using
> omap_device_build() api, and also the driver is completely using runtime pm
> api's,
> How can driver get the clk handle (required to get the rate)?
> Is there any api already available for this?

The omap_device fmwk will auto-magically create a "fck" clkdev entry for 
the main_clk.

The API is thus the standard: clk_get(dev, "fck"), to get the clock 
handle and then you can use the other clock API.

The idea is to enforce the usage of clock alias local to the device and 
not trying anymore to get the real clock name. It thus allows driver to 
work on various variant / revision without having to modify the driver.

The fmwk will also create clock alias for any opt_clock present in the 
hwmod.

Regards,
Benoit

  reply	other threads:[~2012-04-25 12:33 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 13:09 [PATCH-V3 0/3] ARM: OMAP3+: am33xx: Add CM, clock and clockdomain support Vaibhav Hiremath
2012-04-03 13:09 ` [PATCH-V3 1/3] ARM: OMAP3+: cm33xx: Introduce AM33xx CM API's and register level details Vaibhav Hiremath
2012-04-03 13:09 ` [PATCH-V3 2/3] ARM: OMAP3+: clockdomain33xx: Add clockdomain data and respective operations Vaibhav Hiremath
2012-04-25  0:22   ` Paul Walmsley
2012-04-25  7:30     ` Hiremath, Vaibhav
2012-04-26  3:19       ` Paul Walmsley
2012-04-26  5:48         ` Hiremath, Vaibhav
2012-04-26  8:57           ` Paul Walmsley
2012-04-26 16:22             ` Hiremath, Vaibhav
2012-04-26 18:56               ` Paul Walmsley
2012-04-27  9:14                 ` Hiremath, Vaibhav
2012-04-03 13:09 ` [PATCH-V3 3/3] ARM: OMAP3+: clock33xx: Add AM33XX clock tree data Vaibhav Hiremath
2012-04-25  1:03   ` Paul Walmsley
2012-04-25  5:48     ` Hiremath, Vaibhav
2012-04-25  8:40       ` Cousson, Benoit
2012-04-25 10:20         ` Hiremath, Vaibhav
2012-04-25 11:38           ` Cousson, Benoit
2012-04-25 12:26             ` Hiremath, Vaibhav
2012-04-25 12:33               ` Cousson, Benoit [this message]
2012-04-25 12:40                 ` Hiremath, Vaibhav
2012-04-25 13:55                   ` Paul Walmsley
2012-04-25 14:04                     ` Hiremath, Vaibhav
2012-04-26  8:40                       ` Paul Walmsley
2012-04-26  8:41                         ` Paul Walmsley
2012-04-25 15:22                     ` Cousson, Benoit
2012-04-25 15:36                       ` Paul Walmsley
2012-04-25 15:40                         ` Hiremath, Vaibhav
2012-05-23 10:15                         ` Hiremath, Vaibhav
2012-05-23 15:08                           ` Paul Walmsley
2012-05-23 15:59                             ` Hiremath, Vaibhav
2012-05-24  7:31                               ` Paul Walmsley
2012-05-24 20:24                                 ` Hiremath, Vaibhav
2012-05-24 21:30                                   ` Paul Walmsley
2012-04-26  5:45   ` Paul Walmsley
2012-04-26  6:21     ` Hiremath, Vaibhav
2012-04-26  6:36       ` Paul Walmsley
2012-04-26  6:43         ` Hiremath, Vaibhav
2012-04-26  8:11           ` Paul Walmsley
2012-04-26  6:24   ` Paul Walmsley
2012-04-26  6:59     ` Hiremath, Vaibhav
2012-04-26  8:44       ` Paul Walmsley
2012-04-26  8:49   ` Paul Walmsley
2012-04-27 10:03     ` Hiremath, Vaibhav
2012-04-28  0:04       ` Paul Walmsley
2012-04-30 19:41         ` Hiremath, Vaibhav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F97EF11.4020300@ti.com \
    --to=b-cousson@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox