diff options
author | Heiko Stübner <heiko@sntech.de> | 2014-08-20 04:45:38 +0400 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2014-10-01 16:11:42 +0400 |
commit | 6f1294b5a87238c2f87f74a9942faf2f4ffa63b2 (patch) | |
tree | 25c78581a04c4d0bbfabed3ff6116a6e54952efe /drivers/clk/rockchip/clk-rk3288.c | |
parent | aec1d96c530674f634730bbc604a807f1ba65bfb (diff) | |
download | linux-6f1294b5a87238c2f87f74a9942faf2f4ffa63b2.tar.xz |
clk: rockchip: add restart handler
Add infrastructure to write the correct value to the restart register and
register the restart notifier for both rk3188 (including rk3066) and rk3288.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/clk/rockchip/clk-rk3288.c')
-rw-r--r-- | drivers/clk/rockchip/clk-rk3288.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index b488f6a48d19..23278291da44 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -808,5 +808,7 @@ static void __init rk3288_clk_init(struct device_node *np) rockchip_register_softrst(np, 12, reg_base + RK3288_SOFTRST_CON(0), ROCKCHIP_SOFTRST_HIWORD_MASK); + + rockchip_register_restart_notifier(RK3288_GLB_SRST_FST); } CLK_OF_DECLARE(rk3288_cru, "rockchip,rk3288-cru", rk3288_clk_init); |