Lines Matching refs:isc
17 #include "microchip-isc-regs.h"
18 #include "microchip-isc.h"
229 static int isc_clk_register(struct isc_device *isc, unsigned int id)
231 struct regmap *regmap = isc->regmap;
232 struct device_node *np = isc->dev->of_node;
239 if (id == ISC_ISPCK && !isc->ispck_required)
254 clk_name = "isc-ispck";
262 isc_clk = &isc->isc_clks[id];
266 isc_clk->dev = isc->dev;
269 isc_clk->clk = clk_register(isc->dev, &isc_clk->hw);
271 dev_err(isc->dev, "%s: clock register fail\n", clk_name);
280 int microchip_isc_clk_init(struct isc_device *isc)
285 for (i = 0; i < ARRAY_SIZE(isc->isc_clks); i++)
286 isc->isc_clks[i].clk = ERR_PTR(-EINVAL);
288 for (i = 0; i < ARRAY_SIZE(isc->isc_clks); i++) {
289 ret = isc_clk_register(isc, i);
298 void microchip_isc_clk_cleanup(struct isc_device *isc)
302 of_clk_del_provider(isc->dev->of_node);
304 for (i = 0; i < ARRAY_SIZE(isc->isc_clks); i++) {
305 struct isc_clk *isc_clk = &isc->isc_clks[i];