Skip to content
Snippets Groups Projects
Commit cd3c6769 authored by Simon Glass's avatar Simon Glass Committed by Tom Warren
Browse files

tegra: clock: Adjust PLL access to avoid a warning


A harmless but confusing warning is displayed when looking up the
DisplayPort PLL. Correct this.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent 746dc76b
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ static struct clk_pll *get_pll(enum clock_id clkid) ...@@ -84,7 +84,7 @@ static struct clk_pll *get_pll(enum clock_id clkid)
assert(clock_id_is_pll(clkid)); assert(clock_id_is_pll(clkid));
if (clkid >= (enum clock_id)TEGRA_CLK_PLLS) { if (clkid >= (enum clock_id)TEGRA_CLK_PLLS) {
debug("%s: Invalid PLL\n", __func__); debug("%s: Invalid PLL %d\n", __func__, clkid);
return NULL; return NULL;
} }
return &clkrst->crc_pll[clkid]; return &clkrst->crc_pll[clkid];
...@@ -120,9 +120,12 @@ int clock_ll_read_pll(enum clock_id clkid, u32 *divm, u32 *divn, ...@@ -120,9 +120,12 @@ int clock_ll_read_pll(enum clock_id clkid, u32 *divm, u32 *divn,
unsigned long clock_start_pll(enum clock_id clkid, u32 divm, u32 divn, unsigned long clock_start_pll(enum clock_id clkid, u32 divm, u32 divn,
u32 divp, u32 cpcon, u32 lfcon) u32 divp, u32 cpcon, u32 lfcon)
{ {
struct clk_pll *pll = get_pll(clkid); struct clk_pll *pll = NULL;
u32 misc_data, data; u32 misc_data, data;
if (clkid < (enum clock_id)TEGRA_CLK_PLLS)
pll = get_pll(clkid);
/* /*
* We cheat by treating all PLL (except PLLU) in the same fashion. * We cheat by treating all PLL (except PLLU) in the same fashion.
* This works only because: * This works only because:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment