Lines Matching refs:clk_base
169 static void __iomem *clk_base; variable
943 static void __init tegra114_fixed_clk_init(void __iomem *clk_base) in tegra114_fixed_clk_init() argument
964 static __init void tegra114_utmi_param_configure(void __iomem *clk_base) in tegra114_utmi_param_configure() argument
980 reg = readl_relaxed(clk_base + UTMIP_PLL_CFG2); in tegra114_utmi_param_configure()
997 writel_relaxed(reg, clk_base + UTMIP_PLL_CFG2); in tegra114_utmi_param_configure()
1000 reg = readl_relaxed(clk_base + UTMIP_PLL_CFG1); in tegra114_utmi_param_configure()
1015 writel_relaxed(reg, clk_base + UTMIP_PLL_CFG1); in tegra114_utmi_param_configure()
1018 reg = readl_relaxed(clk_base + UTMIPLL_HW_PWRDN_CFG0); in tegra114_utmi_param_configure()
1022 writel_relaxed(reg, clk_base + UTMIPLL_HW_PWRDN_CFG0); in tegra114_utmi_param_configure()
1024 reg = readl_relaxed(clk_base + UTMIP_PLL_CFG1); in tegra114_utmi_param_configure()
1027 writel_relaxed(reg, clk_base + UTMIP_PLL_CFG1); in tegra114_utmi_param_configure()
1033 reg = readl_relaxed(clk_base + UTMIPLL_HW_PWRDN_CFG0); in tegra114_utmi_param_configure()
1036 writel_relaxed(reg, clk_base + UTMIPLL_HW_PWRDN_CFG0); in tegra114_utmi_param_configure()
1041 reg = readl_relaxed(clk_base + UTMIPLL_HW_PWRDN_CFG0); in tegra114_utmi_param_configure()
1043 writel_relaxed(reg, clk_base + UTMIPLL_HW_PWRDN_CFG0); in tegra114_utmi_param_configure()
1046 static void __init tegra114_pll_init(void __iomem *clk_base, in tegra114_pll_init() argument
1053 clk = tegra_clk_register_pllxc("pll_c", "pll_ref", clk_base, in tegra114_pll_init()
1059 clk_base + PLLC_OUT, 0, TEGRA_DIVIDER_ROUND_UP, in tegra114_pll_init()
1062 clk_base + PLLC_OUT, 1, 0, in tegra114_pll_init()
1067 clk = tegra_clk_register_pllc("pll_c2", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
1072 clk = tegra_clk_register_pllc("pll_c3", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
1077 clk = tegra_clk_register_pllm("pll_m", "pll_ref", clk_base, pmc, in tegra114_pll_init()
1084 clk_base + PLLM_OUT, 0, TEGRA_DIVIDER_ROUND_UP, in tegra114_pll_init()
1087 clk_base + PLLM_OUT, 1, 0, CLK_IGNORE_UNUSED | in tegra114_pll_init()
1096 val = readl(clk_base + pll_u_params.base_reg); in tegra114_pll_init()
1098 writel(val, clk_base + pll_u_params.base_reg); in tegra114_pll_init()
1100 clk = tegra_clk_register_pll("pll_u", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
1104 tegra114_utmi_param_configure(clk_base); in tegra114_pll_init()
1108 CLK_SET_RATE_PARENT, clk_base + PLLU_BASE, in tegra114_pll_init()
1128 clk = tegra_clk_register_pll("pll_d", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
1138 clk = tegra_clk_register_pll("pll_d2", "pll_ref", clk_base, pmc, 0, in tegra114_pll_init()
1148 clk = tegra_clk_register_pllre("pll_re_vco", "pll_ref", clk_base, pmc, in tegra114_pll_init()
1153 clk_base + PLLRE_BASE, 16, 4, 0, in tegra114_pll_init()
1159 clk_base, 0, &pll_e_params, NULL); in tegra114_pll_init()
1169 static __init void tegra114_periph_clk_init(void __iomem *clk_base, in tegra114_periph_clk_init() argument
1185 clk_base + PLLD_BASE, 25, 1, 0, &pll_d_lock); in tegra114_periph_clk_init()
1192 clk_base + PLLD2_BASE, 25, 1, 0, &pll_d2_lock); in tegra114_periph_clk_init()
1195 clk = tegra_clk_register_periph_gate("dsia", "dsia_mux", 0, clk_base, in tegra114_periph_clk_init()
1199 clk = tegra_clk_register_periph_gate("dsib", "dsib_mux", 0, clk_base, in tegra114_periph_clk_init()
1207 clk_base + CLK_SOURCE_EMC, in tegra114_periph_clk_init()
1210 clk = tegra_clk_register_mc("mc", "emc_mux", clk_base + CLK_SOURCE_EMC, in tegra114_periph_clk_init()
1218 &data->periph, clk_base, data->offset, data->flags); in tegra114_periph_clk_init()
1222 tegra_periph_clk_init(clk_base, pmc_base, tegra114_clks, in tegra114_periph_clk_init()
1232 reg = readl(clk_base + CLK_RST_CONTROLLER_CPU_CMPLX_STATUS); in tegra114_wait_cpu_in_reset()
1247 readl(clk_base + CLK_SOURCE_CSITE); in tegra114_cpu_clock_suspend()
1248 writel(3 << 30, clk_base + CLK_SOURCE_CSITE); in tegra114_cpu_clock_suspend()
1251 readl(clk_base + CCLKG_BURST_POLICY); in tegra114_cpu_clock_suspend()
1253 readl(clk_base + CCLKG_BURST_POLICY + 4); in tegra114_cpu_clock_suspend()
1259 clk_base + CLK_SOURCE_CSITE); in tegra114_cpu_clock_resume()
1262 clk_base + CCLKG_BURST_POLICY); in tegra114_cpu_clock_resume()
1264 clk_base + CCLKG_BURST_POLICY + 4); in tegra114_cpu_clock_resume()
1334 readl_relaxed(clk_base + CPU_FINETRIM_SELECT); in tegra114_car_barrier()
1352 writel_relaxed(select, clk_base + CPU_FINETRIM_SELECT); in tegra114_clock_tune_cpu_trimmers_high()
1379 writel_relaxed(select, clk_base + CPU_FINETRIM_SELECT); in tegra114_clock_tune_cpu_trimmers_low()
1401 writel_relaxed(r, clk_base + CPU_FINETRIM_R); in tegra114_clock_tune_cpu_trimmers_init()
1410 writel_relaxed(dr, clk_base + CPU_FINETRIM_DR); in tegra114_clock_tune_cpu_trimmers_init()
1425 v = readl_relaxed(clk_base + RST_DFLL_DVCO); in tegra114_clock_assert_dfll_dvco_reset()
1427 writel_relaxed(v, clk_base + RST_DFLL_DVCO); in tegra114_clock_assert_dfll_dvco_reset()
1442 v = readl_relaxed(clk_base + RST_DFLL_DVCO); in tegra114_clock_deassert_dfll_dvco_reset()
1444 writel_relaxed(v, clk_base + RST_DFLL_DVCO); in tegra114_clock_deassert_dfll_dvco_reset()
1453 clk_base = of_iomap(np, 0); in tegra114_clock_init()
1454 if (!clk_base) { in tegra114_clock_init()
1473 clks = tegra_clk_init(clk_base, TEGRA114_CLK_CLK_MAX, in tegra114_clock_init()
1478 if (tegra_osc_clk_init(clk_base, tegra114_clks, tegra114_input_freq, in tegra114_clock_init()
1483 tegra114_fixed_clk_init(clk_base); in tegra114_clock_init()
1484 tegra114_pll_init(clk_base, pmc_base); in tegra114_clock_init()
1485 tegra114_periph_clk_init(clk_base, pmc_base); in tegra114_clock_init()
1486 tegra_audio_clk_init(clk_base, pmc_base, tegra114_clks, &pll_a_params); in tegra114_clock_init()
1488 tegra_super_clk_gen4_init(clk_base, pmc_base, tegra114_clks, in tegra114_clock_init()