4 #include <dt-bindings/clock/rockchip,rk3188.h>
5 #include <linux/rockchip/iomap.h>
6 #include <linux/rockchip/grf.h>
8 #define MHZ (1000UL * 1000UL)
11 struct clk_ops_table {
13 const struct clk_ops *clk_ops;
15 const struct clk_ops *rk_get_clkops(unsigned int idx);
20 #if defined(RKCLK_DEBUG)
21 #define clk_debug(fmt, args...) printk(KERN_INFO "rkclk: "fmt, ##args)
23 #define clk_debug(fmt, args...) do {} while(0)
26 #define clk_err(fmt, args...) printk(KERN_ERR "rkclk: "fmt, ##args)
28 u32 cru_readl(u32 offset);
29 void cru_writel(u32 val, u32 offset);
31 u32 grf_readl(u32 offset);
33 #endif /* __RK_CLKOPS_H */