mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
arm: Add Nordic Semiconductor nRF51 SoC
The nRF51 is a Cortex-M0 microcontroller with an on-board radio module, plus other common ARM SoC peripherals. http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf This defines a basic model of the CPU and memory, with no peripherals implemented at this stage. Signed-off-by: Joel Stanley <joel@jms.id.au> Message-id: 20180831220920.27113-3-joel@jms.id.au Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: wrapped a few long lines] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
c0066d1a19
commit
673b2d42a8
4 changed files with 176 additions and 0 deletions
41
include/hw/arm/nrf51_soc.h
Normal file
41
include/hw/arm/nrf51_soc.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Nordic Semiconductor nRF51 SoC
|
||||
*
|
||||
* Copyright 2018 Joel Stanley <joel@jms.id.au>
|
||||
*
|
||||
* This code is licensed under the GPL version 2 or later. See
|
||||
* the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef NRF51_SOC_H
|
||||
#define NRF51_SOC_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/arm/armv7m.h"
|
||||
|
||||
#define TYPE_NRF51_SOC "nrf51-soc"
|
||||
#define NRF51_SOC(obj) \
|
||||
OBJECT_CHECK(NRF51State, (obj), TYPE_NRF51_SOC)
|
||||
|
||||
typedef struct NRF51State {
|
||||
/*< private >*/
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
/*< public >*/
|
||||
ARMv7MState cpu;
|
||||
|
||||
MemoryRegion iomem;
|
||||
MemoryRegion sram;
|
||||
MemoryRegion flash;
|
||||
|
||||
uint32_t sram_size;
|
||||
uint32_t flash_size;
|
||||
|
||||
MemoryRegion *board_memory;
|
||||
|
||||
MemoryRegion container;
|
||||
|
||||
} NRF51State;
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue