aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/rockchip/clk.h
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2014-07-02 19:59:39 -0400
committerMike Turquette <mturquette@linaro.org>2014-07-13 15:17:07 -0400
commit85fa0c7f8d05eb6baf2c122e85d45d928df0992b (patch)
treea0617813aaf643e6b80578632bfa58efdc044611 /drivers/clk/rockchip/clk.h
parent90c590254051f511299538c158e12fdad41ce163 (diff)
clk: rockchip: add reset controller
All Rockchip SoCs at least down to the ARM9-based RK28xx include the reset- controller for SoC peripherals in their clock controller. While the older SoCs (ARM9 and Cortex-A8) use a regular scheme to change register values, the Cortex-A9 SoCs use a hiword-mask making locking unecessary. To be compatible with both schemes the reset controller takes a flag to decide which scheme to use, similar to the other HIWORD_MASK flags used in the clock framework. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Acked-By: Max Schwarz <max.schwarz@online.de> Tested-By: Max Schwarz <max.schwarz@online.de> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/rockchip/clk.h')
-rw-r--r--drivers/clk/rockchip/clk.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h
index fb7ce851d4a0..32c334d7fc87 100644
--- a/drivers/clk/rockchip/clk.h
+++ b/drivers/clk/rockchip/clk.h
@@ -321,4 +321,18 @@ void rockchip_clk_register_branches(struct rockchip_clk_branch *clk_list,
321void rockchip_clk_register_plls(struct rockchip_pll_clock *pll_list, 321void rockchip_clk_register_plls(struct rockchip_pll_clock *pll_list,
322 unsigned int nr_pll, int grf_lock_offset); 322 unsigned int nr_pll, int grf_lock_offset);
323 323
324#define ROCKCHIP_SOFTRST_HIWORD_MASK BIT(0)
325
326#ifdef CONFIG_RESET_CONTROLLER
327void rockchip_register_softrst(struct device_node *np,
328 unsigned int num_regs,
329 void __iomem *base, u8 flags);
330#else
331static inline void rockchip_register_softrst(struct device_node *np,
332 unsigned int num_regs,
333 void __iomem *base, u8 flags)
334{
335}
336#endif
337
324#endif 338#endif