clk: tegra: Fix xusb_fs_src mux
authorJim Lin <jilin@nvidia.com>
Thu, 15 May 2014 00:32:58 +0000 (17:32 -0700)
committerMike Turquette <mturquette@linaro.org>
Fri, 23 May 2014 05:14:52 +0000 (22:14 -0700)
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>
drivers/clk/tegra/clk-tegra-periph.c

index 1fa5c3f33b2033a5e4a32716706d2221d548adf1..a4063bc25208ad5c5f24fe97287808431d11bf2e 100644 (file)
@@ -329,7 +329,9 @@ static u32 mux_clkm_pllp_pllc_pllre_idx[] = {
 static const char *mux_clkm_48M_pllp_480M[] = {
        "clk_m", "pll_u_48M", "pll_p", "pll_u_480M"
 };
-#define mux_clkm_48M_pllp_480M_idx NULL
+static u32 mux_clkm_48M_pllp_480M_idx[] = {
+       [0] = 0, [1] = 2, [2] = 4, [3] = 6,
+};
 
 static const char *mux_clkm_pllre_clk32_480M_pllc_ref[] = {
        "clk_m", "pll_re_out", "clk_32k", "pll_u_480M", "pll_c", "pll_ref"