ccf: where to put constraints?
Sören Brinkmann
soren.brinkmann at xilinx.com
Mon Feb 24 16:21:58 EST 2014
Hi Wolfram,
On Mon, 2014-02-24 at 09:10PM +0100, Wolfram Sang wrote:
> Hi,
>
> Where do I put constraints when using the CCF? I have a CPU and GPU
> clock derived from the same PLL. Both clocks have their own divider.
> Now, there is the additional constraint that the CPU clock must not be
> lower than the GPU clock. Do I add checks in the set_rate functions?
> Feels like the wrong layer, but not checking it and blindly relying on
> somebody else does not feel correct, too. How to do it best?
I don't know if it's the best or only way, but so far, I did things like
that with clock notifiers.
I.e. when a clock consumer needs to be notified about its input clock
being changed it registers a clock notifier. In that notifier callback
it then can react to the rate change. E.g. adjust dividers to stay
within legal limits or reject the change completely.
Sören
More information about the linux-arm-kernel
mailing list