mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
hw/misc: Add Infineon DPS310 sensor model
This contains some hardcoded register values that were obtained from the hardware after reading the temperature. It does enough to test the Linux kernel driver. The FIFO mode, IRQs and operation modes other than the default as used by Linux are not modelled. Signed-off-by: Joel Stanley <joel@jms.id.au> Message-Id: <20210616073358.750472-2-joel@jms.id.au> [ clg: - Fixed sequential reading - Reworked regs_reset_state array - Moved model under hw/sensor/ ] Message-Id: <20210629142336.750058-4-clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
c5811bb3b7
commit
46560cb105
4 changed files with 231 additions and 0 deletions
|
@ -428,6 +428,7 @@ config ASPEED_SOC
|
|||
select DS1338
|
||||
select FTGMAC100
|
||||
select I2C
|
||||
select DPS310
|
||||
select PCA9552
|
||||
select SERIAL
|
||||
select SMBUS_EEPROM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue