hw/misc: Add Infineon DPS310 sensor model
commit46560cb1058af80a4c0c26eff2b07a51b02ee053
authorJoel Stanley <joel@jms.id.au>
Mon, 20 Sep 2021 06:50:59 +0000 (20 08:50 +0200)
committerCédric Le Goater <clg@kaod.org>
Mon, 20 Sep 2021 06:50:59 +0000 (20 08:50 +0200)
tree4411a409aafd105f490a306de350f77971b2eaee
parentc5811bb3b76f8115f8ce3ccee64662a44dd061d9
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>
hw/arm/Kconfig
hw/sensor/Kconfig
hw/sensor/dps310.c [new file with mode: 0644]
hw/sensor/meson.build