hwrng: Add a driver for the hwrng found in power7+ systems
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 11 Oct 2013 03:07:58 +0000 (14:07 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 11 Oct 2013 05:50:20 +0000 (16:50 +1100)
commit66548e40583b1470300341c6784fdc5176f7609f
treef8025f7e31ea5eab9db246107cba82651bd0eb36
parenta4da0d50b2a00b79390092e6248ca88b7d93c81d
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>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/Makefile
drivers/char/hw_random/powernv-rng.c [new file with mode: 0644]