This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM5716:500MHz 速度等级的时钟配置

Guru**** 2609895 points
Other Parts Discussed in Thread: AM5716

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/655162/linux-am5716-clock-configuration-for-500mhz-speed-grade

器件型号:AM5716

工具/软件:Linux

您好!

我想为 AM5716的500MHz 速度等级配置时钟频率。 我们设计了自己的电路板、其中包含27MHz 振荡器、基于 Linux 处理器 SDK 3.3 (ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04-linux-x86-Install.bin)的运行 uboot 和 Linux。

我按照 http://processors.wiki.ti.com/index.php/Linux_Porting_Guide_for_AM571x/AM570x_Speed_Grades 中的说明更改了配置  。

然后、我通过在末尾添加以下行修改了 Linux 器件树:

CPU0{&CPU0}
时钟频率=<500000000>;
};

CPU0_OPP_TABLE{
opp_nom@500000000{
opp-Hz =/bits/64 <500000000>;
op-microvolt =<1060000 850000 1150000>;
opp-supported-HW =<0xFF 0x01>;
opp-suspend;
};

/delete-node/opp_od@1176000000;
/删除节点/ opp_high@1500000000;
/删除节点/ opp_nom@1000000000;
};

DPLL_DSP_CK{
分配的时钟速率=<500000000 >;
};

DPLL_DSP_M2_CK{
分配的时钟速率=<500000000 >;
};

&DPLL_DSP_m3x2_ck{
分配的时钟速率=<33333332>;
};

系统引导至 Linux 后、我检查了寄存器以及 MPU 和 DDR 的时钟频率是否正确、但 DSP 内核仍处于750MHz (寄存器0x4a005240中的值为0x0000fa08)。  

有人能向我解释一下如何为 DSP 内核设置时钟频率吗?

谢谢、

  Stephan

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    软件团队已收到通知。 他们将在这里作出回应。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    [引用用户="Stephan Karger"]

    然后、我通过在末尾添加以下行修改了 Linux 器件树:

    CPU0{&CPU0}
    时钟频率=<500000000>;
    };

    CPU0_OPP_TABLE{
    opp_nom@500000000{
    opp-Hz =/bits/64 <500000000>;
    op-microvolt =<1060000 850000 1150000>;
    opp-supported-HW =<0xFF 0x01>;
    opp-suspend;
    };

    /delete-node/opp_od@1176000000;
    /删除节点/ opp_high@1500000000;
    /删除节点/ opp_nom@1000000000;
    };

    [/报价]

    这些修改似乎与 MPU 相关、而不是与 DSP 相关。

    关于 DSP 速度变化、除了"Assigned-clock-RARates =<500000000>"更改外、还应在 u-boot 代码库中进行修改:

    u-boot/arch/arm/mach-omap2/omap5/fdt.c

    所需的 u-boot 修改在 wiki 的"设置其他处理内核的速度"部分中进行了说明。

    此致、
    帕维尔

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Pavel、

    我尝试覆盖 u-boot/arch/arm/mach-OMAP2/omap5/FDT.c 中数组 dra7_opp_dsp_clk_rates 中的所有条目、并且可能在我将所有值设置为500000000后、初始化的数组会起作用。

    此致、
    Stephan