Skip to content

Commit

Permalink
clk: tegra: Fix clock sources for Tegra210 EMC
Browse files Browse the repository at this point in the history
The EMC clock sources for Tegra210 currently incorrectly include pll_c2
and pll_c3. However, both of these should have been pll_mb as shown in
the TRM. If Tegra210 happens to be configured such that the pll_mb is the
default clock for the EMC, as configured by the bootloader, then this will
cause a system hang on boot. This is because the kernel will disable the
pll_mb when disabling unused clock as it appears to be unused when it is
not.

Also add the additional pll_p clock source for the EMC.

Signed-off-by: Jon Hunter <[email protected]>
Acked-by: Rhyland Klein <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
jonhunter authored and thierryreding committed Feb 2, 2016
1 parent 2956994 commit 4f8d444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/clk/tegra/clk-tegra210.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ static unsigned long tegra210_input_freq[] = {
};

static const char *mux_pllmcp_clkm[] = {
"pll_m", "pll_c", "pll_p", "clk_m", "pll_m_ud", "pll_c2", "pll_c3",
"pll_m", "pll_c", "pll_p", "clk_m", "pll_m_ud", "pll_mb", "pll_mb",
"pll_p",
};
#define mux_pllmcp_clkm_idx NULL

Expand Down

0 comments on commit 4f8d444

Please sign in to comment.