}
#ifdef CONFIG_PM_SLEEP
+#ifndef CONFIG_ARCH_TEGRA_13x_SOC
static void tegra12_super_clk_resume(struct clk *c, struct clk *backup,
u32 setting)
{
BUG();
}
#endif
+#endif
static struct clk_ops tegra_super_ops = {
.init = tegra12_super_clk_init,
val |= (sel->value & CLK13_SOURCE_MASK) << shift;
if (c->flags & DIV_U71) {
- /* Make sure 7.1 divider is 1:1 */
+ /* Make sure 7.1 divider is 1:1
u32 div = clk13_readl(c->reg + SUPER_CLK_DIVIDER);
- /* BUG_ON(div & SUPER_CLOCK_DIV_U71_MASK); */
+ BUG_ON(div & SUPER_CLOCK_DIV_U71_MASK); */
}
if (c->refcnt)
return clk_set_rate(c->parent, rate);
}
-#ifdef CONFIG_PM_SLEEP
-static void tegra13_cpu_clk_resume(struct clk *c, struct clk *backup,
- u32 setting)
-{
- /* For sclk and cclk_g super clock just restore saved value */
- if (!(c->flags & DIV_2)) {
- clk13_writel_delay(setting, c->reg);
- return;
- }
- BUG();
-}
-#endif
-
static struct clk_ops tegra13_cpu_ops = {
.init = tegra13_cpu_clk_init,
.enable = tegra13_cpu_clk_enable,
#endif
}
-static void tegra12_dfll_clk_init(struct clk *c)
+static void __init tegra12_dfll_clk_init(struct clk *c)
{
c->ops->init = tegra12_dfll_cpu_late_init;
}
static void tegra12_pllp_init_dependencies(unsigned long pllp_rate)
{
+#ifndef CONFIG_ARCH_TEGRA_13x_SOC
u32 div;
unsigned long backup_rate;
+#endif
switch (pllp_rate) {
case 216000000: