diff options
author | Heiko Stuebner <heiko@sntech.de> | 2015-01-20 15:06:55 -0500 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2015-01-22 09:42:24 -0500 |
commit | e142a4e91443d0fc2185c821626e66729f323d1c (patch) | |
tree | cb7d1babcb5475e0e0492efd9729872f616abde5 | |
parent | cc6430689e54cab75de5682084c1f0984d31a98b (diff) |
clk: rockchip: add a dummy clock for the watchdog pclk on rk3288
The pclk supplying the watchdog is controlled via the SGRF register area.
Currently we don't have any clock-type handling external clock bits like
this one. 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: Heiko Stuebner <heiko@sntech.de>
-rw-r--r-- | drivers/clk/rockchip/clk-rk3288.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 8bcda8804b74..320b8f060751 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c | |||
@@ -880,6 +880,14 @@ static void __init rk3288_clk_init(struct device_node *np) | |||
880 | pr_warn("%s: could not register clock hclk_vcodec_pre: %ld\n", | 880 | pr_warn("%s: could not register clock hclk_vcodec_pre: %ld\n", |
881 | __func__, PTR_ERR(clk)); | 881 | __func__, PTR_ERR(clk)); |
882 | 882 | ||
883 | /* Watchdog pclk is controlled by RK3288_SGRF_SOC_CON0[1]. */ | ||
884 | clk = clk_register_fixed_factor(NULL, "pclk_wdt", "pclk_pd_alive", 0, 1, 1); | ||
885 | if (IS_ERR(clk)) | ||
886 | pr_warn("%s: could not register clock pclk_wdt: %ld\n", | ||
887 | __func__, PTR_ERR(clk)); | ||
888 | else | ||
889 | rockchip_clk_add_lookup(clk, PCLK_WDT); | ||
890 | |||
883 | rockchip_clk_register_plls(rk3288_pll_clks, | 891 | rockchip_clk_register_plls(rk3288_pll_clks, |
884 | ARRAY_SIZE(rk3288_pll_clks), | 892 | ARRAY_SIZE(rk3288_pll_clks), |
885 | RK3288_GRF_SOC_STATUS1); | 893 | RK3288_GRF_SOC_STATUS1); |