* RE: change cpu_freq
@ 2006-06-16 6:40 Martin Margraf
0 siblings, 0 replies; 5+ messages in thread
From: Martin Margraf @ 2006-06-16 6:40 UTC (permalink / raw)
To: Minjie Lin; +Cc: linux-omap-open-source
hi minjie,
thanks for the answer.
how is the syntax of this? like "echo scaling_setspeed=value > /sys/devices...." ?
martin
> -----Ursprüngliche Nachricht-----
> Von: "Minjie Lin" <MLin@EmpowerTechnologies.com>
> Gesendet: 15.06.06 20:19:01
> An: <linux-omap-open-source@linux.omap.com>
> Betreff: RE: change cpu_freq
> Hi Martin,
>
> You can select userspace governor for cpu_freq and change
> /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed value
> to change the cpu frequency.
>
> Regards,
>
> Minjie
>
>
> -----Original Message-----
> From:
> linux-omap-open-source-bounces+mlin=empowertechnologies.com@linux.omap.c
> om
> [mailto:linux-omap-open-source-bounces+mlin=empowertechnologies.com@linu
> x.omap.com] On Behalf Of Martin Margraf
> Sent: June 14, 2006 5:34 AM
> To: linux-omap-open-source@linux.omap.com
> Subject: change cpu_freq
>
> 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
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: change cpu_freq
@ 2006-06-16 23:35 Minjie Lin
0 siblings, 0 replies; 5+ messages in thread
From: Minjie Lin @ 2006-06-16 23:35 UTC (permalink / raw)
To: Martin Margraf, Minjie Lin; +Cc: linux-omap-open-source
Hi Martin,
just use "echo value > /sys/devices..../scaling_setspeed"
Minjie
-----Original Message-----
From: Martin Margraf [mailto:m_margraf@web.de]
Sent: June 15, 2006 11:41 PM
To: Minjie Lin
Cc: linux-omap-open-source@linux.omap.com
Subject: RE: change cpu_freq
hi minjie,
thanks for the answer.
how is the syntax of this? like "echo scaling_setspeed=value > /sys/devices...." ?
martin
> -----Ursprüngliche Nachricht-----
> Von: "Minjie Lin" <MLin@EmpowerTechnologies.com>
> Gesendet: 15.06.06 20:19:01
> An: <linux-omap-open-source@linux.omap.com>
> Betreff: RE: change cpu_freq
> Hi Martin,
>
> You can select userspace governor for cpu_freq and change
> /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed value to change
> the cpu frequency.
>
> Regards,
>
> Minjie
>
>
> -----Original Message-----
> From:
> linux-omap-open-source-bounces+mlin=empowertechnologies.com@linux.omap
> linux-omap-open-source-bounces+.c
> om
> [mailto:linux-omap-open-source-bounces+mlin=empowertechnologies.com@li
> nu x.omap.com] On Behalf Of Martin Margraf
> Sent: June 14, 2006 5:34 AM
> To: linux-omap-open-source@linux.omap.com
> Subject: change cpu_freq
>
> 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
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: change cpu_freq
@ 2006-06-15 18:19 Minjie Lin
0 siblings, 0 replies; 5+ messages in thread
From: Minjie Lin @ 2006-06-15 18:19 UTC (permalink / raw)
To: Martin Margraf, linux-omap-open-source
Hi Martin,
You can select userspace governor for cpu_freq and change
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed value
to change the cpu frequency.
Regards,
Minjie
-----Original Message-----
From:
linux-omap-open-source-bounces+mlin=empowertechnologies.com@linux.omap.c
om
[mailto:linux-omap-open-source-bounces+mlin=empowertechnologies.com@linu
x.omap.com] On Behalf Of Martin Margraf
Sent: June 14, 2006 5:34 AM
To: linux-omap-open-source@linux.omap.com
Subject: change cpu_freq
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
_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source@linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
^ permalink raw reply [flat|nested] 5+ messages in thread
* change cpu_freq
@ 2006-06-14 12:34 Martin Margraf
2006-06-14 12:44 ` Juha Yrjölä
0 siblings, 1 reply; 5+ messages in thread
From: Martin Margraf @ 2006-06-14 12:34 UTC (permalink / raw)
To: linux-omap-open-source
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: change cpu_freq
2006-06-14 12:34 Martin Margraf
@ 2006-06-14 12:44 ` Juha Yrjölä
0 siblings, 0 replies; 5+ messages in thread
From: Juha Yrjölä @ 2006-06-14 12:44 UTC (permalink / raw)
To: Martin Margraf; +Cc: linux-omap-open-source
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-06-16 23:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-16 6:40 change cpu_freq Martin Margraf
-- strict thread matches above, loose matches on Subject: below --
2006-06-16 23:35 Minjie Lin
2006-06-15 18:19 Minjie Lin
2006-06-14 12:34 Martin Margraf
2006-06-14 12:44 ` Juha Yrjölä
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox