Skip to content

Commit

Permalink
clk: at91: generated: SSCs don't have a gclk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Belloni authored and Stephen Boyd committed Oct 17, 2018
1 parent 7fa7500 commit 6d63102
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/clk/at91/clk-generated.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#define GENERATED_SOURCE_MAX 6
#define GENERATED_MAX_DIV 255

#define GCK_ID_SSC0 43
#define GCK_ID_SSC1 44
#define GCK_ID_I2S0 54
#define GCK_ID_I2S1 55
#define GCK_ID_CLASSD 59
Expand Down Expand Up @@ -368,8 +366,7 @@ static void __init of_sama5d2_clk_generated_setup(struct device_node *np)

if (of_device_is_compatible(np,
"atmel,sama5d2-clk-generated")) {
if (gck->id == GCK_ID_SSC0 || gck->id == GCK_ID_SSC1 ||
gck->id == GCK_ID_I2S0 || gck->id == GCK_ID_I2S1 ||
if (gck->id == GCK_ID_I2S0 || gck->id == GCK_ID_I2S1 ||
gck->id == GCK_ID_CLASSD)
gck->audio_pll_allowed = true;
else
Expand Down

0 comments on commit 6d63102

Please sign in to comment.