OSDN Git Service

hw/arm/nrf51: Add NRF51_PERIPHERAL_SIZE definition
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 4 May 2020 07:28:19 +0000 (09:28 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 11 May 2020 10:05:11 +0000 (11:05 +0100)
commit54595a5731ed7c94491008b0d3835ad3f786dbcc
tree0cda40c3a15b86634e05949c8cafa4f96d1885ca
parentf4ab4f8e772700dcef1c99b75b0704bd5ca96b6a
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>
hw/arm/nrf51_soc.c
hw/i2c/microbit_i2c.c
hw/timer/nrf51_timer.c
include/hw/arm/nrf51.h
include/hw/i2c/microbit_i2c.h