diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-10-16 10:21:40 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-10-17 12:39:20 -0400 |
commit | 6d631027b807cf2721dd38de4711a2528a5e0008 (patch) | |
tree | 63bae8af4a917597ee178a32e3654cae241ba70d | |
parent | 7fa75007b7d7421aea59ff2b12ab1bd65a5abfa6 (diff) |
clk: at91: generated: SSCs don't have a gclk
As the SSCs don't have gclk, don't check for their ID to allow them to set
the audio pll rate.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/at91/clk-generated.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/clk/at91/clk-generated.c b/drivers/clk/at91/clk-generated.c index 33481368740e..e709a12269c0 100644 --- a/drivers/clk/at91/clk-generated.c +++ b/drivers/clk/at91/clk-generated.c | |||
@@ -26,8 +26,6 @@ | |||
26 | #define GENERATED_SOURCE_MAX 6 | 26 | #define GENERATED_SOURCE_MAX 6 |
27 | #define GENERATED_MAX_DIV 255 | 27 | #define GENERATED_MAX_DIV 255 |
28 | 28 | ||
29 | #define GCK_ID_SSC0 43 | ||
30 | #define GCK_ID_SSC1 44 | ||
31 | #define GCK_ID_I2S0 54 | 29 | #define GCK_ID_I2S0 54 |
32 | #define GCK_ID_I2S1 55 | 30 | #define GCK_ID_I2S1 55 |
33 | #define GCK_ID_CLASSD 59 | 31 | #define GCK_ID_CLASSD 59 |
@@ -368,8 +366,7 @@ static void __init of_sama5d2_clk_generated_setup(struct device_node *np) | |||
368 | 366 | ||
369 | if (of_device_is_compatible(np, | 367 | if (of_device_is_compatible(np, |
370 | "atmel,sama5d2-clk-generated")) { | 368 | "atmel,sama5d2-clk-generated")) { |
371 | if (gck->id == GCK_ID_SSC0 || gck->id == GCK_ID_SSC1 || | 369 | if (gck->id == GCK_ID_I2S0 || gck->id == GCK_ID_I2S1 || |
372 | gck->id == GCK_ID_I2S0 || gck->id == GCK_ID_I2S1 || | ||
373 | gck->id == GCK_ID_CLASSD) | 370 | gck->id == GCK_ID_CLASSD) |
374 | gck->audio_pll_allowed = true; | 371 | gck->audio_pll_allowed = true; |
375 | else | 372 | else |