summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/gcc-ipq806x.c
diff options
context:
space:
mode:
authorAbhishek Sahu <absahu@codeaurora.org>2020-03-18 16:16:56 +0300
committerStephen Boyd <sboyd@kernel.org>2020-03-21 02:29:02 +0300
commit1aec193ea41d672d11592714cdda8167eb3b38fc (patch)
treeb00e894de1ca6b24898eb6b1061941dff29014c6 /drivers/clk/qcom/gcc-ipq806x.c
parent8def929c4097d9014c37d6a3649b21d38ad607d7 (diff)
downloadlinux-1aec193ea41d672d11592714cdda8167eb3b38fc.tar.xz
ipq806x: gcc: Added the enable regs and mask for PRNG
Kernel got hanged while reading from /dev/hwrng at the time of PRNG clock enable Fixes: 24d8fba44af3 "clk: qcom: Add support for IPQ8064's global clock controller (GCC)" Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> Link: https://lkml.kernel.org/r/20200318131657.345-1-ansuelsmth@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/gcc-ipq806x.c')
-rw-r--r--drivers/clk/qcom/gcc-ipq806x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c
index b0eee0903807..a8456e09c44d 100644
--- a/drivers/clk/qcom/gcc-ipq806x.c
+++ b/drivers/clk/qcom/gcc-ipq806x.c
@@ -1224,6 +1224,8 @@ static struct clk_rcg prng_src = {
.parent_map = gcc_pxo_pll8_map,
},
.clkr = {
+ .enable_reg = 0x2e80,
+ .enable_mask = BIT(11),
.hw.init = &(struct clk_init_data){
.name = "prng_src",
.parent_names = gcc_pxo_pll8,