完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
|
|
相关推荐
1个回答
|
|
|
Platform: Rockchip
OS: Android 6.0 Kernel: 3.10.92 系统中有三张CPU相关的频率表: 1. rockchip-cpufreq.c: /* Frequency table index must be sequential starting at 0 */ static struct cpufreq_frequency_table default_freq_table[] = { {.frequency = 312 * 1000, .index = 875 * 1000}, {.frequency = 504 * 1000, .index = 925 * 1000}, {.frequency = 816 * 1000, .index = 975 * 1000}, {.frequency = 1008 * 1000, .index = 1075 * 1000}, {.frequency = 1200 * 1000, .index = 1150 * 1000}, {.frequency = 1416 * 1000, .index = 1250 * 1000}, {.frequency = 1608 * 1000, .index = 1350 * 1000}, {.frequency = CPUFREQ_TABLE_END}, }; static struct cpufreq_frequency_table *freq_table = default_freq_table; 2. rk3288.dtsi: &clk_core_dvfs_table { operating-points = < /* KHz uV */ 126000 900000 216000 900000 312000 900000 408000 900000 600000 900000 696000 950000 816000 1000000 1008000 1050000 1200000 1100000 1416000 1200000 1512000 1300000 1608000 1350000 // 1704000 1350000 // 1800000 1400000 >; //...... }; 3. rk3288.dtsi: &clk_core_dvfs_table { //...... support-pvtm = <1>; pvtm-operating-points = < /* KHz uV margin(uV)*/ 126000 900000 25000 216000 900000 25000 312000 900000 25000 408000 900000 25000 600000 900000 25000 696000 950000 25000 816000 1000000 25000 1008000 1050000 25000 1200000 1100000 25000 1416000 1200000 25000 1512000 1300000 25000 1608000 1350000 25000 >; status="okay"; };
代码调用: 第一张表被覆盖的地方: dvfs.c: static int cpufreq_init_cpu0(struct cpufreq_policy *policy) { freq_table = dvfs_get_freq_volt_table(clk_cpu_dvfs_node); } struct cpufreq_frequency_table *dvfs_get_freq_volt_table(struct dvfs_node *clk_dvfs_node) { struct cpufreq_frequency_table *table; if (!clk_dvfs_node) return NULL; mutex_lock(&clk_dvfs_node->vd->mutex); table = clk_dvfs_node->dvfs_table; mutex_unlock(&clk_dvfs_node->vd->mutex); return table; } 第二张表被覆盖的地方: int clk_enable_dvfs(struct dvfs_node *clk_dvfs_node) { if (clk_dvfs_node->support_pvtm) pvtm_set_dvfs_table(clk_dvfs_node); } |
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
谁有3566+电池+POE充电的方案,有个项目需要用该功能的主板
437 浏览 0 评论
RK3588的GMAC0与PHY的参考时钟电平匹配问题??????
4425 浏览 1 评论
请问各位大佬,如何解决,瑞芯微 RV1126B 使用 mpp 自带工具 调试时,内核直接报错崩溃!
1802 浏览 0 评论
使用rk3568开发板,核0\\1\\3运行linux,核2运行hal,在核0中怎么关闭核2
2359 浏览 0 评论
2363 浏览 0 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 10:57 , Processed in 0.992371 second(s), Total 72, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2927