Skip to contentSkip to conversation

sys interface for get/set clock frequencies of all clocks in the system...

DISCUSSION Saru Addep 1 participant 1 message Feb 28, 2008

lore
Share & tools
lore

Saru Addep

author
#0 lore raw

Hi All,

Is there a generic sys interface to get and set various (devices) clock frequencies of the system in the 2.6.23 distribution.

Following is a more detaild description of my question :
There is /sys/devices/system/cpu/cpu0/cpufreq directory which has files that can be used to set processor frequency when cpufreq is enabled.

So lets say I have an i2c device, and I want to change the i2c clock frequency. Is there a generic framework where in all clocks for the system are present in one place, so that I can do a get/set on the clock frequencies.

I tried searching in /sys/devices but didn't find anything.

It will be good if there is something like
/sys/devices/system/clocks/<names_of_clocks>

Thanks
Saringni.