diff options
author | Jim Lin <jilin@nvidia.com> | 2014-05-14 20:32:58 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-05-23 01:14:52 -0400 |
commit | 9d61707b1f83324fc30918787cb6ef101997ecbd (patch) | |
tree | 4ab9ab1d7bdda71429326171c8392a6b27df4b34 /drivers/clk/tegra/clk-tegra-periph.c | |
parent | 2cfe16748bec853cb6b83d19546dfd226898b222 (diff) |
clk: tegra: Fix xusb_fs_src mux
The parent-to-index mapping for xusb_fs_src is incorrect.
Fix it by adding a mux table.
Signed-off-by: Jim Lin <jilin@nvidia.com>
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/tegra/clk-tegra-periph.c')
-rw-r--r-- | drivers/clk/tegra/clk-tegra-periph.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/tegra/clk-tegra-periph.c b/drivers/clk/tegra/clk-tegra-periph.c index 1fa5c3f33b20..a4063bc25208 100644 --- a/drivers/clk/tegra/clk-tegra-periph.c +++ b/drivers/clk/tegra/clk-tegra-periph.c | |||
@@ -329,7 +329,9 @@ static u32 mux_clkm_pllp_pllc_pllre_idx[] = { | |||
329 | static const char *mux_clkm_48M_pllp_480M[] = { | 329 | static const char *mux_clkm_48M_pllp_480M[] = { |
330 | "clk_m", "pll_u_48M", "pll_p", "pll_u_480M" | 330 | "clk_m", "pll_u_48M", "pll_p", "pll_u_480M" |
331 | }; | 331 | }; |
332 | #define mux_clkm_48M_pllp_480M_idx NULL | 332 | static u32 mux_clkm_48M_pllp_480M_idx[] = { |
333 | [0] = 0, [1] = 2, [2] = 4, [3] = 6, | ||
334 | }; | ||
333 | 335 | ||
334 | static const char *mux_clkm_pllre_clk32_480M_pllc_ref[] = { | 336 | static const char *mux_clkm_pllre_clk32_480M_pllc_ref[] = { |
335 | "clk_m", "pll_re_out", "clk_32k", "pll_u_480M", "pll_c", "pll_ref" | 337 | "clk_m", "pll_re_out", "clk_32k", "pll_u_480M", "pll_c", "pll_ref" |