summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDan Douglass <dan.douglass@freescale.com>2014-02-20 11:25:56 -0600
committerDan Douglass <dan.douglass@freescale.com>2014-02-20 12:19:16 -0600
commit180e5249943950ef2b917414ba677a52f3d68e19 (patch)
tree913c2ff88cd372bdf363837c4b7a94213a4a17bd /arch
parent88ee62beb623406da9039f4ff7dfea7c6e390b6a (diff)
ENGR00292341 imx6sl hwrng
Add hwrng support for i.MX6SL. 1. Add RNG driver. This driver originated as fsl-rngc.c. It has been modified to support device tree. The name has been changed since it supports both b and c variants of RNG. 2. Added clock and compatible info to the device tree data. 3. Added the entry in the options in the Kconfig for hwrng. Signed-off-by: Dan Douglass <dan.douglass@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/imx6sl.dtsi4
-rw-r--r--arch/arm/mach-imx/Kconfig4
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi
index b460909c9b73..08da767635bb 100644
--- a/arch/arm/boot/dts/imx6sl.dtsi
+++ b/arch/arm/boot/dts/imx6sl.dtsi
@@ -833,9 +833,11 @@
reg = <0x021b0000 0x4000>;
};
- rngb: rngb@021b4000 {
+ rng: rng@021b4000 {
+ compatible = "fsl,imx6sl-rng", "fsl,imx-rng", "imx-rng";
reg = <0x021b4000 0x4000>;
interrupts = <0 5 0x04>;
+ clocks = <&clks IMX6SL_CLK_DUMMY>;
};
weim: weim@021b8000 {
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index f4412742a966..b5f1c3aae36a 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -66,6 +66,9 @@ config MXC_ULPI
config ARCH_HAS_RNGA
bool
+config HAVE_IMX_RNG
+ bool
+
config HAVE_IMX_ANATOP
bool
@@ -833,6 +836,7 @@ config SOC_IMX6SL
select HAVE_IMX_GPC
select HAVE_IMX_MMDC
select HAVE_IMX_SRC
+ select HAVE_IMX_RNG
select PINCTRL
select PINCTRL_IMX6SL
select PL310_ERRATA_588369 if CACHE_PL310