mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
IPQ40xx: Add PRNG support
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>
This commit is contained in:
parent
033ec636fc
commit
cfec8d36ce
2 changed files with 11 additions and 0 deletions
|
@ -60,6 +60,13 @@
|
|||
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>;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue