Lines Matching refs:pllx
1174 static void tegra210_pllx_set_defaults(struct tegra_clk_pll *pllx) in tegra210_pllx_set_defaults() argument
1179 pllx->params->defaults_set = true; in tegra210_pllx_set_defaults()
1182 pllx_get_dyn_steps(&pllx->hw, &step_a, &step_b); in tegra210_pllx_set_defaults()
1188 if (readl_relaxed(clk_base + pllx->params->base_reg) & PLL_ENABLE) { in tegra210_pllx_set_defaults()
1194 pllx_check_defaults(pllx); in tegra210_pllx_set_defaults()
1196 if (!pllx->params->defaults_set) in tegra210_pllx_set_defaults()
1199 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_set_defaults()
1202 val = readl_relaxed(clk_base + pllx->params->ext_misc_reg[0]); in tegra210_pllx_set_defaults()
1205 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[0]); in tegra210_pllx_set_defaults()
1213 pllx->params->ext_misc_reg[0]); in tegra210_pllx_set_defaults()
1217 pllx->params->ext_misc_reg[1]); in tegra210_pllx_set_defaults()
1220 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_set_defaults()
1224 pllx->params->ext_misc_reg[3]); in tegra210_pllx_set_defaults()
1228 pllx->params->ext_misc_reg[4]); in tegra210_pllx_set_defaults()
1230 pllx->params->ext_misc_reg[5]); in tegra210_pllx_set_defaults()
1430 static int tegra210_pllx_dyn_ramp(struct tegra_clk_pll *pllx, in tegra210_pllx_dyn_ramp() argument
1435 ndiv_new_mask = (divn_mask(pllx) >> pllx->params->div_nmp->divn_shift) in tegra210_pllx_dyn_ramp()
1438 val = readl_relaxed(clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1441 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1444 val = readl_relaxed(clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1446 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1449 tegra210_wait_for_mask(pllx, pllx->params->ext_misc_reg[2], in tegra210_pllx_dyn_ramp()
1452 base = readl_relaxed(clk_base + pllx->params->base_reg) & in tegra210_pllx_dyn_ramp()
1453 (~divn_mask_shifted(pllx)); in tegra210_pllx_dyn_ramp()
1454 base |= cfg->n << pllx->params->div_nmp->divn_shift; in tegra210_pllx_dyn_ramp()
1455 writel_relaxed(base, clk_base + pllx->params->base_reg); in tegra210_pllx_dyn_ramp()
1459 writel_relaxed(val, clk_base + pllx->params->ext_misc_reg[2]); in tegra210_pllx_dyn_ramp()
1463 __clk_get_name(pllx->hw.clk), cfg->m, cfg->n, cfg->p, in tegra210_pllx_dyn_ramp()
1465 pllx->params->pdiv_tohw[cfg->p].pdiv / 1000); in tegra210_pllx_dyn_ramp()