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>
Showing
- hw/arm/microbit.c 16 additions, 0 deletionshw/arm/microbit.c
- hw/i2c/Makefile.objs 1 addition, 0 deletionshw/i2c/Makefile.objs
- hw/i2c/microbit_i2c.c 127 additions, 0 deletionshw/i2c/microbit_i2c.c
- include/hw/arm/nrf51.h 2 additions, 0 deletionsinclude/hw/arm/nrf51.h
- include/hw/arm/nrf51_soc.h 1 addition, 0 deletionsinclude/hw/arm/nrf51_soc.h
- include/hw/i2c/microbit_i2c.h 42 additions, 0 deletionsinclude/hw/i2c/microbit_i2c.h
Loading
Please register or sign in to comment