提交 b5272b50 编写于 作者: G Guennadi Liakhovetski 提交者: Paul Mundt

sh: add a list of parent configurations to struct clk

Many system clocks can select a parent by writing a value to a specific field
in the configuration register. Add a list of parents and location and width of
the source selection field in the clock configuration register to struct clk to
assist in clk_set_parent() implementation.
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 71c3ba9a
...@@ -25,6 +25,10 @@ struct clk { ...@@ -25,6 +25,10 @@ struct clk {
int id; int id;
struct clk *parent; struct clk *parent;
struct clk **parent_table; /* list of parents to */
unsigned short parent_num; /* choose between */
unsigned char src_shift; /* source clock field in the */
unsigned char src_width; /* configuration register */
struct clk_ops *ops; struct clk_ops *ops;
struct list_head children; struct list_head children;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册