ipq40xx: 4.19: Enable pseudo random number generator
authorRobert Marko <robimarko@gmail.com>
Wed, 19 Dec 2018 12:57:19 +0000 (13:57 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 27 Dec 2018 13:30:45 +0000 (14:30 +0100)
IPQ40xx series has a HW pseudo random number generator built in.
It already has a node in the upstream ipq4019.dtsi so we just need to enable it.
Its driver has been rewritten to use crypto API so we dont have char interface like under 4.14 kernel.

Signed-off-by: Robert Marko <robimarko@gmail.com>
14 files changed:
target/linux/ipq40xx/config-4.19
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-a42.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-eap1300.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-ex61x0v2.dtsi
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-fritz4040.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-jalapeno.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-nbg6617.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-rt-ac58u.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4018-wre6606.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4019-a62.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4028-wpj428.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts
target/linux/ipq40xx/files-4.19/arch/arm/boot/dts/qcom-ipq4029-mr33.dts

index fcbbabf43afda07775bc095bb6b51d7be1af3959..aec99641c180dcf2b751105b855c0a6015828077 100644 (file)
@@ -123,7 +123,7 @@ CONFIG_CRYPTO_CTR=y
 CONFIG_CRYPTO_DEFLATE=y
 CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_DEV_QCE=y
-# CONFIG_CRYPTO_DEV_QCOM_RNG is not set
+CONFIG_CRYPTO_DEV_QCOM_RNG=y
 CONFIG_CRYPTO_DRBG=y
 CONFIG_CRYPTO_DRBG_HMAC=y
 CONFIG_CRYPTO_DRBG_MENU=y
index ed81cbc9b5ecdfae52ca34cd01db5595598d650e..6bc178ccfa2c623df4b245e04f4e22eb75748c11 100644 (file)
        compatible = "openmesh,a42", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index a86e34229e62b07bf754af2779c04710e2e32143..7a4010387395979d983d062e2664e2941691c5c5 100644 (file)
        compatible = "engenius,eap1300", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index ceece0f95682cf9876995355164829764a14863e..bb6cf4ee024d80003bf8eca85b9bbbe10e84614b 100644 (file)
        compatible = "netgear,ex61x0v2", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index ea7499da4c847a2cf0d88392b29bea039cc594cb..976e7498edca35427c1bce25827e584fd13b781b 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 0c27e1757d5d8a5c4f552acd5c648dca5c83ef02..003b4764a83160aea9cf4bdbab9bb06871b0c1d9 100644 (file)
        compatible = "8dev,jalapeno", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                        pinctrl-0 = <&mdio_pins>;
index cb0791a3998e38ae0a74600064af7adc6b6e3ffa..4083100beb2c60e84ba552e098711999acd143cc 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 8c32b9eb36ee997cbe2699c188c646580824787e..783061a2e84822e9699a1061b8d508d1b6dd52fc 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 2809a67693ba89d01b658d3e526e3c3922946ce7..62d4218ea60528ab20031874fe5d38af8f3a73ef 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 24cfc30fdfeb576ea3c04374559cb41ee8805c3d..71c822feb2fc3669168bbc3e6590f252362d0c88 100644 (file)
        compatible = "openmesh,a62", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 157037f55843a0f25a51481bd9c08c8ee2810719..9801354625f8f6fefb11b66d96ba03b1828b7bcf 100644 (file)
        compatible = "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                pinctrl@1000000 {
                        serial_0_pins: serial_pinmux {
                                mux {
index 151f5e00c00deb7da8824811e337c76185344d42..778fad3e3b22e4c681e856fabe3e8e382faa87b9 100644 (file)
        compatible = "compex,wpj428", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 355299612f99b374ff9de66b849335b100f6b17c..816f033d4309ee240637b2527ad779515908b6aa 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 5073fe9cb8d2e9273d6fbb2d5d38a42493ceb379..8dcde3bdb9463527039bc3a0568071d226e73f06 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                        pinctrl-0 = <&mdio_pins>;