]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
IPQ40xx: Add PRNG support
authorRobert Marko <robert.marko@sartura.hr>
Thu, 8 Oct 2020 20:05:14 +0000 (22:05 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:54:54 +0000 (09:54 -0400)
Since we now have the driver for Qualcomm PRNG HW, lets use it and add the necessary clocks and nodes.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/dts/qcom-ipq4019.dtsi
arch/arm/mach-ipq40xx/clock-ipq4019.c

index 031691e5d2dec07ea3ff8988b5e287ab3120ef59..7a52ea2c4e4294d02a42fbb6a901b86b6ec01b20 100644 (file)
                        u-boot,dm-pre-reloc;
                };
 
+               rng: rng@22000 {
+                       compatible = "qcom,prng";
+                       reg = <0x22000 0x140>;
+                       clocks = <&gcc GCC_PRNG_AHB_CLK>;
+                       status = "disabled";
+               };
+
                reset: gcc-reset@1800000 {
                        compatible = "qcom,gcc-reset-ipq4019";
                        reg = <0x1800000 0x60000>;
index d5b5f4cb796cf0f549f4319031dad85f4d4dd588..31ae9719e82c16c2017d66d462846013616fd8c0 100644 (file)
@@ -54,6 +54,10 @@ static int msm_enable(struct clk *clk)
                /* This clock is already initialized by SBL1 */
                return 0;
                break;
+       case GCC_PRNG_AHB_CLK: /*PRNG*/
+               /* This clock is already initialized by SBL1 */
+               return 0;
+               break;
        default:
                return 0;
        }