lkml.org 
[lkml]   [2013]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectQuestion: How to find clock source with no consumer device node?
From
I want to make a load module which is used for performance
measurements. It hooks into a timer available with the target board in
question.

Now, there is no device tree information about this timer hardware
that my load module could use. However, there is device tree
information about the clock source that my timer needs. But I can't
figure out how get the clock based on this.

I do not want to force the user of this load module to patch and
regenerate their device tree blob, and then restart their computer, to
get the right information in. I have tried this path and sure enough,
it works for me. But it will not be so easy for someone else who just
want to run this load module.

I tried to use "clk_get_sys()", but apparently you can't point at the
clock producer, you must point at the clock consumer, which would be
my timer. But this device node does not exist.

I would really like to just say "clk_of_get("/soc/clocks/myclock")"
where "/soc/clocks/myclock" is the device tree path to the clock
device I want to use.

Any help or hints are appreciated.

/Mats


\
 
 \ /
  Last update: 2013-06-25 17:21    [W:0.261 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site