hw/arm/xlnx-zynqmp: Remove obsolete 'has_rpu' property
[qemu/ar7.git] / include / hw / arm / nrf51_soc.h
blobf8a6725b775da7d60757f45f8f7b619880e17236
1 /*
2 * Nordic Semiconductor nRF51 SoC
4 * Copyright 2018 Joel Stanley <joel@jms.id.au>
6 * This code is licensed under the GPL version 2 or later. See
7 * the COPYING file in the top-level directory.
8 */
10 #ifndef NRF51_SOC_H
11 #define NRF51_SOC_H
13 #include "hw/sysbus.h"
14 #include "hw/arm/armv7m.h"
15 #include "hw/char/nrf51_uart.h"
16 #include "hw/misc/nrf51_rng.h"
17 #include "hw/gpio/nrf51_gpio.h"
18 #include "hw/nvram/nrf51_nvm.h"
19 #include "hw/timer/nrf51_timer.h"
20 #include "qom/object.h"
22 #define TYPE_NRF51_SOC "nrf51-soc"
23 OBJECT_DECLARE_SIMPLE_TYPE(NRF51State, NRF51_SOC)
25 #define NRF51_NUM_TIMERS 3
27 struct NRF51State {
28 /*< private >*/
29 SysBusDevice parent_obj;
31 /*< public >*/
32 ARMv7MState cpu;
34 NRF51UARTState uart;
35 NRF51RNGState rng;
36 NRF51NVMState nvm;
37 NRF51GPIOState gpio;
38 NRF51TimerState timer[NRF51_NUM_TIMERS];
40 MemoryRegion iomem;
41 MemoryRegion sram;
42 MemoryRegion flash;
43 MemoryRegion clock;
44 MemoryRegion twi;
46 uint32_t sram_size;
47 uint32_t flash_size;
49 MemoryRegion *board_memory;
51 MemoryRegion container;
55 #endif