如何将R128的lspsram频率提高至200M?

一、修改频率方法

首先通过cboot0命令,跳转到boot0的代码中,路径为:

${root_dir}/lichee/brandy-2.0/spl/

找到lspsram的代码,路径为:

${root_dir}/lichee/brandy-2.0/spl/drivers/psram

修改头文件,将200M的宏打开,修改如下:

复制代码
vi hal_psramctrl.h

diff --git a/drivers/psram/hal_psramctrl.h b/drivers/psram/hal_psramctrl.h
index a552a0e..114e330 100644
--- a/drivers/psram/hal_psramctrl.h
+++ b/drivers/psram/hal_psramctrl.h
@@ -39,7 +39,7 @@
  * definition CONFIG_PSRAM_200M.
  */

-// #define CONFIG_PSRAM_200M
+#define CONFIG_PSRAM_200M

 /* CLK CTRL MODULE */
 #define BUS_CLK_GATING_CTRL0  0x4003c004

然后重新编译boot0,就可以让lspsram初始化为200M了。

复制代码
mboot0 && pack

##二、根据log查看频率

根据boot0的系统log,可以查看到当前lspsram加载的频率,如下图所示:

复制代码
psram chip APS64 init ok!, freq 192000000

证明当前加载的是lspsram型号为APS64,频率为192MHz。若将频率切换成200MHz,此处的打印就会改成"freq 200000000"。

相关推荐
chlk1231 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑1 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件1 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号1 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash2 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI2 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行3 天前
Linux和window共享文件夹
linux
木心月转码ing3 天前
WSL+Cpp开发环境配置
linux
崔小汤呀4 天前
最全的docker安装笔记,包含CentOS和Ubuntu
linux·后端
何中应4 天前
vi编辑器使用
linux·后端·操作系统