If unsure, say Y.
+config HW_RANDOM_EXYNOS_SWD
+ tristate "EXYNOS SWD HW random number generator support"
+ depends on ARCH_EXYNOS
+ default HW_RANDOM
+ ---help---
+ This driver provides kernel-side support for TRNG hardware
+ found in secure world by using smc call
+
+ To compile this driver as a module, choose M here: the
+ module will be called exynos-rng.
+
+ If unsure, say Y.
+
+config EXYRNG_FIPS_COMPLIANCE
+ bool "Compliant with FIPS 140-2"
+ depends on HW_RANDOM_EXYNOS_SWD
+
+choice
+ prompt "Fail Policy"
+ depends on EXYRNG_FIPS_COMPLIANCE
+ default EXYRNG_FAIL_POLICY_DISABLE
+
+config EXYRNG_FAIL_POLICY_DISABLE
+ bool "Disable RNG if the tests fail"
+ depends on EXYRNG_FIPS_COMPLIANCE
+
+config EXYRNG_FAIL_POLICY_RESET
+ bool "Reset if the tests fail"
+ depends on EXYRNG_FIPS_COMPLIANCE
+endchoice
+
+config EXYRNG_USE_CRYPTOMANAGER
+ tristate "Use CryptoManager"
+ depends on HW_RANDOM_EXYNOS_SWD
+ default n
+
endif # HW_RANDOM
config UML_RANDOM
obj-$(CONFIG_HW_RANDOM) += rng-core.o
rng-core-y := core.o
+obj-$(CONFIG_HW_RANDOM_EXYNOS_SWD) += exyswd-rng.o
obj-$(CONFIG_HW_RANDOM_TIMERIOMEM) += timeriomem-rng.o
obj-$(CONFIG_HW_RANDOM_INTEL) += intel-rng.o
obj-$(CONFIG_HW_RANDOM_AMD) += amd-rng.o