summaryrefslogtreecommitdiff
path: root/include/hw/arm/nrf51.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-05-04 09:28:19 +0200
committerPeter Maydell <peter.maydell@linaro.org>2020-05-11 11:05:11 +0100
commit54595a5731ed7c94491008b0d3835ad3f786dbcc (patch)
tree0cda40c3a15b86634e05949c8cafa4f96d1885ca /include/hw/arm/nrf51.h
parentf4ab4f8e772700dcef1c99b75b0704bd5ca96b6a (diff)
downloadqemu-54595a5731ed7c94491008b0d3835ad3f786dbcc.zip
hw/arm/nrf51: Add NRF51_PERIPHERAL_SIZE definition
On the NRF51 series, all peripherals have a fixed I/O size of 4KiB. Define NRF51_PERIPHERAL_SIZE and use it. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200504072822.18799-2-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/arm/nrf51.h')
-rw-r--r--include/hw/arm/nrf51.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/hw/arm/nrf51.h b/include/hw/arm/nrf51.h
index 1008fee6c9..de836beaa4 100644
--- a/include/hw/arm/nrf51.h
+++ b/include/hw/arm/nrf51.h
@@ -24,11 +24,10 @@
#define NRF51_IOMEM_BASE 0x40000000
#define NRF51_IOMEM_SIZE 0x20000000
+#define NRF51_PERIPHERAL_SIZE 0x00001000
#define NRF51_UART_BASE 0x40002000
#define NRF51_TWI_BASE 0x40003000
-#define NRF51_TWI_SIZE 0x00001000
#define NRF51_TIMER_BASE 0x40008000
-#define NRF51_TIMER_SIZE 0x00001000
#define NRF51_RNG_BASE 0x4000D000
#define NRF51_NVMC_BASE 0x4001E000
#define NRF51_GPIO_BASE 0x50000000