i.MX: add an emulation for RNGC
commitf03965490e4e4223903e79a4ec97139ccdd48e1b
authorMartin Kaiser <martin@kaiser.cx>
Fri, 17 Jan 2020 14:09:31 +0000 (17 14:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 17 Jan 2020 14:27:16 +0000 (17 14:27 +0000)
tree55142acbe23b9f4057732cd4cca267446bff56a8
parent21bf9b06cb6d07c6cc437dfd47b47b28c2bb79db
i.MX: add an emulation for RNGC

Add an emulation for the RNGC random number generator and the compatible
RNGB variant. These peripherals are included (at least) in imx25 and
imx35 chipsets.

The emulation supports the initial self test, reseeding the prng and
reading random numbers.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/fsl-imx25.c
hw/misc/Makefile.objs
hw/misc/imx_rngc.c [new file with mode: 0644]
include/hw/arm/fsl-imx25.h
include/hw/misc/imx_rngc.h [new file with mode: 0644]