[PATCH v2 2/5] clk/qcom: apq8016: add PRNG_AHB_CLK

Sam Day me at samcday.com
Wed Feb 12 08:01:33 CET 2025


This clock needs to be enabled for the msm-rng driver to work on
MSM8916, otherwise accessing the PRNG register block causes a data
abort.

Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>
Signed-off-by: Sam Day <me at samcday.com>
---
 drivers/clk/qcom/clock-apq8016.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/qcom/clock-apq8016.c b/drivers/clk/qcom/clock-apq8016.c
index 0c247250bd92b2bc888ecb7dc0a06e808e087fc0..ff5e7ca6f02148427240b80fb08efdd356934cd5 100644
--- a/drivers/clk/qcom/clock-apq8016.c
+++ b/drivers/clk/qcom/clock-apq8016.c
@@ -54,6 +54,7 @@ static struct vote_clk gcc_blsp1_ahb_clk = {
 };
 
 static const struct gate_clk apq8016_clks[] = {
+	GATE_CLK(GCC_PRNG_AHB_CLK,	0x45004, BIT(8)),
 	GATE_CLK(GCC_USB_HS_AHB_CLK,    0x41008, BIT(0)),
 	GATE_CLK(GCC_USB_HS_SYSTEM_CLK,	0x41004, BIT(0)),
 };

-- 
2.48.1




More information about the U-Boot mailing list