aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Kubelun <be.dissent@gmail.com>2017-01-14 14:56:56 +0300
committerJohn Crispin <john@phrozen.org>2017-01-15 20:56:30 +0100
commitca25b4d729dd25267afcc5e548a1d4cace39a9af (patch)
tree3cb5e2535ec9dcfe981dfbc8d6b969f7348aeb70
parent44b44595dcf3863e8673c801ec4a74cc540e770b (diff)
downloadupstream-ca25b4d729dd25267afcc5e548a1d4cace39a9af.tar.gz
upstream-ca25b4d729dd25267afcc5e548a1d4cace39a9af.tar.bz2
upstream-ca25b4d729dd25267afcc5e548a1d4cace39a9af.zip
ipq806x: enable hw pseudo random number generator
Enables support for pseudo random number generator in device tree. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
-rw-r--r--target/linux/ipq806x/patches-4.4/316-dt-add-prng-support.patch16
-rw-r--r--target/linux/ipq806x/patches-4.4/708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch2
2 files changed, 17 insertions, 1 deletions
diff --git a/target/linux/ipq806x/patches-4.4/316-dt-add-prng-support.patch b/target/linux/ipq806x/patches-4.4/316-dt-add-prng-support.patch
new file mode 100644
index 0000000000..f2faf64f00
--- /dev/null
+++ b/target/linux/ipq806x/patches-4.4/316-dt-add-prng-support.patch
@@ -0,0 +1,16 @@
+--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
++++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
+@@ -336,6 +336,13 @@
+ };
+ };
+
++ rng@1a500000 {
++ compatible = "qcom,prng";
++ reg = <0x1a500000 0x200>;
++ clocks = <&gcc PRNG_CLK>;
++ clock-names = "core";
++ };
++
+ qcom_pinmux: pinmux@800000 {
+ compatible = "qcom,ipq8064-pinctrl";
+ reg = <0x800000 0x4000>;
diff --git a/target/linux/ipq806x/patches-4.4/708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch b/target/linux/ipq806x/patches-4.4/708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch
index b3d854562d..b722dfa25f 100644
--- a/target/linux/ipq806x/patches-4.4/708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch
+++ b/target/linux/ipq806x/patches-4.4/708-ARM-dts-qcom-add-gmac-nodes-to-ipq806x-platforms.patch
@@ -121,7 +121,7 @@ Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
};
--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
-@@ -910,6 +910,92 @@
+@@ -917,6 +917,92 @@
status = "disabled";
};