工具/软件:Linux
大家好、我目前正在使用 OMAPL138 SoC。 并设法从 Linux 引导 DSP、但希望将 DSP 内核频率从300MHz 更改为456Mhz。 请提供建议。 谢谢。
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.
您好!
您可以使用 devmem2来设置 PLL0和相应的 PLL0_SYSCLK1、后者为 ARM 和 DSP 时钟提供时钟源。
要查看需要哪些寄存器、您可以参考 OMAP-L138 GEL 文件(请参阅随附 的 e2e.ti.com/.../1537.OMAP_2D00_L138_5F00_LCDK.gel)
此致、
Yordan
假设您要读取/写入地址0x01C11100处的 PLLC0控制寄存器(PLLCTL)、然后从 Linux 用户空间中执行以下命令:
root@omapl138-lcdk:~ evmem2 0x01C11100 =>读取
/dev/mem 已打开。
映射到地址 bb6f11000的内存。
读取地址0x01C11100 (bb6f11100):0x00000049
root@omapl138-lcdk:~ evmem2 0x01C11100 w 0x41 => write 0x41
/dev/mem 已打开。
映射到地址 bb6f92000的内存。
读取地址0x01C11100 (bb6f92100):0x00000049
在地址0x01C11100 (bb6f92100)写入:0x00000041、回读0x00000041
root@omapl138-lcdk:~ evmem2 0x01C11100 =>再次读取以验证寄存器写入是否正确。
/dev/mem 已打开。
映射到地址 bb6fdc000的内存。
读取地址0x01C11100 (bb6fdc100):0x00000041
root@omapl138-lcdk:~#
此致、
Yordan