summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/Kconfig
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2017-04-20 18:24:26 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-21 14:30:56 +0200
commit7701d1ff8ed1b8d71dcccf1ae47470fe22942373 (patch)
tree7113fb0f57c303615a7165b2f494f4fa39c8f376 /drivers/char/hw_random/Kconfig
parentdt-bindings: hwrng: Add Mediatek hardware random generator bindings (diff)
downloadlinux-7701d1ff8ed1b8d71dcccf1ae47470fe22942373.tar.xz
linux-7701d1ff8ed1b8d71dcccf1ae47470fe22942373.zip
hwrng: mtk - Add driver for hardware random generator on MT7623 SoC
This patch adds support for hardware random generator on MT7623 SoC and should also work on other similar Mediatek SoCs. Currently, the driver is already tested successfully with rng-tools. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random/Kconfig')
-rw-r--r--drivers/char/hw_random/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index bdae802e7154..fd34121934e5 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -409,6 +409,20 @@ config HW_RANDOM_CAVIUM
If unsure, say Y.
+config HW_RANDOM_MTK
+ tristate "Mediatek Random Number Generator support"
+ depends on HW_RANDOM
+ depends on ARCH_MEDIATEK || COMPILE_TEST
+ default y
+ ---help---
+ This driver provides kernel-side support for the Random Number
+ Generator hardware found on Mediatek SoCs.
+
+ To compile this driver as a module, choose M here. the
+ module will be called mtk-rng.
+
+ If unsure, say Y.
+
endif # HW_RANDOM
config UML_RANDOM