mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 15:42:19 +02:00
ARM: tegra: clock: Add round_rate op for shared clocks
Change-Id: Ica3f9fd9db4fe38f2c9ca3fc248526211f59c622 Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
parent
cea5c11234
commit
5feeeb6ace
|
|
@ -1245,6 +1245,11 @@ static int tegra_clk_shared_bus_set_rate(struct clk *c, unsigned long rate)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static long tegra_clk_shared_bus_round_rate(struct clk *c, unsigned long rate)
|
||||
{
|
||||
return clk_round_rate(c->parent, rate);
|
||||
}
|
||||
|
||||
static int tegra_clk_shared_bus_enable(struct clk *c)
|
||||
{
|
||||
c->u.shared_bus_user.enabled = true;
|
||||
|
|
@ -1263,6 +1268,7 @@ static struct clk_ops tegra_clk_shared_bus_ops = {
|
|||
.enable = tegra_clk_shared_bus_enable,
|
||||
.disable = tegra_clk_shared_bus_disable,
|
||||
.set_rate = tegra_clk_shared_bus_set_rate,
|
||||
.round_rate = tegra_clk_shared_bus_round_rate,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user