hw/misc: add an EMC141{3,4} device model
authorJohn Wang <wangzhiqiang.bj@bytedance.com>
Thu, 10 Dec 2020 11:11:03 +0000 (12:11 +0100)
committerCédric Le Goater <clg@kaod.org>
Thu, 10 Dec 2020 11:11:03 +0000 (12:11 +0100)
commit5e623f2bf1b4a43022c2fd31919c76ddb9556e17
tree52d5054d3f7c739f6258197c234bb0add69ec211
parent5e7b204dbfae9a562fc73684986f936b97f63877
hw/misc: add an EMC141{3,4} device model

Largely inspired by the TMP421 temperature sensor, here is a model for
the EMC1413/EMC1414 temperature sensors.

Specs can be found here :
  http://ww1.microchip.com/downloads/en/DeviceDoc/20005274A.pdf

Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20201122105134.671-1-wangzhiqiang.bj@bytedance.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/Kconfig
hw/misc/Kconfig
hw/misc/emc141x.c [new file with mode: 0644]
hw/misc/meson.build
include/hw/misc/emc141x_regs.h [new file with mode: 0644]
tests/qtest/emc141x-test.c [new file with mode: 0644]
tests/qtest/meson.build