Skip to content

Commit 67fc26b

Browse files
rhkleinp2mate-nv
authored andcommitted
clk: tegra: Fix PLLD mnp table
PLLD was using the same mnp table as PLLP. Fix it to use its own table which is different from PLLP's. Signed-off-by: Rhyland Klein <rklein@nvidia.com> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
1 parent 2ec35fd commit 67fc26b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎drivers/clk/tegra/clk-tegra124.c‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,15 @@ static struct tegra_clk_pll_params pll_a_params = {
570570
.flags = TEGRA_PLL_HAS_CPCON | TEGRA_PLL_USE_LOCK,
571571
};
572572

573+
static struct div_nmp plld_nmp = {
574+
.divm_shift = 0,
575+
.divm_width = 5,
576+
.divn_shift = 8,
577+
.divn_width = 11,
578+
.divp_shift = 20,
579+
.divp_width = 3,
580+
};
581+
573582
static struct tegra_clk_pll_freq_table pll_d_freq_table[] = {
574583
{12000000, 216000000, 864, 12, 4, 12},
575584
{13000000, 216000000, 864, 13, 4, 12},
@@ -603,7 +612,7 @@ static struct tegra_clk_pll_params pll_d_params = {
603612
.lock_mask = PLL_BASE_LOCK,
604613
.lock_enable_bit_idx = PLLDU_MISC_LOCK_ENABLE,
605614
.lock_delay = 1000,
606-
.div_nmp = &pllp_nmp,
615+
.div_nmp = &plld_nmp,
607616
.freq_table = pll_d_freq_table,
608617
.flags = TEGRA_PLL_HAS_CPCON | TEGRA_PLL_SET_LFCON |
609618
TEGRA_PLL_USE_LOCK,

0 commit comments

Comments
 (0)