summaryrefslogtreecommitdiffstats
path: root/drivers/clk/tegra/clk-audio-sync.c
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2018-12-03 10:28:40 +0000
committerStephen Boyd <sboyd@kernel.org>2018-12-14 13:32:55 -0800
commit845d782d91448e0fbca686bca2cc9f9c2a9ba3e7 (patch)
treef1f931f9739a3f7bdf8e2d6b13fc963585f13867 /drivers/clk/tegra/clk-audio-sync.c
parent7514557c1c57c1973b7c2c6095c160f0a18f5da1 (diff)
downloadblackbird-op-linux-845d782d91448e0fbca686bca2cc9f9c2a9ba3e7.tar.gz
blackbird-op-linux-845d782d91448e0fbca686bca2cc9f9c2a9ba3e7.zip
clk: tegra: Fix maximum audio sync clock for Tegra124/210
The maximum frequency supported for I2S on Tegra124 and Tegra210 is 24.576MHz (as stated in the Tegra TK1 data sheet for Tegra124 and the Jetson TX1 module data sheet for Tegra210). However, the maximum I2S frequency is limited to 24MHz because that is the maximum frequency of the audio sync clock. Increase the maximum audio sync clock frequency to 24.576MHz for Tegra124 and Tegra210 in order to support 24.576MHz for I2S. Update the tegra_clk_register_sync_source() function so that it does not set the initial rate for the sync clocks and use the clock init tables to set the initial rate instead. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/tegra/clk-audio-sync.c')
-rw-r--r--drivers/clk/tegra/clk-audio-sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/tegra/clk-audio-sync.c b/drivers/clk/tegra/clk-audio-sync.c
index 92d04ce2dee6..53cdc0ec40f3 100644
--- a/drivers/clk/tegra/clk-audio-sync.c
+++ b/drivers/clk/tegra/clk-audio-sync.c
@@ -55,7 +55,7 @@ const struct clk_ops tegra_clk_sync_source_ops = {
};
struct clk *tegra_clk_register_sync_source(const char *name,
- unsigned long rate, unsigned long max_rate)
+ unsigned long max_rate)
{
struct tegra_clk_sync_source *sync;
struct clk_init_data init;
@@ -67,7 +67,6 @@ struct clk *tegra_clk_register_sync_source(const char *name,
return ERR_PTR(-ENOMEM);
}
- sync->rate = rate;
sync->max_rate = max_rate;
init.ops = &tegra_clk_sync_source_ops;
OpenPOWER on IntegriCloud