cpufreq等高层框架对频率进行操作,为了将频率映射到相应的OPP,OPP库提供了便利的函数来搜索OPP库内部管理的OPP链表。这些搜索函数如果找到匹配的OPP,将返回指向该OPP的指针,否则返回错误。这些错误预计由标准的错误检查,如IS_ERR()来处理,并由调用者采取适当的行动。 这些函数的调用者应在使用完OPP后调用dev_pm_opp...
opp library维护一张内部的列表,Soc框架只需要填充和访问opp数据。但是struct dev_opp和struct dev_pm_opp结构只是在opp library内部使用,外部不需要关心其内部。 API接口说明 添加一个opp table(dev_pm_opp_add) 代码语言:javascript 代码运行次数:0 运行 ...
1、 opp-shared :表示 opp-table1 是小核的各 CPU 共用。2、 rockchip,temp-hysteresis :迟滞参数,防止频繁进入高温或低温,单位:毫摄氏度。3、 rockchip,low-temp :低温阈值。小于该值时,进入低温,大于‘该值+迟滞参数’时,恢复常温。4、 rockchip,low-temp-min-volt :低温下最低电压...
}; cpu0_opp_table: cpu0-opp-table { compatible ="operating-points-v2"; opp-shared; }; ... spi2: spi@4000b000 {#address-cells = <1>;#size-cells = <0>;compatible ="st,stm32h7-spi"; reg = <0x4000b000 0x400>; interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; clocks = <&...
operating-points-v2 = <&cpu0_opp_table>; nvmem-cells = < _number_otp>; nvmem-cell-names = "part_number"; #cooling-cells = <2>; }; }; scmi_sram: sram@2ffff000 { compatible = "mmio-sram"; reg = <0x2ffff000 0x1000>; ...
* omap4_opp_init() - initialize omap4 opp table */ int __init omap4_opp_init(void) { int r = -ENODEV; if (cpu_is_omap443x()) r = omap_init_opp_table(omap443x_opp_def_list, ARRAY_SIZE(omap443x_opp_def_list)); else if (cpu_is_omap446x()) ...
operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; #cooling-cells = <2>; dynamic-power-coefficient = <311>; }; 即在内核中cpu也被抽象成了一种设备,并且可以为其配置一系列的参数。其中reg即用于配置其硬件id,而其它参数将会在后面相关模块中逐步介绍。
generic_bL_probe接口很简单,以dt_bL_ops为参数,调用bL_cpufreq_register接口,注册cpufreq driver。dt_bL_ops是一个struct cpufreq_arm_bL_ops类型的变量,提供两个回调函数,分别用于获取cluster切换之间的延迟,以及初始化opp table,后面用到的时候再介绍。
49 operating-points-v2 = <&cpu_opp_table>;50 cpu-idle-states = <&CPU_SLEEP_0>;51 };5253 cpu3: cpu@3 {54 compatible = "arm,cortex-a53", "arm,armv8";55 device_type = "cpu";56 enable-method = "psci";57 reg = <0x3>;58 operating-points-...
37、bserver # routeKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0 * U 0 0 0 eth1default UG 0 0 0 eth1到这里,问题已经基本排查出来了:从route的输出可知,linux的缺省路由是 ,而192.168.200段的IP仅仅供局域网主机之间共享数据使 38、用,没有连接...