pd: rk3368: add rk3368 power domain support (as pd clk)
[firefly-linux-kernel-4.4.55.git] / drivers / clk / rockchip / clk-pd.c
index 14fc1e47e97eff296c0a22eec032591f1bafefc0..4748cb3b15e9a836620843a86986a14f2588fca4 100644 (file)
@@ -105,7 +105,7 @@ static int clk_pd_endisable(struct clk_hw *hw, bool enable)
        if (pd->lock)
                spin_lock_irqsave(pd->lock, flags);
 
-       /* ret = rockchip_pmu_ops.set_power_domain(pd->id, enable); */
+       ret = rockchip_pmu_ops.set_power_domain(pd->id, enable);
 
        if (pd->lock)
                spin_unlock_irqrestore(pd->lock, flags);
@@ -135,14 +135,12 @@ static void clk_pd_disable(struct clk_hw *hw)
        __clk_pd_notify(hw->clk, RK_CLK_PD_POST_DISABLE);
 }
 
-/*
 static int clk_pd_is_enabled(struct clk_hw *hw)
 {
        struct clk_pd *pd = to_clk_pd(hw);
 
        return rockchip_pmu_ops.power_domain_is_on(pd->id);
 }
-*/
 
 static int clk_pd_prepare(struct clk_hw *hw)
 {
@@ -161,7 +159,7 @@ const struct clk_ops clk_pd_ops = {
        .unprepare = clk_pd_unprepare,
        .enable = clk_pd_enable,
        .disable = clk_pd_disable,
-       /*.is_enabled = clk_pd_is_enabled,*/
+       .is_enabled = clk_pd_is_enabled,
 };
 
 static int clk_pd_virt_enable(struct clk_hw *hw)