Re: change cpu_freq

Juha Yrjölä
2006-06-14T12:44:06Z

Martin Margraf wrote:

> 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