完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
|
相关推荐
1个回答
|
|
需求:
固定CPU频率 方法: 路径:/kernel/arch/arm/boot/dts/rk3288.dtsi CPU默认为变频,代码如下; cpu0_opp_table: opp_table0 { compatible = "operating-points-v2"; opp-shared; clocks = <&cru PLL_APLL>; rockchip,avs-scale = <17>; rockchip,max-volt = <1350000>; nvmem-cells = <&cpu_leakage>, <&special_function>, <&performance>, <&process_version>, <&performance_w>; nvmem-cell-names = "leakage", "special", "performance", "process", "performance-w"; rockchip,bin-scaling-sel = < 0 17 1 25 2 27 3 31 >; rockchip,pvtm-voltage-sel = < 0 14300 0 14301 15000 1 15001 16000 2 16001 99999 3 >; rockchip,pvtm-freq = <408000>; rockchip,pvtm-volt = <1000000>; rockchip,pvtm-ch = <0 0>; rockchip,pvtm-sample-time = <1000>; rockchip,pvtm-number = <10>; rockchip,pvtm-error = <1000>; rockchip,pvtm-ref-temp = <35>; rockchip,pvtm-temp-prop = <(-18) (-18)>; rockchip,thermal-zone = "soc-thermal"; opp-126000000 { opp-hz = /bits/ 64 <126000000>; opp-microvolt = <950000 950000 1350000>; opp-microvolt-L0 = <950000 950000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-216000000 { opp-hz = /bits/ 64 <216000000>; opp-microvolt = <950000 950000 1350000>; opp-microvolt-L0 = <950000 950000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-408000000 { opp-hz = /bits/ 64 <408000000>; opp-microvolt = <975000 975000 1350000>; opp-microvolt-L0 = <975000 975000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-600000000 { opp-hz = /bits/ 64 <600000000>; opp-microvolt = <975000 975000 1350000>; opp-microvolt-L0 = <975000 975000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-696000000 { opp-hz = /bits/ 64 <696000000>; opp-microvolt = <975000 975000 1350000>; opp-microvolt-L0 = <975000 975000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-816000000 { opp-hz = /bits/ 64 <816000000>; opp-microvolt = <1075000 1075000 1350000>; opp-microvolt-L0 = <1075000 1075000 1350000>; opp-microvolt-L1 = <1050000 1050000 1350000>; opp-microvolt-L2 = <1000000 1000000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; opp-suspend; }; opp-1008000000 { opp-hz = /bits/ 64 <1008000000>; opp-microvolt = <1150000 1150000 1350000>; opp-microvolt-L0 = <1150000 1150000 1350000>; opp-microvolt-L1 = <1100000 1100000 1350000>; opp-microvolt-L2 = <1050000 1050000 1350000>; opp-microvolt-L3 = <1000000 1000000 1350000>; clock-latency-ns = <40000>; }; opp-1200000000 { opp-hz = /bits/ 64 <1200000000>; opp-microvolt = <1200000 1200000 1350000>; opp-microvolt-L0 = <1200000 1200000 1350000>; opp-microvolt-L1 = <1150000 1150000 1350000>; opp-microvolt-L2 = <1100000 1100000 1350000>; opp-microvolt-L3 = <1050000 1050000 1350000>; clock-latency-ns = <40000>; }; opp-1416000000 { opp-hz = /bits/ 64 <1416000000>; opp-microvolt = <1300000 1300000 1350000>; opp-microvolt-L0 = <1300000 1300000 1350000>; opp-microvolt-L1 = <1250000 1250000 1350000>; opp-microvolt-L2 = <1200000 1200000 1350000>; opp-microvolt-L3 = <1150000 1150000 1350000>; clock-latency-ns = <40000>; }; opp-1512000000 { opp-hz = /bits/ 64 <1512000000>; opp-microvolt = <1350000 1350000 1350000>; opp-microvolt-L0 = <1350000 1350000 1350000>; opp-microvolt-L1 = <1300000 1300000 1350000>; opp-microvolt-L2 = <1250000 1250000 1350000>; opp-microvolt-L3 = <1200000 1200000 1350000>; clock-latency-ns = <40000>; }; opp-1608000000 { opp-hz = /bits/ 64 <1608000000>; opp-microvolt = <1350000 1350000 1350000>; opp-microvolt-L0 = <1350000 1350000 1350000>; opp-microvolt-L1 = <1350000 1350000 1350000>; opp-microvolt-L2 = <1300000 1300000 1350000>; opp-microvolt-L3 = <1250000 1250000 1350000>; clock-latency-ns = <40000>; }; }; 例如:固定频率两个频率,注释掉其他即可 cpu0_opp_table: opp_table0 { compatible = "operating-points-v2"; opp-shared; clocks = <&cru PLL_APLL>; rockchip,avs-scale = <17>; rockchip,max-volt = <1350000>; nvmem-cells = <&cpu_leakage>, <&special_function>, <&performance>, <&process_version>, <&performance_w>; nvmem-cell-names = "leakage", "special", "performance", "process", "performance-w"; rockchip,bin-scaling-sel = < 0 17 1 25 2 27 3 31 >; rockchip,pvtm-voltage-sel = < 0 14300 0 14301 15000 1 15001 16000 2 16001 99999 3 >; rockchip,pvtm-freq = <408000>; rockchip,pvtm-volt = <1000000>; rockchip,pvtm-ch = <0 0>; rockchip,pvtm-sample-time = <1000>; rockchip,pvtm-number = <10>; rockchip,pvtm-error = <1000>; rockchip,pvtm-ref-temp = <35>; rockchip,pvtm-temp-prop = <(-18) (-18)>; rockchip,thermal-zone = "soc-thermal"; /* opp-126000000 { opp-hz = /bits/ 64 <126000000>; opp-microvolt = <950000 950000 1350000>; opp-microvolt-L0 = <950000 950000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-216000000 { opp-hz = /bits/ 64 <216000000>; opp-microvolt = <950000 950000 1350000>; opp-microvolt-L0 = <950000 950000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-408000000 { opp-hz = /bits/ 64 <408000000>; opp-microvolt = <975000 975000 1350000>; opp-microvolt-L0 = <975000 975000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-600000000 { opp-hz = /bits/ 64 <600000000>; opp-microvolt = <975000 975000 1350000>; opp-microvolt-L0 = <975000 975000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-696000000 { opp-hz = /bits/ 64 <696000000>; opp-microvolt = <975000 975000 1350000>; opp-microvolt-L0 = <975000 975000 1350000>; opp-microvolt-L1 = <950000 950000 1350000>; opp-microvolt-L2 = <950000 950000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; }; opp-816000000 { opp-hz = /bits/ 64 <816000000>; opp-microvolt = <1075000 1075000 1350000>; opp-microvolt-L0 = <1075000 1075000 1350000>; opp-microvolt-L1 = <1050000 1050000 1350000>; opp-microvolt-L2 = <1000000 1000000 1350000>; opp-microvolt-L3 = <950000 950000 1350000>; clock-latency-ns = <40000>; opp-suspend; }; opp-1008000000 { opp-hz = /bits/ 64 <1008000000>; opp-microvolt = <1150000 1150000 1350000>; opp-microvolt-L0 = <1150000 1150000 1350000>; opp-microvolt-L1 = <1100000 1100000 1350000>; opp-microvolt-L2 = <1050000 1050000 1350000>; opp-microvolt-L3 = <1000000 1000000 1350000>; clock-latency-ns = <40000>; }; opp-1200000000 { opp-hz = /bits/ 64 <1200000000>; opp-microvolt = <1200000 1200000 1350000>; opp-microvolt-L0 = <1200000 1200000 1350000>; opp-microvolt-L1 = <1150000 1150000 1350000>; opp-microvolt-L2 = <1100000 1100000 1350000>; opp-microvolt-L3 = <1050000 1050000 1350000>; clock-latency-ns = <40000>; }; */ opp-1416000000 { opp-hz = /bits/ 64 <1416000000>; opp-microvolt = <1300000 1300000 1350000>; opp-microvolt-L0 = <1300000 1300000 1350000>; opp-microvolt-L1 = <1250000 1250000 1350000>; opp-microvolt-L2 = <1200000 1200000 1350000>; opp-microvolt-L3 = <1150000 1150000 1350000>; clock-latency-ns = <40000>; }; opp-1512000000 { opp-hz = /bits/ 64 <1512000000>; opp-microvolt = <1350000 1350000 1350000>; opp-microvolt-L0 = <1350000 1350000 1350000>; opp-microvolt-L1 = <1300000 1300000 1350000>; opp-microvolt-L2 = <1250000 1250000 1350000>; opp-microvolt-L3 = <1200000 1200000 1350000>; clock-latency-ns = <40000>; }; /* opp-1608000000 { opp-hz = /bits/ 64 <1608000000>; opp-microvolt = <1350000 1350000 1350000>; opp-microvolt-L0 = <1350000 1350000 1350000>; opp-microvolt-L1 = <1350000 1350000 1350000>; opp-microvolt-L2 = <1300000 1300000 1350000>; opp-microvolt-L3 = <1250000 1250000 1350000>; clock-latency-ns = <40000>; }; */ }; |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
937 浏览 0 评论
1138 浏览 1 评论
935 浏览 1 评论
2163 浏览 1 评论
3475 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 01:12 , Processed in 0.570296 second(s), Total 70, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号