Common clock: function clock and bus clock

Ben Dooks ben.dooks at codethink.co.uk
Thu Mar 20 05:45:27 EDT 2014


On 11/03/14 03:06, Chao Xie wrote:
> hi
>
> I can not find any examples for handling function clock and bus clock
> in drivers/clk/.

The convention is that clk_get(dev, NULL) will get the bus clock
for the device and that any other clocks are appropriately named.

In the device tree case, the bus clock is first, and can generally
be named anything you like, such as "bus".

If the module does not have one, then you can always supply a dummy
clock.

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius



More information about the linux-arm-kernel mailing list