mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
arm: Stub out NRF51 TWI magnetometer/accelerometer detection
Recent microbit firmwares panic if the TWI magnetometer/accelerometer devices are not detected during startup. We don't implement TWI (I2C) so let's stub out these devices just to let the firmware boot. Signed-off by: Steffen Görtz <contrib@steffen-goertz.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20190110094020.18354-2-stefanha@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: fixed comment style] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ab65eed3f8
commit
9d68bf564e
6 changed files with 189 additions and 0 deletions
|
@ -39,6 +39,7 @@ typedef struct NRF51State {
|
|||
MemoryRegion sram;
|
||||
MemoryRegion flash;
|
||||
MemoryRegion clock;
|
||||
MemoryRegion twi;
|
||||
|
||||
uint32_t sram_size;
|
||||
uint32_t flash_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue