diff options
author | Julia Suvorova | 2018-10-30 16:23:56 +0100 |
---|---|---|
committer | Peter Maydell | 2018-11-02 15:03:33 +0100 |
commit | b0014913f2e415abe3434dec7ad7ce20afb491cd (patch) | |
tree | 485a0d8e585a2f279b5dc23a4bcab07f7445e758 /include | |
parent | hw/char: Implement nRF51 SoC UART (diff) | |
download | qemu-b0014913f2e415abe3434dec7ad7ce20afb491cd.tar.gz qemu-b0014913f2e415abe3434dec7ad7ce20afb491cd.tar.xz qemu-b0014913f2e415abe3434dec7ad7ce20afb491cd.zip |
hw/arm/nrf51_soc: Connect UART to nRF51 SoC
Wire up nRF51 UART in the corresponding SoC.
Signed-off-by: Julia Suvorova <jusual@mail.ru>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/arm/nrf51_soc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/arm/nrf51_soc.h b/include/hw/arm/nrf51_soc.h index f4e092b554..73fc92e9a8 100644 --- a/include/hw/arm/nrf51_soc.h +++ b/include/hw/arm/nrf51_soc.h @@ -12,6 +12,7 @@ #include "hw/sysbus.h" #include "hw/arm/armv7m.h" +#include "hw/char/nrf51_uart.h" #define TYPE_NRF51_SOC "nrf51-soc" #define NRF51_SOC(obj) \ @@ -24,6 +25,8 @@ typedef struct NRF51State { /*< public >*/ ARMv7MState cpu; + NRF51UARTState uart; + MemoryRegion iomem; MemoryRegion sram; MemoryRegion flash; |