Lines Matching refs:pllx
1102 static void tegra210_pllx_set_defaults(struct tegra_clk_pll *pllx) in tegra210_pllx_set_defaults() argument
1107 pllx->params->defaults_set = true; in tegra210_pllx_set_defaults()
1110 pllx_get_dyn_steps(&pllx->hw, &step_a, &step_b); in tegra210_pllx_set_defaults()
1116 if (readl_relaxed(clk_base + pllx->params->base_reg) & PLL_ENABLE) { in tegra210_pllx_set_defaults()
1122 pllx_check_defaults(pllx); in tegra210_pllx_set_defaults()
1124 if (!pllx->params->defaults_set) in tegra210_pllx_set_defaults()
1127 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_set_defaults()
1130 val = readl_relaxed(clk_base + pllx->params->ext_misc_reg[0]); in tegra210_pllx_set_defaults()
1133 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[0]); in tegra210_pllx_set_defaults()
1141 pllx->params->ext_misc_reg[0]); in tegra210_pllx_set_defaults()
1145 pllx->params->ext_misc_reg[1]); in tegra210_pllx_set_defaults()
1148 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_set_defaults()
1152 pllx->params->ext_misc_reg[3]); in tegra210_pllx_set_defaults()
1156 pllx->params->ext_misc_reg[4]); in tegra210_pllx_set_defaults()
1158 pllx->params->ext_misc_reg[5]); in tegra210_pllx_set_defaults()
1358 static int tegra210_pllx_dyn_ramp(struct tegra_clk_pll *pllx, in tegra210_pllx_dyn_ramp() argument
1363 ndiv_new_mask = (divn_mask(pllx) >> pllx->params->div_nmp->divn_shift) in tegra210_pllx_dyn_ramp()
1366 val = readl_relaxed(clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1369 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1372 val = readl_relaxed(clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1374 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1377 tegra210_wait_for_mask(pllx, pllx->params->ext_misc_reg[2], in tegra210_pllx_dyn_ramp()
1380 base = readl_relaxed(clk_base + pllx->params->base_reg) & in tegra210_pllx_dyn_ramp()
1381 (~divn_mask_shifted(pllx)); in tegra210_pllx_dyn_ramp()
1382 base |= cfg->n << pllx->params->div_nmp->divn_shift; in tegra210_pllx_dyn_ramp()
1383 writel_relaxed(base, clk_base + pllx->params->base_reg); in tegra210_pllx_dyn_ramp()
1387 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1391 __clk_get_name(pllx->hw.clk), cfg->m, cfg->n, cfg->p, in tegra210_pllx_dyn_ramp()
1393 pllx->params->pdiv_tohw[cfg->p].pdiv / 1000); in tegra210_pllx_dyn_ramp()