Clock API and "maximum rate"
Matt Sealey
matt at genesi-usa.com
Thu Jan 12 08:49:35 EST 2012
On Wed, Jan 11, 2012 at 10:58 AM, Jamie Iles <jamie at jamieiles.com> wrote:
> Hi Matt,
>
> On Wed, Jan 11, 2012 at 10:30:15AM -0600, Matt Sealey wrote:
>> Just a curious question, is there any safe way in the current API or
>> even by peeking a little behind the scenes to find out what the
>> maximum clock rate would be for a given named clock or struct clk?
>
> How about:
>
> long max = clk_round_rate(clk, ~0LU);
>
> clk_round_rate() is one of the optional API calls though.
Luckily implemented in this case :) Seems to do the trick, thanks.
--
Matt Sealey <matt at genesi-usa.com>
Product Development Analyst, Genesi USA, Inc.
More information about the linux-arm-kernel
mailing list