hw/misc: add MAX34451 device

The MAX34451 is a Maxim power-supply system manager that can monitor up to 16 voltage rails or currents. It also contains a temperature sensor and supports up to four external temperature sensors.

This commit adds support for interfacing with it, and setting limits on the supported sensors.

Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Titus Rwantare <titusr@google.com>
Message-Id: <20210708172556.1868139-5-titusr@google.com>
[Moved the device to the sensor directory]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
Titus Rwantare
2021-07-08 14:42:00 -05:00
committed by Corey Minyard
parent c0167539ba
commit 7215456a4f
4 changed files with 781 additions and 0 deletions
+1
View File
@@ -375,6 +375,7 @@ config NPCM7XX
select ADM1272
select ARM_GIC
select AT24C # EEPROM
select MAX34451
select PL310 # cache controller
select PMBUS
select SERIAL
+4
View File
@@ -13,3 +13,7 @@ config EMC141X
config ADM1272
bool
depends on I2C
config MAX34451
bool
depends on I2C
File diff suppressed because it is too large Load Diff
+1
View File
@@ -2,3 +2,4 @@ softmmu_ss.add(when: 'CONFIG_TMP105', if_true: files('tmp105.c'))
softmmu_ss.add(when: 'CONFIG_TMP421', if_true: files('tmp421.c'))
softmmu_ss.add(when: 'CONFIG_EMC141X', if_true: files('emc141x.c'))
softmmu_ss.add(when: 'CONFIG_ADM1272', if_true: files('adm1272.c'))
softmmu_ss.add(when: 'CONFIG_MAX34451', if_true: files('max34451.c'))