Linux时钟框架与ALSA SoC框架解析
1. Linux通用时钟框架
1.1 复合时钟结构与注册
复合时钟数据结构的字段含义如下:
- hw :与其他时钟结构一样,是通用接口和硬件特定接口之间的句柄。
- mux_hw :代表复用时钟。
- rate_hw :代表分频时钟。
- gate_hw :代表门控时钟。
- mux_ops 、 rate_ops 和 gate_ops :分别是复用、分频和门控的时钟操作。
可以通过以下接口注册复合时钟:
struct clk_hw *clk_hw_register_composite(
struct device *dev, const char *name,
const char * const *parent_names, int num_parents,
struct clk_hw *mux_hw,
const struct clk_ops *mux_ops,
struct clk_hw *rate_hw,
const struct clk_ops *rate_ops,
struct clk_hw *gate_hw,
const struct clk_ops *gate_ops,
unsigned long flag
超级会员免费看
订阅专栏 解锁全文
1万+

被折叠的 条评论
为什么被折叠?



