diff options
author | Tero Kristo <t-kristo@ti.com> | 2019-04-04 10:11:05 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-25 19:51:36 +0200 |
commit | 869decd1ff197c3083cb8b58f7dcac201038c381 (patch) | |
tree | 10712e47c5e0e0f3c66a9237be8e654b2eea0f69 /drivers/clk/ti/clkctrl.c | |
parent | clk: ti: dra7x: prevent non-existing clkctrl clocks from registering (diff) | |
download | linux-869decd1ff197c3083cb8b58f7dcac201038c381.tar.xz linux-869decd1ff197c3083cb8b58f7dcac201038c381.zip |
clk: ti: dra7: disable the RNG and TIMER12 clkctrl clocks on HS devices
RNG and TIMER12 are reserved for secure side usage only on HS devices,
so disable their clkctrl clocks on HS SoCs also.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ti/clkctrl.c')
-rw-r--r-- | drivers/clk/ti/clkctrl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c index 4cdeb8d4830c..96d65a1cf7be 100644 --- a/drivers/clk/ti/clkctrl.c +++ b/drivers/clk/ti/clkctrl.c @@ -509,6 +509,9 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node) data = dm816_clkctrl_data; #endif + if (ti_clk_get_features()->flags & TI_CLK_DEVICE_TYPE_GP) + soc_mask |= CLKF_SOC_NONSEC; + while (data->addr) { if (addr == data->addr) break; |