Lines Matching refs:clps711x_clk
44 struct clps711x_clk { struct
49 static struct clps711x_clk * __init _clps711x_clk_init(void __iomem *base, in _clps711x_clk_init() argument
53 struct clps711x_clk *clps711x_clk; in _clps711x_clk_init() local
59 clps711x_clk = kzalloc(struct_size(clps711x_clk, clk_data.hws, in _clps711x_clk_init()
62 if (!clps711x_clk) in _clps711x_clk_init()
65 spin_lock_init(&clps711x_clk->lock); in _clps711x_clk_init()
112 clps711x_clk->clk_data.hws[CLPS711X_CLK_DUMMY] = in _clps711x_clk_init()
114 clps711x_clk->clk_data.hws[CLPS711X_CLK_CPU] = in _clps711x_clk_init()
116 clps711x_clk->clk_data.hws[CLPS711X_CLK_BUS] = in _clps711x_clk_init()
118 clps711x_clk->clk_data.hws[CLPS711X_CLK_PLL] = in _clps711x_clk_init()
120 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMERREF] = in _clps711x_clk_init()
122 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER1] = in _clps711x_clk_init()
125 timer_div_table, &clps711x_clk->lock); in _clps711x_clk_init()
126 clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER2] = in _clps711x_clk_init()
129 timer_div_table, &clps711x_clk->lock); in _clps711x_clk_init()
130 clps711x_clk->clk_data.hws[CLPS711X_CLK_PWM] = in _clps711x_clk_init()
132 clps711x_clk->clk_data.hws[CLPS711X_CLK_SPIREF] = in _clps711x_clk_init()
134 clps711x_clk->clk_data.hws[CLPS711X_CLK_SPI] = in _clps711x_clk_init()
137 spi_div_table, &clps711x_clk->lock); in _clps711x_clk_init()
138 clps711x_clk->clk_data.hws[CLPS711X_CLK_UART] = in _clps711x_clk_init()
140 clps711x_clk->clk_data.hws[CLPS711X_CLK_TICK] = in _clps711x_clk_init()
143 if (IS_ERR(clps711x_clk->clk_data.hws[i])) in _clps711x_clk_init()
145 i, PTR_ERR(clps711x_clk->clk_data.hws[i])); in _clps711x_clk_init()
147 return clps711x_clk; in _clps711x_clk_init()
152 struct clps711x_clk *clps711x_clk; in clps711x_clk_init() local
154 clps711x_clk = _clps711x_clk_init(base, 73728000); in clps711x_clk_init()
156 BUG_ON(IS_ERR(clps711x_clk)); in clps711x_clk_init()
159 clk_hw_register_clkdev(clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER1], in clps711x_clk_init()
161 clk_hw_register_clkdev(clps711x_clk->clk_data.hws[CLPS711X_CLK_TIMER2], in clps711x_clk_init()
165 clk_hw_register_clkdev(clps711x_clk->clk_data.hws[CLPS711X_CLK_PWM], in clps711x_clk_init()
167 clk_hw_register_clkdev(clps711x_clk->clk_data.hws[CLPS711X_CLK_UART], in clps711x_clk_init()
169 clk_hw_register_clkdev(clps711x_clk->clk_data.hws[CLPS711X_CLK_UART], in clps711x_clk_init()
177 struct clps711x_clk *clps711x_clk; in clps711x_clk_init_dt() local
182 clps711x_clk = _clps711x_clk_init(base, fref); in clps711x_clk_init_dt()
183 BUG_ON(IS_ERR(clps711x_clk)); in clps711x_clk_init_dt()
185 clps711x_clk->clk_data.num = CLPS711X_CLK_MAX; in clps711x_clk_init_dt()
187 &clps711x_clk->clk_data); in clps711x_clk_init_dt()