Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e372211 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "defconfig: kona: Enable QRNG driver"

parents 7bc7640a 0ceb860e
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
* RNG (Random Number Generator)

Required properties:
- compatible : Should be "qcom,msm-rng"
- reg        : Offset and length of the register set for the device

Optional property:
- qcom,msm-rng-iface-clk : If the device uses iface-clk.
- qcom,no-qrng-config    : Flag to decide whether the driver do the hardware configuration or not.

Example:

	qcom,msm-rng@f9bff000 {
		compatible = "qcom,msm-rng";
		reg = <0xf9bff000 0x200>;
		qcom,msm-rng-iface-clk;
		qcom,no-qrng-config;
	};
+15 −0
Original line number Diff line number Diff line
@@ -1314,6 +1314,21 @@
		qcom,qsee-reentrancy-support = <2>;
	};

	qcom_rng: qrng@793000 {
		compatible = "qcom,msm-rng";
		reg = <0x793000 0x1000>;
		qcom,msm-rng-iface-clk;
		qcom,no-qrng-config;
		qcom,msm-bus,name = "msm-rng-noc";
		qcom,msm-bus,num-cases = <2>;
		qcom,msm-bus,num-paths = <1>;
		qcom,msm-bus,vectors-KBps =
			<1 618 0 0>,    /* No vote */
			<1 618 0 300000>;  /* 75 MHz */
		clocks = <&clock_gcc GCC_PRNG_AHB_CLK>;
		clock-names = "iface_clk";
	};

	mdm0: qcom,mdm0 {
		compatible = "qcom,ext-sdx55m";
		cell-index = <0>;
+1 −0
Original line number Diff line number Diff line
@@ -306,6 +306,7 @@ CONFIG_INPUT_UINPUT=y
CONFIG_SERIAL_MSM_GENI=y
CONFIG_SERIAL_MSM_GENI_CONSOLE=y
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_MSM_LEGACY=y
CONFIG_DIAG_CHAR=y
CONFIG_MSM_ADSPRPC=y
CONFIG_I2C_CHARDEV=y
+1 −0
Original line number Diff line number Diff line
@@ -314,6 +314,7 @@ CONFIG_SERIAL_MSM_GENI_CONSOLE=y
CONFIG_SERIAL_DEV_BUS=y
CONFIG_TTY_PRINTK=y
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_MSM_LEGACY=y
CONFIG_DIAG_CHAR=y
CONFIG_MSM_ADSPRPC=y
CONFIG_I2C_CHARDEV=y
+14 −0
Original line number Diff line number Diff line
@@ -307,6 +307,20 @@ config HW_RANDOM_HISI

	  If unsure, say Y.

config HW_RANDOM_MSM_LEGACY
	tristate "QTI MSM Random Number Generator support (LEGACY)"
	depends on HW_RANDOM && ARCH_QCOM
	select CRYPTO_AES
	select CRYPTO_ECB
	help
	  This driver provides kernel-side support for the Random Number
	  Generator hardware found on QTI MSM SoCs.

	  To compile this driver as a module, choose M here: the
	  module will be called msm_rng.

	  If unsure, say Y.

config HW_RANDOM_ST
	tristate "ST Microelectronics HW Random Number Generator support"
	depends on HW_RANDOM && ARCH_STI
Loading