本文介绍了Linux内核的of_clk_init中的__clk_of_table符号是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Linux内核3.10,该内核具有功能of_clk_init
,如下所示
I was going through linux kernel 3.10, which has a function of_clk_init
which is as below
void __init of_clk_init(const struct of_device_id *matches)
{
struct device_node *np;
if (!matches)
matches = __clk_of_table;
for_each_matching_node(np, matches) {
const struct of_device_id *match = of_match_node(matches, np);
of_clk_init_cb_t clk_init_cb = match->data;
clk_init_cb(np);
}
}
当我寻找符号__clk_of_table时,我没有找到任何参考,但是我非常确定__clk_of_table与linux设备树模型有关:
when i look for the symbol __clk_of_table i did not find any reference but i am very sure that __clk_of_table has got something to do with the linux device tree model is that ??
推荐答案
是的,__clk_of_table
反映了Blob中为时钟提供struct of_device_id
的特殊部分.
Yes, __clk_of_table
reflects the special section in the blob that provides struct of_device_id
for clocks.
在 include/linux/clk-provider.h
extern struct of_device_id __clk_of_table;
#define CLK_OF_DECLARE(name, compat, fn) OF_DECLARE_1(clk, name, compat, fn)
这篇关于Linux内核的of_clk_init中的__clk_of_table符号是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!