UPSTREAM: clk: rockchip: add a dummy clock for the watchdog pclk on rk3399
authorXing Zheng <zhengxing@rock-chips.com>
Wed, 25 May 2016 08:51:56 +0000 (16:51 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Fri, 27 May 2016 12:37:16 +0000 (20:37 +0800)
commitee4021af68b35898309c77bafad3069445f0246b
tree4520c33b49f8700305cc1d8e6441b97dc4d9203b
parent9608a83ed09cbd22c1681f68826153979df96f8b
UPSTREAM: clk: rockchip: add a dummy clock for the watchdog pclk on rk3399

Like rk3288, the pclk supplying the watchdog is controlled via the
SGRF register area. Additionally the SGRF isn't even writable in
every boot mode.

But still the clock control is available and in the future someone
might want to use it. Therefore define a simple clock for the time
being so that the watchdog driver can read its rate.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit git.kernel.org mmind/linux-rockchip.git
volatile-v4.8-clk/next e3d86c1a2295184374cf25cdb525e68a93b0ff90)

Change-Id: I616846d389d324be529966c63820e8707c7d428f
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
drivers/clk/rockchip/clk-rk3399.c