mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
arm: Instantiate NRF51 random number generator
Use RNG in SOC. Signed-off-by: Steffen Görtz <contrib@steffen-goertz.de> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20190103091119.9367-5-stefanha@redhat.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
90c58941f6
commit
f30890def5
2 changed files with 18 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/arm/armv7m.h"
|
||||
#include "hw/char/nrf51_uart.h"
|
||||
#include "hw/misc/nrf51_rng.h"
|
||||
|
||||
#define TYPE_NRF51_SOC "nrf51-soc"
|
||||
#define NRF51_SOC(obj) \
|
||||
|
@ -26,6 +27,7 @@ typedef struct NRF51State {
|
|||
ARMv7MState cpu;
|
||||
|
||||
NRF51UARTState uart;
|
||||
NRF51RNGState rng;
|
||||
|
||||
MemoryRegion iomem;
|
||||
MemoryRegion sram;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue