Skip to contentSkip to conversation

change cpu_freq

DISCUSSION Martin Margraf 2 participants 2 messages Jun 14, 2006

lore
Share & tools
lore
#0 lore raw

hi,

how can i change the cpu frequency of my osk5912 using the scale_cpu_freq feature of the 2.6.16 kernel? how is the syntax of this? is there a documentation available (except the ones in the documentation folder of my linux directory)?

my next question is, how can i read/write to the regs of the omap5912? during using 2.4 kernel i was able to access the regs directly with a module. but now with 2.6 kernel i get a segmentation fault. maybe someone can help me?

regards

martin

#1 lore raw
Quoted 1 line · Martin Margraf

my next question is, how can i read/write to the regs of the omap5912? during using 2.4 kernel i was able to access the regs directly with a module. but now with 2.6 kernel i get a segmentation fault. maybe someone can help me?

Nowadays there isn't 1-to-1 mapping between physical and virtual I/O addresses. If you're operating on a physical address, you can use the omap_{read,write} helper macros to access the registers. Alternatively, you can convert the physical address to a virtual one first by io_p2v(),
after which the memory accesses can be done directly.

Cheers,
Juha