Go to previous topic
Go to next topic
Last Post 02 Apr 2012 02:15 PM by  glennj@logicpd.com
Article: DM3730 --How to Read and Change CPU Clock Frequency
 0 Replies
Author Messages
glennj@logicpd.com
New Member
New Member
Posts:


--
02 Apr 2012 02:15 PM
    Q: How do I read and change the Clock Speed on the DM3730, AM3703 Development Kit?

    A:
    In LogicLoader (LoLo):

    In the Logicloader Command Description manual, (ver2.5 – 1020108A)
    To change the cpu-freq command has three settings
    losh> cpu-freq [high|nominal|low]
    To read the cpu-freq:
    losh> cpu-freq

    For Linux and Android:

    (Reference: WP491—DM3730-AM3703_Torpedo_SOM_Thermal_Management; 1021014A)
    Section 4.1.2:

    4.1.2 Linux and Android
    Linux provides several tools to change the DM3730/AM3703 OPPs. Changing the frequency with these tools also sets the correct core voltages. The /sys/devices/system/cpu/cpu0/cpufreq directory has several parameters for setting up frequency scaling.
    To read back the current frequency, use one of the two commands below.

    host$ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

    host$ cpufreq-info -f -m
    To read back available options for setting the CPU frequency, use the command below.

    host$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

    To manually set the CPU frequency, use the command below, where X is the frequency in kHz. Options are given by the previous command listed.

    host$ cpufreq-set -f X

    The example below uses this command to set the frequency to 1 GHz.

    host$ cpufreq-set -f 1000000

    ********************************************************************
    Note: Several of the value entries above are in KHz. The processor hardware is degraded if running at high speed >800MHz for an extended period of time. The software does not
    have frequency limitations.

    Sidenote:
    **********
    To include cpufrequtils in a build, the DM37x Linux BSP UG (1020203A) Section 2.2.1.2 has the following command:
    bash$ sudo apt-get install libtool

    PRODUCTS Included:
    DM3730, AM3703, DM3730 Torpedo, DM3730 Torpedo + Wireless


    ---