ARM: rockchip: rk3228: add grf definition
[firefly-linux-kernel-4.4.55.git] / include / linux / rockchip / cru.h
index ce14c128283bdc8abb7f6c38849f6b1cf6beda3b..95924f555f2fdc994a2b9e4a0ec565eb9723313d 100755 (executable)
@@ -121,7 +121,7 @@ static inline void rk3288_cru_set_soft_reset(u32 idx, bool on)
        void __iomem *reg = RK_CRU_VIRT + RK3288_CRU_SOFTRSTS_CON(idx >> 4);
        u32 val = on ? 0x10001U << (idx & 0xf) : 0x10000U << (idx & 0xf);
        writel_relaxed(val, reg);
-       dsb();
+       dsb(sy);
 }
 
 #define RK3036_CRU_MODE_CON 0x0040
@@ -247,6 +247,7 @@ enum rk312x_cru_clk_gate {
 /*******************CRU OFFSET*********************/
 #define RK3368_CRU_CLKSEL_CON          0x100
 #define RK3368_CRU_CLKGATE_CON         0x200
+#define RK3368_CRU_CLKGATES_CON_CNT     25
 
 #define RK3368_PLL_CONS(id, i)         ((id) * 0x10 + ((i) * 4))
 #define RK3368_CRU_CLKSELS_CON(i)      (RK3368_CRU_CLKSEL_CON + ((i) * 4))