Lines Matching refs:clocks
3 * JZ47xx SoCs TCU clocks driver
55 struct clk_hw_onecell_data *clocks;
271 struct clk_hw_onecell_data *clocks)
296 clocks->hws[idx] = &tcu_clk->hw;
382 tcu->clocks = kzalloc(struct_size(tcu->clocks, hws, TCU_CLK_COUNT),
384 if (!tcu->clocks) {
389 tcu->clocks->num = TCU_CLK_COUNT;
394 tcu->clocks);
402 * We set EXT as the default parent clock for all the TCU clocks
410 tcu->clocks);
420 tcu->clocks);
427 ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, tcu->clocks);
439 clk_hw_unregister(tcu->clocks->hws[i + 1]);
441 clk_hw_unregister(tcu->clocks->hws[i]);
443 for (i = 0; i < tcu->clocks->num; i++)
444 if (tcu->clocks->hws[i])
445 clk_hw_unregister(tcu->clocks->hws[i]);
446 kfree(tcu->clocks);
486 pr_crit("Failed to initialize TCU clocks: %d\n", ret);