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