Lines Matching +full:de +full:- +full:asserting
1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/clk-provider.h>
16 #include <linux/reset-controller.h>
35 /* Handlers for SoC-specific reset lines */
121 return -EINVAL; in tegra_clk_rst_assert()
135 return -EINVAL; in tegra_clk_rst_deassert()
200 * All non-boot peripherals will be in reset state on resume. in tegra_clk_periph_resume()
201 * Wait for 5us of reset propagation delay before de-asserting in tegra_clk_periph_resume()
218 return -ENOMEM; in tegra_clk_periph_ctx_init()
262 for (; dup_list->clk_id < clk_max; dup_list++) { in tegra_init_dup_clks()
263 clk = clks[dup_list->clk_id]; in tegra_init_dup_clks()
264 dup_list->lookup.clk = clk; in tegra_init_dup_clks()
265 clkdev_add(&dup_list->lookup); in tegra_init_dup_clks()
274 for (; tbl->clk_id < clk_max; tbl++) { in tegra_init_from_table()
275 clk = clks[tbl->clk_id]; in tegra_init_from_table()
278 __func__, PTR_ERR(clk), tbl->clk_id); in tegra_init_from_table()
284 if (tbl->parent_id < clk_max) { in tegra_init_from_table()
285 struct clk *parent = clks[tbl->parent_id]; in tegra_init_from_table()
294 if (tbl->rate) in tegra_init_from_table()
295 if (clk_set_rate(clk, tbl->rate)) { in tegra_init_from_table()
297 __func__, tbl->rate, in tegra_init_from_table()
302 if (tbl->state) in tegra_init_from_table()
337 clks[i] = ERR_PTR(-EINVAL); in tegra_add_of_provider()
363 clk_register_clkdev(clks[dev_clks->dt_id], dev_clks->con_id, in tegra_register_devclks()
364 dev_clks->dev_id); in tegra_register_devclks()
369 "tegra-clk-debug"); in tegra_register_devclks()
387 node_name = kstrdup_and_replace(hw->init->name, '_', '-', GFP_KERNEL); in tegra_clk_get_of_node()
392 if (!strcmp(np->name, node_name)) in tegra_clk_get_of_node()
413 dev_name = kasprintf(GFP_KERNEL, "tegra_clk_%s", hw->init->name); in tegra_clk_dev_register()
419 pdev = of_platform_device_create(np, dev_name, &parent->dev); in tegra_clk_dev_register()
420 put_device(&parent->dev); in tegra_clk_dev_register()
428 dev = &pdev->dev; in tegra_clk_dev_register()