12ec8bd51e
arm: Rename hw/arm/arm.h to hw/arm/boot.h
...
The header file hw/arm/arm.h now includes only declarations
relating to hw/arm/boot.c functionality. Rename it accordingly,
and adjust its header comment.
The bulk of this commit was created via
perl -pi -e 's|hw/arm/arm.h|hw/arm/boot.h|' hw/arm/*.c include/hw/arm/*.h
In a few cases we can just delete the #include:
hw/arm/msf2-soc.c, include/hw/arm/aspeed_soc.h and
include/hw/arm/bcm2836.h did not require it.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-id: 20190516163857.6430-4-peter.maydell@linaro.org
2019-05-23 14:47:43 +01:00
04f3c0084d
hw: Remove unused 'hw/devices.h' include
...
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu >
Tested-by: Thomas Huth <thuth@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2019-03-07 22:16:11 +01:00
4d744b25d3
arm: Instantiate NRF51 special NVM's and NVMC
...
Instantiates UICR, FICR, FLASH and NVMC in nRF51 SOC.
Signed-off-by: Steffen Görtz <contrib@steffen-goertz.de >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
Message-id: 20190201023357.22596-3-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-02-01 15:32:17 +00:00
287a7f6e39
hw/arm/nrf51_soc: set object owner in memory_region_init_ram
...
set object owner in memory_region_init_ram() instead
of NULL.
Signed-off-by: kumar sourav <sourav.jb1988@gmail.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Message-id: 20190125155630.17430-1-sourav.jb1988@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-02-01 14:55:41 +00:00
b39dced66a
arm: Add Clock peripheral stub to NRF51 SOC
...
This stubs enables the microbit-micropython firmware to run
on the microbit machine.
Signed-off-by: Steffen Görtz <contrib@steffen-goertz.de >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
Message-id: 20190103091119.9367-12-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-01-07 15:23:47 +00:00
60facd906b
arm: Instantiate NRF51 Timers
...
Instantiates TIMER0 - TIMER2
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-10-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-01-07 15:23:47 +00:00
bb42c4cb2a
arm: Instantiate NRF51 general purpose I/O
...
Instantiates GPIO peripheral 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-7-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-01-07 15:23:47 +00:00
f30890def5
arm: Instantiate NRF51 random number generator
...
Use RNG in SOC.
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-5-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-01-07 15:23:47 +00:00
659b85e413
arm: Add header to host common definition for nRF51 SOC peripherals
...
Adds a header that provides definitions that are used
across nRF51 peripherals
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-3-stefanha@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2019-01-07 15:23:47 +00:00
b0014913f2
hw/arm/nrf51_soc: Connect UART to nRF51 SoC
...
Wire up nRF51 UART in the corresponding SoC.
Signed-off-by: Julia Suvorova <jusual@mail.ru >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-11-02 14:03:33 +00:00
673b2d42a8
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 >
2018-09-25 14:14:07 +01:00