mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
19790847e2
commit
b0014913f2
3 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue