Lines Matching +full:opp +full:- +full:table
1 // SPDX-License-Identifier: GPL-2.0-only
6 #define dev_fmt(fmt) "tegra-soc: " fmt
59 return -EINVAL; in tegra_core_dev_init_opp_state()
66 * disabled. This makes sure the OPP vote below gets cached in in tegra_core_dev_init_opp_state()
78 return -EINVAL; in tegra_core_dev_init_opp_state()
81 /* first dummy rate-setting initializes voltage vote */ in tegra_core_dev_init_opp_state()
88 dev_err(dev, "failed to initialize OPP clock: %d\n", err); in tegra_core_dev_init_opp_state()
96 * devm_tegra_core_dev_init_opp_table() - initialize OPP table
97 * @dev: device for which OPP table is initialized
98 * @params: pointer to the OPP table configuration
100 * This function will initialize OPP table and sync OPP state of a Tegra SoC
117 * For some devices we don't have any OPP table in the DT, and in devm_tegra_core_dev_init_opp_table()
119 * create a dummy OPP table for them via this. The dummy OPP in devm_tegra_core_dev_init_opp_table()
120 * table is only capable of doing clk_set_rate() on invocation in devm_tegra_core_dev_init_opp_table()
139 dev_err(dev, "failed to set OPP config: %d\n", err); in devm_tegra_core_dev_init_opp_table()
144 * Tegra114+ doesn't support OPP yet, return early for non tegra20/30 in devm_tegra_core_dev_init_opp_table()
148 return -ENODEV; in devm_tegra_core_dev_init_opp_table()
151 * Older device-trees have an empty OPP table, we will get in devm_tegra_core_dev_init_opp_table()
152 * -ENODEV from devm_pm_opp_of_add_table() in this case. in devm_tegra_core_dev_init_opp_table()
156 if (err != -ENODEV) in devm_tegra_core_dev_init_opp_table()
157 dev_err(dev, "failed to add OPP table: %d\n", err); in devm_tegra_core_dev_init_opp_table()
162 if (params->init_state) { in devm_tegra_core_dev_init_opp_table()