Home
last modified time | relevance | path

Searched refs:emc_clock (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/devfreq/
Dtegra20-devfreq.c33 struct clk *emc_clock; member
53 err = clk_set_min_rate(tegra->emc_clock, rate); in tegra_devfreq_target()
57 err = clk_set_rate(tegra->emc_clock, 0); in tegra_devfreq_target()
64 clk_set_min_rate(tegra->emc_clock, devfreq->previous_freq); in tegra_devfreq_target()
86 stat->current_frequency = clk_get_rate(tegra->emc_clock); in tegra_devfreq_get_dev_status()
143 tegra->emc_clock = devm_clk_get(&pdev->dev, "emc"); in tegra_devfreq_probe()
144 if (IS_ERR(tegra->emc_clock)) { in tegra_devfreq_probe()
145 err = PTR_ERR(tegra->emc_clock); in tegra_devfreq_probe()
152 max_rate = clk_round_rate(tegra->emc_clock, ULONG_MAX); in tegra_devfreq_probe()
155 rate = clk_round_rate(tegra->emc_clock, rate); in tegra_devfreq_probe()
Dtegra30-devfreq.c156 struct clk *emc_clock; member
466 err = clk_set_min_rate(tegra->emc_clock, rate); in tegra_devfreq_target()
470 err = clk_set_rate(tegra->emc_clock, 0); in tegra_devfreq_target()
477 clk_set_min_rate(tegra->emc_clock, devfreq->previous_freq); in tegra_devfreq_target()
615 tegra->emc_clock = devm_clk_get(&pdev->dev, "emc"); in tegra_devfreq_probe()
616 if (IS_ERR(tegra->emc_clock)) { in tegra_devfreq_probe()
618 return PTR_ERR(tegra->emc_clock); in tegra_devfreq_probe()
639 tegra->max_freq = clk_round_rate(tegra->emc_clock, ULONG_MAX) / KHZ; in tegra_devfreq_probe()
640 tegra->cur_freq = clk_get_rate(tegra->emc_clock) / KHZ; in tegra_devfreq_probe()
649 rate = clk_round_rate(tegra->emc_clock, rate); in tegra_devfreq_probe()
[all …]