clk: rockchip: add reset controller
authorHeiko Stübner <heiko@sntech.de>
Wed, 2 Jul 2014 23:59:39 +0000 (01:59 +0200)
committerMike Turquette <mturquette@linaro.org>
Sun, 13 Jul 2014 19:17:07 +0000 (12:17 -0700)
commit85fa0c7f8d05eb6baf2c122e85d45d928df0992b
treea0617813aaf643e6b80578632bfa58efdc044611
parent90c590254051f511299538c158e12fdad41ce163
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>
drivers/clk/rockchip/Makefile
drivers/clk/rockchip/clk.h
drivers/clk/rockchip/softrst.c [new file with mode: 0644]