32 #define to_icst(_hw) container_of(_hw, struct clk_icst, hw)
34 static unsigned long icst_recalc_rate(
struct clk_hw *
hw,
35 unsigned long parent_rate)
45 static long icst_round_rate(
struct clk_hw *
hw,
unsigned long rate,
55 static int icst_set_rate(
struct clk_hw *
hw,
unsigned long rate,
56 unsigned long parent_rate)
67 static const struct clk_ops icst_ops = {
68 .recalc_rate = icst_recalc_rate,
69 .round_rate = icst_round_rate,
70 .set_rate = icst_set_rate,
78 struct clk_init_data init;
82 pr_err(
"could not allocate ICST clock!\n");
87 init.flags = CLK_IS_ROOT;
88 init.parent_names =
NULL;
90 icst->hw.init = &
init;
91 icst->params = desc->
params;
92 icst->getvco = desc->
getvco;
93 icst->setvco = desc->
setvco;