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
/*******************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))