hw/gpio/nrf51_gpio: Add nRF51 GPIO peripheral
commit805f61bbb33ba24777a854df5d018858502d6d9c
authorSteffen Görtz <contrib@steffen-goertz.de>
Mon, 7 Jan 2019 15:23:47 +0000 (7 15:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Jan 2019 15:23:47 +0000 (7 15:23 +0000)
treebf3c08ff53cc0fbb95df31def69b02ce599dab72
parentf30890def51f777db1da350f9c737cc75615bdf0
hw/gpio/nrf51_gpio: Add nRF51 GPIO peripheral

This adds a model of the nRF51 GPIO peripheral.

Reference Manual: http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf

The nRF51 series microcontrollers support up to 32 GPIO pins in various configurations.
The pins can be used as input pins with pull-ups or pull-down.
Furthermore, three different output driver modes per level are
available (disconnected, standard, high-current).

The GPIO-Peripheral has a mechanism for detecting level changes which is
not featured in this model.

Signed-off-by: Steffen Görtz <contrib@steffen-goertz.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190103091119.9367-6-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Makefile.objs
hw/gpio/Makefile.objs
hw/gpio/nrf51_gpio.c [new file with mode: 0644]
hw/gpio/trace-events [new file with mode: 0644]
include/hw/gpio/nrf51_gpio.h [new file with mode: 0644]