mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
hw/arm/bcm2835_peripherals: Use the thermal sensor block
Map the thermal sensor in the BCM2835 block. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20191019234715.25750-3-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
99c641370b
commit
d442d95f2f
3 changed files with 16 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "hw/misc/bcm2835_property.h"
|
||||
#include "hw/misc/bcm2835_rng.h"
|
||||
#include "hw/misc/bcm2835_mbox.h"
|
||||
#include "hw/misc/bcm2835_thermal.h"
|
||||
#include "hw/sd/sdhci.h"
|
||||
#include "hw/sd/bcm2835_sdhost.h"
|
||||
#include "hw/gpio/bcm2835_gpio.h"
|
||||
|
@ -53,6 +54,7 @@ typedef struct BCM2835PeripheralState {
|
|||
SDHCIState sdhci;
|
||||
BCM2835SDHostState sdhost;
|
||||
BCM2835GpioState gpio;
|
||||
Bcm2835ThermalState thermal;
|
||||
UnimplementedDeviceState i2s;
|
||||
UnimplementedDeviceState spi[1];
|
||||
UnimplementedDeviceState i2c[3];
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
#define SPI0_OFFSET 0x204000
|
||||
#define BSC0_OFFSET 0x205000 /* BSC0 I2C/TWI */
|
||||
#define OTP_OFFSET 0x20f000
|
||||
#define THERMAL_OFFSET 0x212000
|
||||
#define BSC_SL_OFFSET 0x214000 /* SPI slave */
|
||||
#define AUX_OFFSET 0x215000 /* AUX: UART1/SPI1/SPI2 */
|
||||
#define EMMC1_OFFSET 0x300000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue