hw/sensor: added MAX16600 device model
PATCH v2 1/1 hw/sensor: added MAX16600 device model
From: Shengtan Mao <[email protected]>
Signed-off-by Shengtan Mao <[email protected]>
Signed-off-by Titus Rwantare <[email protected]>
Signed-off-by Nabih Estefan <[email protected]>
--- hw/arm/Kconfig | 1 + hw/sensor/Kconfig | 4 + hw/sensor/max16600.c | 196 ++++++++++++++++++++++++++++ hw/sensor/meson.build | 1 + include/hw/sensor/max16600.h | 45 +++++++ tests/qtest/max16600-test.c | 240 +++++++++++++++++++++++++++++++++++ tests/qtest/meson.build | 1 + 7 files changed, 488 insertions(+) create mode 100644 hw/sensor/max16600.c create mode 100644 include/hw/sensor/max16600.h create mode 100644 tests/qtest/max16600-test.c
hw/arm/Kconfig +1 -0
@@ -480,6 +480,7 @@ config NPCM7XX select AT24C # EEPROM select MAX34451 select ISL_PMBUS_VR + select MAX_16600 select PL310 # cache controller select PMBUS select SERIAL_MM
hw/sensor/Kconfig +4 -0
@@ -43,3 +43,7 @@ config ISL_PMBUS_VR config MAX31785 bool depends on PMBUS + +config MAX_16600 + bool + depends on I2C
hw/sensor/max16600.c new file +196 -0
196 lines not on this page · raw message
hw/sensor/meson.build +1 -0
@@ -8,3 +8,4 @@ system_ss.add(when: 'CONFIG_MAX34451', if_true: files('max34451.c')) system_ss.add(when: 'CONFIG_LSM303DLHC_MAG', if_true: files('lsm303dlhc_mag.c')) system_ss.add(when: 'CONFIG_ISL_PMBUS_VR', if_true: files('isl_pmbus_vr.c')) system_ss.add(when: 'CONFIG_MAX31785', if_true: files('max31785.c')) +system_ss.add(when: 'CONFIG_MAX_16600', if_true: files('max16600.c'))
include/hw/sensor/max16600.h new file +45 -0
45 lines not on this page · raw message
tests/qtest/max16600-test.c new file +240 -0
240 lines not on this page · raw message
tests/qtest/meson.build +1 -0
@@ -295,6 +295,7 @@ qos_test_ss.add( 'es1370-test.c', 'lsm303dlhc-mag-test.c', 'isl_pmbus_vr-test.c', + 'max16600-test.c', 'max34451-test.c', 'megasas-test.c', 'ne2000-test.c',
Signature · 1 line
2.51.0.355.g5224444f11-goog