diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2013-10-10 23:07:58 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 01:50:20 -0400 |
commit | 66548e40583b1470300341c6784fdc5176f7609f (patch) | |
tree | f8025f7e31ea5eab9db246107cba82651bd0eb36 /drivers/char/hw_random/Kconfig | |
parent | a4da0d50b2a00b79390092e6248ca88b7d93c81d (diff) |
hwrng: Add a driver for the hwrng found in power7+ systems
Add a driver for the hwrng found in power7+ systems, based on the
existing code for the arch_get_random_long() hook.
We only register a single instance of the driver, not one per device,
because we use the existing per_cpu array of devices in the arch code.
This means we always read from the "closest" device, avoiding inter-chip
memory traffic.
Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/char/hw_random/Kconfig')
-rw-r--r-- | drivers/char/hw_random/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 0aa9d91daef5..c206de2951f2 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig | |||
@@ -290,6 +290,19 @@ config HW_RANDOM_PSERIES | |||
290 | 290 | ||
291 | If unsure, say Y. | 291 | If unsure, say Y. |
292 | 292 | ||
293 | config HW_RANDOM_POWERNV | ||
294 | tristate "PowerNV Random Number Generator support" | ||
295 | depends on HW_RANDOM && PPC_POWERNV | ||
296 | default HW_RANDOM | ||
297 | ---help--- | ||
298 | This is the driver for Random Number Generator hardware found | ||
299 | in POWER7+ and above machines for PowerNV platform. | ||
300 | |||
301 | To compile this driver as a module, choose M here: the | ||
302 | module will be called powernv-rng. | ||
303 | |||
304 | If unsure, say Y. | ||
305 | |||
293 | config HW_RANDOM_EXYNOS | 306 | config HW_RANDOM_EXYNOS |
294 | tristate "EXYNOS HW random number generator support" | 307 | tristate "EXYNOS HW random number generator support" |
295 | depends on HW_RANDOM && HAS_IOMEM && HAVE_CLK | 308 | depends on HW_RANDOM && HAS_IOMEM && HAVE_CLK |