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 fcbbabf..aec9964 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 ed81cbc..6bc178c 100644 (file)
        compatible = "openmesh,a42", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index a86e342..7a40103 100644 (file)
        compatible = "engenius,eap1300", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index ceece0f..bb6cf4e 100644 (file)
        compatible = "netgear,ex61x0v2", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index ea7499d..976e749 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 0c27e17..003b476 100644 (file)
        compatible = "8dev,jalapeno", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                        pinctrl-0 = <&mdio_pins>;
index cb0791a..4083100 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 8c32b9e..783061a 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 2809a67..62d4218 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 24cfc30..71c822f 100644 (file)
        compatible = "openmesh,a62", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 157037f..9801354 100644 (file)
        compatible = "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                pinctrl@1000000 {
                        serial_0_pins: serial_pinmux {
                                mux {
index 151f5e0..778fad3 100644 (file)
        compatible = "compex,wpj428", "qcom,ipq4019";
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 3552996..816f033 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                };
index 5073fe9..8dcde3b 100644 (file)
        };
 
        soc {
+               rng@22000 {
+                       status = "okay";
+               };
+
                mdio@90000 {
                        status = "okay";
                        pinctrl-0 = <&mdio_pins>;