[PATCH 1/4] clk/qcom: apq8016: add PRNG_AHB_CLK

Neil Armstrong neil.armstrong at linaro.org
Fri Jan 31 10:42:38 CET 2025


On 27/01/2025 08:48, Sam Day wrote:
> 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.
> 
> Signed-off-by: Sam Day <me at samcday.com>
> ---
>   drivers/clk/qcom/clock-apq8016.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/qcom/clock-apq8016.c b/drivers/clk/qcom/clock-apq8016.c
> index b5def55dbc2ac671130624dec56592288a0ceb3d..ff5e7ca6f02148427240b80fb08efdd356934cd5 100644
> --- a/drivers/clk/qcom/clock-apq8016.c
> +++ b/drivers/clk/qcom/clock-apq8016.c
> @@ -54,8 +54,9 @@ static struct vote_clk gcc_blsp1_ahb_clk = {
>   };
>   
>   static const struct gate_clk apq8016_clks[] = {
> -	GATE_CLK(GCC_USB_HS_AHB_CLK,    0x41008, 0x00000001),
> -	GATE_CLK(GCC_USB_HS_SYSTEM_CLK,	0x41004, 0x00000001),
> +	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)),
>   };
>   
>   /* SDHCI */
> 

This should be 2 patches, but it's still fine for me...

Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>


More information about the U-Boot mailing list