powerpc/microwatt: Add support for hardware random number generator
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 18 Jun 2021 03:47:08 +0000 (13:47 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Jun 2021 11:16:32 +0000 (21:16 +1000)
commitc25769fddaec13509b6cdc7ad17458f239c4cee7
tree67263b8968391bac47cd3a28e3739c0cc88c9a3b
parent48b545b8018db61ab4978d29c73c16b9fbfad12c
powerpc/microwatt: Add support for hardware random number generator

Microwatt's hardware RNG is accessed using the DARN instruction.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/YMwXPHlV/ZleiQUY@thinks.paulus.ozlabs.org
arch/powerpc/platforms/microwatt/Kconfig
arch/powerpc/platforms/microwatt/Makefile
arch/powerpc/platforms/microwatt/rng.c [new file with mode: 0644]