Lines Matching refs:clocks
3 * JZ47xx SoCs TCU clocks driver
54 struct clk_hw_onecell_data *clocks;
267 struct clk_hw_onecell_data *clocks)
292 clocks->hws[idx] = &tcu_clk->hw;
363 tcu->clocks = kzalloc(struct_size(tcu->clocks, hws, TCU_CLK_COUNT),
365 if (!tcu->clocks) {
370 tcu->clocks->num = TCU_CLK_COUNT;
375 tcu->clocks);
383 * We set EXT as the default parent clock for all the TCU clocks
391 tcu->clocks);
401 tcu->clocks);
408 ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, tcu->clocks);
420 clk_hw_unregister(tcu->clocks->hws[i + 1]);
422 clk_hw_unregister(tcu->clocks->hws[i]);
424 for (i = 0; i < tcu->clocks->num; i++)
425 if (tcu->clocks->hws[i])
426 clk_hw_unregister(tcu->clocks->hws[i]);
427 kfree(tcu->clocks);
467 pr_crit("Failed to initialize TCU clocks: %d\n", ret);